Jump to content

dynamic query from a Drop Down Box


leeh14

Recommended Posts

Hi,

 

Can anyone point me in the right direction please? I want to have a drop down box which when a user clicks on a category the results on the page have changed to show only the data which is relative to the category chosen by the user. I also need a way so that when they click view all they are able to see all the results again.

 

Not really sure what to look for or even how hard this might be.

 

Lee 

Link to comment
Share on other sites

I won't actually write code for it, but I will point you in the right direction.

 

You will need to use AJAX (Dynamic page changes without reloading the page=AJAX).  AJAX is Javascript and Server-Side scripting.  The javascript makes XMLHTTP requests, and waits for a response. Once it gets a response, you can echo the data out. Simple as that.

 

The coding is the hard part. Get some code, and post it here if you have issues.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.