+ Reply to Thread
Results 1 to 6 of 6

Thread: Ajax help.

  1. #1
    taekwondokid42 is offline x10 Lieutenant taekwondokid42 is an unknown quantity at this point
    Join Date
    Aug 2007
    Posts
    268

    Ajax help.

    Hey. Here is the scenario:

    I am on site A.
    I send GET data to site B.
    I want the response to go to site C.
    But it keeps returning to site A.


    How do I change this?

  2. #2
    primefalcon is offline x10Hosting Member primefalcon is an unknown quantity at this point
    Join Date
    Dec 2008
    Posts
    15

    Re: Ajax help.

    Can you post the code relevant to this please

  3. #3
    olliepop's Avatar
    olliepop is offline x10 Sophmore olliepop is an unknown quantity at this point
    Join Date
    Sep 2007
    Posts
    137

    Re: Ajax help.

    this is very very very very vague.
    i gave close no idea what you're asking.

    maybe you're refering to POLLING? (capitalised because its a method, im not angry lol)

  4. #4
    taekwondokid42 is offline x10 Lieutenant taekwondokid42 is an unknown quantity at this point
    Join Date
    Aug 2007
    Posts
    268

    Re: Ajax help.

    ehh, polling is involved, but not exactly.

    I'm very new to ajax, and I don't really know what I'm talking about. Could you give a list of ajax methods and a brief description of each?

  5. #5
    blobtech is offline x10Hosting Member blobtech is an unknown quantity at this point
    Join Date
    Nov 2008
    Location
    Netherlands
    Posts
    16

    Re: Ajax help.

    To clarify what AJAX is and how it works:

    AJAX stands for Asynchronous Javascript And XML
    It is a technique in Javascript that allows the programmer to have scripts download and use data from the server, without having to reload the page.

    An XMLHttp Javascript object will hereby function as a browser, it uses the HTTP protocol to request a page, and then the content of that page can be read by Javscript once the request is completed.
    1. User browses to page A with his browser, the browser will request page A from the server.
    2. Server sends page A to browser, which displays it on the users screen. Page A contains Javascript.
    3. Javascript initiates a XMLHttp object and requests a page B (with optional GET or POST data, which can be retrieved from formfields or such)
    4. Server sends page B back to the Javascript XMLHttp object on page A in the browser.
    5. The XMLHttp object will update its readystate, and the Javascript recognizes that the request is complete (or failed).
    6. Javascript reads contents of page B, and (possibly) inserts it into page A in the browser

    That way, the website can still download content from other pages on demand (or download PHP-generated data like a chatmessage), without the user having to wait untill the entire page is downloaded and displayed.

    For a good tutorial on working with AJAX / XMLHttp, please visit w3schools.com/ajax
    Last edited by blobtech; 04-05-2009 at 05:48 AM.

  6. #6
    supermix is offline x10Hosting Member supermix is an unknown quantity at this point
    Join Date
    Nov 2008
    Posts
    30

    Re: Ajax help.

    Ajax I believe has security restrictions. which prevents it to modify anything or send anything to site C.

    but I believe you can combine server side scripting and ajax to accomplish just about any task. Unless you are asking about user scripts (eg. greasemonkey. ) which has a more powerful xmlhttpRequest.

+ Reply to Thread

Similar Threads

  1. AJAX games...
    By Sup3rkirby in forum Off Topic
    Replies: 1
    Last Post: 09-11-2008, 06:29 PM
  2. PHP and Ajax (Authentication how to ??)
    By oracle in forum Programming Help
    Replies: 3
    Last Post: 06-16-2008, 09:06 AM
  3. AJAX response xml not working
    By jspcodes in forum Programming Help
    Replies: 3
    Last Post: 06-05-2008, 08:12 AM
  4. AJAX Gaming Server?
    By Sup3rkirby in forum Programming Help
    Replies: 14
    Last Post: 12-26-2007, 04:14 PM
  5. ads included by ajax
    By agustinvinao in forum Free Hosting
    Replies: 1
    Last Post: 05-28-2006, 12:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers