p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Ajax (http://p2p.wrox.com/forumdisplay.php?f=210)
-   -   Ajax question (http://p2p.wrox.com/showthread.php?t=68705)

stu9820 June 10th, 2008 09:16 AM

Ajax question
I have a search page on my site that's a part of a template so there is a lot of code on it.

Is there a way to use Ajax (or another way) to call the search page from a calling page and pull out the contents of the Div that the search results are in and display then in the calling page?

planoie June 12th, 2008 08:16 AM

Hey! Nice to see you back on here.

What technology are you using? In ASP.NET this should be solvable with a standard update panel.


stu9820 June 16th, 2008 08:30 AM

Hey Peter, how have you been?

Right now, I'm using standard HTML. I'm in a CMS and don't think I can use .Net.

planoie June 16th, 2008 08:50 AM

Then you'll need to look into manual construction of the AJAX interaction using the XMLHttpRequest object. There many be other AJAX frameworks that you could use for the CMS you are working in however. Do some searching for that.


stu9820 June 17th, 2008 08:53 AM

I was able to successfully pull the search page back and place it in the calling page div (id="target"). How do I reference a particular div (id="searchresults") on the search page where the search results are displayed and send that to the calling page div?

planoie June 17th, 2008 01:25 PM

I'm not sure I understand this new question.


All times are GMT -4. The time now is 04:32 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.