Hidden IFrame post to Web API result in browser navigation error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Cappamontana
    New Member
    • Sep 2007
    • 21

    #1

    Hidden IFrame post to Web API result in browser navigation error

    Hi,

    I have problem that drives me creazy. I have a tracking script that runs on the websites of our customers.
    The problem is the following:
    - When a visitor visits a page a javascript triggers a dom created IFRAME that locates to a file on the server of out customer.
    - This file (WebServiceClie nt.html) is posting automatically (DOM) to a Webservice running on our cloud, so we can save visitor data.

    So far so good. The problem rises when a visitor runs a page with our script and wants to navigate back.
    Because the underlying IFRAME is doing an invisible post the Browser thinks to go back to the post or the IFRAME source page when back is clicked.

    My question is: how can I solve this? I just want the navigation button to work correctly.

    The code works fine and we decided to use this architecture so we could evase the problem of the long load time. Since the server of our customer is posting to a external webservice that threats the connection and disposes it, the load time is 0.

    Any help is welcome.
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Would it be possible for you to convert this to Ajax where you make a request asynchronously?

    Comment

    • Cappamontana
      New Member
      • Sep 2007
      • 21

      #3
      Yes, I've tried that already, but it seems not possible to do a post from an AJAX requested page. Since the page that is posting is a html page it needs javascript to automatically post.

      Comment

      Working...