Wrox Programmer Forums
|
Ajax the combination of XHTML, CSS, DOM, XML, XSLT, XMLHttpRequest, and JavaScript
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Ajax section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 10th, 2008, 09:16 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default 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?



 
Old June 12th, 2008, 08:16 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

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.

-Peter
compiledthoughts.com
 
Old June 16th, 2008, 08:30 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

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.

 
Old June 16th, 2008, 08:50 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

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.

-Peter
compiledthoughts.com
 
Old June 17th, 2008, 08:53 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

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?

 
Old June 17th, 2008, 01:25 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

I'm not sure I understand this new question.

-Peter
compiledthoughts.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Question - ASP + Ajax cancer10 Classic ASP Databases 2 July 30th, 2007 03:29 PM
Recommend an AJAX IDE - JoyiStar AJAX WebShop. kingstar Ajax 4 December 15th, 2006 05:12 AM
Ajax Security Question! evogli Ajax 1 November 2nd, 2006 05:46 AM
new Ajax article: Creating an Ajax Search Widget jminatel Ajax 0 May 11th, 2006 02:50 PM
New Ajax Article: Ajax Submission Throttling jminatel Ajax 0 April 11th, 2006 08:00 PM





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