Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-05-2012, 02:57 PM   PM User | #1
yuishinkai
New to the CF scene

 
Join Date: Dec 2012
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
yuishinkai is an unknown quantity at this point
Implementing a dropdown box search filter

Hi everyone,

I am looking to know what to call and how to code a search filter similar to the one on this website in the light blue box titled "hey there!" : http://www.gradconnection.com.au/graduate-jobs/

I noticed that when you play around with the dropdown options that it doesn't change the page.

If you can think of any example code that would be brilliant, otherwise any suggestions on how to do this [preferably in HTML] would be very much appreciated!

Kind regards,
Yuishinkai
yuishinkai is offline   Reply With Quote
Old 12-06-2012, 04:08 AM   PM User | #2
Matt Boldt
New Coder

 
Join Date: Jul 2009
Posts: 28
Thanks: 2
Thanked 3 Times in 3 Posts
Matt Boldt is an unknown quantity at this point
That site is probably using AJAX. With JavaScript, you can listen for when someone changes the option in the dropdown, grab the option they chose, and (with AJAX) load the new content without the page having to reload.

It's a cool effect, but not something that can be done with static HTML.
Matt Boldt is offline   Reply With Quote
Users who have thanked Matt Boldt for this post:
yuishinkai (12-06-2012)
Old 12-06-2012, 01:12 PM   PM User | #3
yuishinkai
New to the CF scene

 
Join Date: Dec 2012
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
yuishinkai is an unknown quantity at this point
Thanks Matt Boldt, that looks like exactly what I am after!
yuishinkai is offline   Reply With Quote
Old 12-08-2012, 10:31 PM   PM User | #4
Matt Boldt
New Coder

 
Join Date: Jul 2009
Posts: 28
Thanks: 2
Thanked 3 Times in 3 Posts
Matt Boldt is an unknown quantity at this point
If you feel like learning to use AJAX, and have a basic understanding of JavaScript, you should read up on this jQuery function. http://api.jquery.com/load/

Pretty simple to implement, actually. But it helps if you know basic JavaScript.
Matt Boldt is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:25 AM.


Advertisement
Log in to turn off these ads.