Well perhaps I'm a going about this wrong - as I can't be the only one with this issue. I need to have the Zoom search results be displayed in the same asp page without reloading the page (AJAX). I'm doing this by using and onclick= call to a javascript function on an input button(see below) - rather than using a submit button.
I have three issues:
1. Some of the Zoom input fields don't make their way to the function. The AJAX function I am using then sends the values to either the search.asp page - which is ultimately displayed using a div id tag on the same page. It clearly ONLY happens when two input fields have the same id (ie: radio button, select options)
2. Using AJAX means I have lost the ability to adjust the fonts/styles. The search.asp page won't refer to any stylesheet changes in search_template.html.
3. If the results exceed 1 page, and a visitor clicks page 2, etc - they are pushed out of the ajax-loaded page.
Perhaps my need to use ajax isn't understood - but I NEED to stay in the same page without the reload. I don't want to use frames.
Here's the code I'm using for my onclick call to the ajax function (#1) . I know the ajax function works - I just can't seem to get all the values there. (zoomperpage and the zoom_and fields error out as 'undefined'):
<input type="button" value="Go" onclick="populateSearchResults(this.form.zoom_quer y.value,this.form.zoomperpage.value,this.form.sear chcategory.value,this.form.zoom_and.value);" />
Thank you in advance - hopefully there will be a solution that works for us all. Ignore the extra space in this post - vBulletin is acting up a bit when I entered the code above. ZoomSearch is too good a product not to find a good AJAX implementation.
I have three issues:
1. Some of the Zoom input fields don't make their way to the function. The AJAX function I am using then sends the values to either the search.asp page - which is ultimately displayed using a div id tag on the same page. It clearly ONLY happens when two input fields have the same id (ie: radio button, select options)
2. Using AJAX means I have lost the ability to adjust the fonts/styles. The search.asp page won't refer to any stylesheet changes in search_template.html.
3. If the results exceed 1 page, and a visitor clicks page 2, etc - they are pushed out of the ajax-loaded page.
Perhaps my need to use ajax isn't understood - but I NEED to stay in the same page without the reload. I don't want to use frames.
Here's the code I'm using for my onclick call to the ajax function (#1) . I know the ajax function works - I just can't seem to get all the values there. (zoomperpage and the zoom_and fields error out as 'undefined'):
<input type="button" value="Go" onclick="populateSearchResults(this.form.zoom_quer y.value,this.form.zoomperpage.value,this.form.sear chcategory.value,this.form.zoom_and.value);" />
Thank you in advance - hopefully there will be a solution that works for us all. Ignore the extra space in this post - vBulletin is acting up a bit when I entered the code above. ZoomSearch is too good a product not to find a good AJAX implementation.
Comment