Welcome Guest, Not a member yet? Register   Sign In
Creating query result filters dynamically
#6

[eluser]bretticus[/eluser]
[quote author="martynrlee" date="1280954567"]...does anyone have any examples of this sort of thing working?

Or perhaps some useful tutorials for dynamically filtering results using codeigniter?[/quote]

Go look for Nettuts author Jeffrey Way's tutorial on jquery and ajax (the jquery load method in particular.) As n0xie says, this is calling the same query multiple times with parameters to filter by. The "magic" occurs when the checkboxes are checked and javascript calls the same url to generate the results after submitting a new value to filter by (from the checkboxes.) And yes, it is a bit of javascript work but jquery simplifies this. In fact, load() makes it almost trivial.

Good luck!


Messages In This Thread
Creating query result filters dynamically - by El Forum - 06-29-2010, 07:51 PM
Creating query result filters dynamically - by El Forum - 06-30-2010, 03:35 AM
Creating query result filters dynamically - by El Forum - 06-30-2010, 11:45 AM
Creating query result filters dynamically - by El Forum - 07-01-2010, 04:00 AM
Creating query result filters dynamically - by El Forum - 08-04-2010, 09:42 AM
Creating query result filters dynamically - by El Forum - 08-04-2010, 10:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB