Ajax Implementation question

MikeF98765

Gawd
Joined
Sep 26, 2003
Messages
629
So i'm trying to make an AJAX application, and here is what i need to do. I want to have a javascript bookmarklet that basically gathers teh title, address, and selected text of the page you're on. This part i've figured out, but what i need to know is what is the best way to send this information on to my application?

Lets say i am using layout.php to have all my information laid out. I want to click on my bookmarklet while I'm at another page and have the information above show up on my layout.php. What is the most seamless way of doing this?
 
More straightforward question:

How do i get a remote javascript call to trigger an action (any action) on my PHP page which is already open? All i can think of is some type of constant polling but that's not a very good practice...
 
i understand how ajax works, but these method still require an action from the page to initiate. What i want to happen is page 1 is just sitting there, i hit a button on page 2, and something happens on page 1.
 
Back
Top