Ajax communicate with seperate webpage

Discussion in 'Javascript' started by sam, Feb 8, 2006.

  1. sam

    sam Guest

    Hi,

    How can I use XMLHttpRequest communicate from webpage to another?
    Currently I have a left/right frames, when the submit button pressed
    (item is added to the database), the left frame should automatically
    retrieve this item and display it on the page. I thought of using Ajax
    (XMLHttpRequest object), but not sure how to use XMLHttpRequest object
    in two different webpages.

    Thanks
    Sam
    sam, Feb 8, 2006
    #1
    1. Advertising

  2. sam wrote:

    > How can I use XMLHttpRequest communicate from webpage to another?


    XMLHttpRequest sends HTTP requests to a server and receives the response.

    > Currently I have a left/right frames


    Oh dear. http://www.allmyfaqs.net/faq.pl?Problems_with_using_frames

    > , when the submit button pressed (item is added to the database), the left
    > frame should automatically retrieve this item and display it on the page.


    No need for XMLHttpRequest. No need for JavaScript for that matter.

    <form ... target="name_of_frame_on_left">

    --
    David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
    Home is where the ~/.bashrc is
    David Dorward, Feb 8, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?TmVpbA==?=
    Replies:
    5
    Views:
    495
    John Saunders
    May 14, 2004
  2. Jack
    Replies:
    0
    Views:
    316
  3. Paul \(Erie\)
    Replies:
    1
    Views:
    368
    Black Mage
    Sep 2, 2003
  4. moondaddy
    Replies:
    2
    Views:
    568
    Steven Cheng[MSFT]
    Oct 16, 2006
  5. minnie
    Replies:
    1
    Views:
    672
    Andrew Thompson
    Dec 13, 2006
Loading...

Share This Page