Updating the parent page DIV using Ajax

Hai

I am developing one web site.I have one rhtml file with search link

and one div.If i click on that link one more window will open with
search result. If i click on any of that result.That data should be
updated in parent page div.Now i am trying with Ajax. Is there any other
way to do this task??

please help me in advance…

regards
selva

try to use link_to_remote, i think that is what you want

Helder O. wrote:

try to use link_to_remote, i think that is what you want

Thank you for your response, But I am still confused where i can use
link_to_remote? whether from parent page link or child page link???.
After clicking on that link i have to close that window also.

Now I am using link_to_remote from parent page. while clicking on
that link it is opening child window.Now when i click on that result,
the request is going to controller.but its not updating div id of the
parent window.In development log i am able to see the the query which i
am passing from the child window.But after that nothing is happening.

Selvaraj S. wrote:

Helder O. wrote:

try to use link_to_remote, i think that is what you want

Thank you for your response, But I am still confused where i can use
link_to_remote? whether from parent page link or child page link???.
After clicking on that link i have to close that window also.

Now I am using link_to_remote from parent page. while clicking on
that link it is opening child window.Now when i click on that result,
the request is going to controller.but its not updating div id of the
parent window.In development log i am able to see the the query which i
am passing from the child window.But after that nothing is happening.

HAI,

 Any one got where i am getting problem,  Really i am wasting lot of 

time on this issue…

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Dec 11, 2006, at 10:11 PM, Selvaraj S. wrote:

 Any one got where i am getting problem,  Really i am wasting  

lot of
time on this issue…

When debugging ajax stuff, the firebug extension for Firefox is
really helpful; it lets you look at your DOM, as well as spy on the
http request and answer that comes back. It’s useful to see what the
server is actually sending…

David M.
Maia Mailguard http://www.maiamailguard.com
[email protected]

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFFfj2UUy30ODPkzl0RAsOpAJwO6vDn7jx3XCYUhQVxoGflLiatSACeNgk4
rxslkoiEX4yYLC+x5gihZ5U=
=gmPq
-----END PGP SIGNATURE-----