close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Search results on same page....

Thread began 4/05/2012 1:54 am by Christopher West | Last modified 4/09/2012 3:23 pm by Jason Byrnes | 1808 views | 9 replies |

Christopher WestCommunity Expert

Search results on same page....

Hi there, I am wanting to use the same results page for BOTH displaying the results for a keyword search form (located in my websites menu bar) and also displaying results from a dynamic URL (which is given by menu links). I am wondering if the method to do this would be to use Framebuilder plugins to dynamically load a recordset depending upon my action.

The reason being, I need the same layout coding for both these pages (eg. currently, if I alter slightly one page I would then be required to alter the second page...I figured this would be messy in terms of development).

at the moment all my attempts have failed (for some reason I cannot seem the get the framebuilder to pass in both recordsets - perhaps i need to start from a fresh file).


is my method workable...or can you not simply pass in different recordsets to the same page depending upon an action via framebuilder plugins?

Im also wondering if I am failing due to following a tutorial a while back and soemhow the coding has become misplaced somehow after many edits of the page.

Chris

Sign in to reply to this post

Jason ByrnesWebAssist

passing in different recordsets would require that they both query the same table, return the same columns and have the same names, this sort of makes it pointless.

Will the dynamic links query the same column as the keyword search form?

If the keyword search form uses the get method, make note of the querystring variables added to the address bar when a search is performed, these can be used in your dynamic links to get the desired result.

If you links will query a different column, you may need to edit the data assist search behavior to add an additional criteria

Sign in to reply to this post

Christopher WestCommunity Expert

hmm well my dynamic URL links query just the category field from my database(since its an ecommerce site - i have a dropdown menu and a side menu to show all product categories) then then "keyword" search box in the websites header area performs a seatch on the "product name". Both results page are identical (just one is a results per category and the other is a results on keywords from the product name).

I just think it would be better to use the same results page since I wouldnt need to change both pages if i need to change the layout etc.

currently my search box is using a POST.

Sign in to reply to this post

Jason ByrnesWebAssist

well, if you want to use the same results page for both, you will need to recreate it using the data assist search wizard so that the search uses the GET method. this way the results page can use the same recordset whether you are using the links or the search box.

In the data assist search wizard, create the search form to have the category text field, and the keyword text field for searching the names. use the category text field search to give you an example of how to create the URLS for your links, once you create the links, you can remove it so you only have the keyword search field.

Sign in to reply to this post

Christopher WestCommunity Expert

Thanks Jason, I shall try that, I try not to use those wizards as I always felt they generated certain functions I didnt need. Thanks again. Did you also see my other post regarding those pesky product options I needed to find out how to store to a orders history?

Sign in to reply to this post

Jason ByrnesWebAssist

yes, i saw it and just responded.

Sign in to reply to this post

Christopher WestCommunity Expert

Hi there I have done what you suggested and it all works. one question with using the GET method though..currently my url would display as this:

products.php?Categories=1&WADbSearch1=GO

is there anyway I can NOT display the "&WADbSearch1=GO" part of the URL
(as if I try removing that part of the URL then it doesnt work)
..Im only asking this as wanting the URL to be more "tidy" :)

Chris

Sign in to reply to this post

Jason ByrnesWebAssist

no, the WADbSearch1=GO portion is the part that triggers DataAssist search.

Sign in to reply to this post

Christopher WestCommunity Expert

i understand that. im guessing there is no other alternative method then. I guess Im just being picky as wanting the URL to look more meaningful.

Sign in to reply to this post

Jason ByrnesWebAssist

no, there is not an alternative.

Sign in to reply to this post
loading

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...