Loading ...
Sorry, an error occurred while loading the content.

Permission denied to call method XMLHttpRequest.open on Firefox

Expand Messages
  • yuesefa
    hi :-) when i want to make a cross server XMLHttpRequest, i stuck. is there any easy way to solve this problem? i know i can use proxy.
    Message 1 of 3 , Aug 4, 2006
    • 0 Attachment
      hi :-)
      when i want to make a cross server XMLHttpRequest, i stuck.
      is there any easy way to solve this problem? i know i can use proxy.
    • Steve Webster
      ... There are other ways. See the following link for more information. http://www.sitepoint.com/blogs/2006/07/28/oscon-2006-cross-site-ajax/ The article
      Message 2 of 3 , Aug 4, 2006
      • 0 Attachment
        On 8/4/06, yuesefa <yuesefa@...> wrote:
        > hi :-)
        > when i want to make a cross server XMLHttpRequest, i stuck.
        > is there any easy way to solve this problem? i know i can use proxy.

        There are other ways. See the following link for more information.

        http://www.sitepoint.com/blogs/2006/07/28/oscon-2006-cross-site-ajax/

        The article doesn't give specific details, but it should give you a
        starting point for googling.

        Cheers,

        Steve

        --
        Steve Webster
        http://dynamicflash.com
      • Nige White
        You re going to have to use the old way of doing ajax before ajax was invented... Roll your own handler to basically do something like this: var s =
        Message 3 of 3 , Aug 4, 2006
        • 0 Attachment
          You're going to have to use the old way of doing "ajax" before "ajax"
          was invented...

          Roll your own handler to basically do something like this:

          var s = document.createElement("script");
          var t = setTimeout(function()
          {
          alert("Server failed for " + s.src);
          document.getElementsByTagName("head")[0].removeChild(s);
          }, 5000);
          s.src = "http://example.com/foo/getScript.do?param=bar&timeout=" + t;
          document.getElementsByTagName("head")[0].appendChild(s);

          The servlet you call will have to produce valid javascript to perform
          the actions to update the DOM in a manner appropriate to the server
          operation requested. Don't forget to set the content-type to
          "text/javascript".

          The first line should be to cancel the timeout by the passed id.

          Steve Webster wrote:

          > On 8/4/06, yuesefa <yuesefa@... <mailto:yuesefa%40yahoo.com>> wrote:
          > > hi :-)
          > > when i want to make a cross server XMLHttpRequest, i stuck.
          > > is there any easy way to solve this problem? i know i can use proxy.
          >
          > There are other ways. See the following link for more information.
          >
          > http://www.sitepoint.com/blogs/2006/07/28/oscon-2006-cross-site-ajax/
          > <http://www.sitepoint.com/blogs/2006/07/28/oscon-2006-cross-site-ajax/>
          >
          > The article doesn't give specific details, but it should give you a
          > starting point for googling.
          >
          > Cheers,
          >
          > Steve
          >
          > --
          > Steve Webster
          > http://dynamicflash.com <http://dynamicflash.com>
          >
          >
          > _____________________________________________________________________
          > This message has been checked for all known viruses. Virus scanning
          > powered by Messagelabs http://www.messagelabs.com For more information
          > e-mail : hostmaster@...



          _____________________________________________________________________
          This message has been checked for all known viruses. Virus scanning
          powered by Messagelabs http://www.messagelabs.com For more information
          e-mail : hostmaster@...
        Your message has been successfully submitted and would be delivered to recipients shortly.