locked
Webrequest/Webresponse problem on IE 8 RRS feed

  • Question

  • I made a silverlight application which uses the webrequest/webresponse methods to recieve data. I tested the application on Firefox and it's working fine. But when I tested it on IE 8, it's not working. The webreponse returns something like this:

    <script type="text/javascript">top.location.href="urltopagetoreadfrom"</script>


    Friday, January 15, 2010 11:36 AM

Answers

  • Hi Graphics,

    This is the different behaviors when using different browsers.  In your scenario, we'd better return a url only.  Then redirect it by using Javascript.

    Best regards,

    Jonathan

    Friday, January 22, 2010 1:08 AM

All replies

  • Anyone knows a solution/reason why this occurs?
    Saturday, January 16, 2010 8:21 AM
  • I've found the problem: It's because the php script needs to redirect the page before it can show the results. In FF goes that automaticaly, so: when the webrequest is started, the php script echo's the redirect tags and these become executed, so the page reloads and then the webresponse reads the response. In IE, the php script echo's the redirect tags, but they aren't executed, so the webresponse is the redirect tags. Is there any way that the webresponse wait until the php script reloads and then read from it, so, in IE the redirect tags become executed before the webresponse reads the response?
    Saturday, January 16, 2010 2:48 PM
  • Hi Graphics,

    This is the different behaviors when using different browsers.  In your scenario, we'd better return a url only.  Then redirect it by using Javascript.

    Best regards,

    Jonathan

    Friday, January 22, 2010 1:08 AM