close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Running search on page load

Thread began 7/03/2011 5:47 pm by rob.parkin390637 | Last modified 7/05/2011 8:04 am by Jason Byrnes | 789 views | 1 replies |

rob.parkin390637

Running search on page load

Hi, I've created search and result pages ok with DataAssist Wizard but I'd also like to see the results of a search on a page when the page is loaded.

For example, if a customer selects the "Ceramic Tiles" page from the navigation menu on the site the said page should open and display the sub-set of tiles that are in the ceramic category.

I've used a hidden form field with a preset value for the correct product category in the search forms on both the search and results page, and this works fine but only if I arrive at the results page after executing the search on the search page.

Is it possible to get the search to execute automatically when the results page loads, without having to click the search button AFTER the page has loaded?

rob

ps: I've discovered that I can get this to work by including the search string on the end of the navigation button's url link for the results page - eg:

<a href="<?php echo($assumedRoot); ?>tiles/kitchens/porcelain_Results.php?Search.x=38&Search.y=9&Search=Search&S_ProductCategoryID=3">Porcelain</a>

but wondered if there is a better way of doing this?

Sign in to reply to this post

Jason ByrnesWebAssist

adding the search string to the link:
<a href="<?php echo($assumedRoot); ?>tiles/kitchens/porcelain_Results.php?Search.x=38&Search.y=9&Searc h=Search&S_ProductCategoryID=3">Porcelain</a>

is the correct way to accomplish this.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...