#1
  1. No Profile Picture
    Contributing User
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Dec 2004
    Posts
    2,971
    Rep Power
    375

    XDomainRequest - IE not playing ball!


    I have a script at: www.mydomain.com/include/js/fetch.js (It gets a postcode param from my form)

    this script links to a php script that uses postcode to give a list of addresses.

    Now my actual "page" is: http://subdomain.mydomain.com
    So when I enter postcode and click find, i get a list of addresses in FF & Chrome. in IE though it doesnt work.

    so I googled around which gave me this:

    https://github.com/MoonScript/jQuery-ajaxTransport-XDomainRequest

    Now with this I can actually make the request but for some reason the postcode value isn't being submitted because I am getting the error "no value supplied" (which is generated by php script should postcode be empty!)

    IE has developer tool now. (f12). Here is a pic containing info that may help:

    http://imageshack.us/f/541/iexcross.png/ - the first box is a summary and it has type as html which may be a problem?
  2. #2
  3. A Not To Shabby Code Smurf
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Aug 2008
    Posts
    1,124
    Rep Power
    119
    Are you just getting that error in IE or are you getting same error, in every browser you test in? Because, if the latter is true; then your jQuery may not be getting the value of your textbox/textarea for some reason (most likely, it's a coding error). If you post, what you have gotten so far; that would help about diagnosing the issue.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Dec 2004
    Posts
    2,971
    Rep Power
    375
    No, just IE. I think that script (which is an IE hack type thing) I downloaded may not be passing the data?

    It is working fine for FF & Chrome (not sure about any other browsers!) In that picture, I can see it passing the postcode but not sure what is happening?

    Had a look at that script too and it seems to be getting the data (and sending it along with the request!)
  6. #4
  7. A Not To Shabby Code Smurf
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Aug 2008
    Posts
    1,124
    Rep Power
    119
    It might not be passing the data for some reason, not sure without looking at the AJAX code. Are you scraping postcode php page and inserting the data back into your fetch.js file? Because if you are; you should/would not be having a cross domain security issue in IE or any other browser. I do that quit often; to eliminate cross domain issues.

IMN logo majestic logo threadwatch logo seochat tools logo