ajax problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • boyindie86
    New Member
    • Jun 2007
    • 31

    ajax problem

    Hi

    I have looked endlessly for a solution to my problem but I have found no solutions

    I have a problem where I am using ajax to basically pull values of words out a text file stored on a server on a *DIFFERENT* domain, and I want to pull the words back into a drop down menu.

    I was originally doing it by passing the words into the page from my server through the URL, but if the page has a lot of words which are matched in my processing, it causes the URL length to become too long and cause the server to crash.

    But i as you can probably now guess I get the error where the XMLHTTPRequest cannot call of script off another domain.

    On my external server there is a wiki where I can't tamper with any of the backend code, which means I am limited to only being able to place javascript on the pages. My server has apache running on it with PHP.

    I have been told to try using some librarys such as ajaxextended, but this has dissapeared and no place to be found

    Does anyone have any ideas or recommendations about this problem

    Cheers
    Boyindie
  • Amzul
    New Member
    • Oct 2007
    • 130

    #2
    you need to use iframe. the solution is abit tricky but clear....

    read this
    help me in my first "cross site ajax"
    hope it helps

    Comment

    • boyindie86
      New Member
      • Jun 2007
      • 31

      #3
      This is a cool idea, I have got it reading in a delimited text file into the IFRAME but I don't get how i can read the contents of the IFRAME into my page using javascript as there both coming from completely different domains.

      Comment

      Working...