Welcome Guest, Not a member yet? Register   Sign In
jquery (ui) integration library approach
#7

[eluser]happydude[/eluser]
Here's a suggestion:

Link to your jquery and jquery ui scripts in the head section of your view.

Link to your own custom javscript file in the head section of your view and do something like this:
$('.datepicker').datepicker();

assign class="datepicker" to fields where you want a datepicker to show up.

You really don't need to PHPify javascript code... when you can pick virtually any element you want in the DOM with jQuery's sizzle selector engine.


Messages In This Thread
jquery (ui) integration library approach - by El Forum - 04-16-2009, 03:30 AM
jquery (ui) integration library approach - by El Forum - 04-16-2009, 04:39 AM
jquery (ui) integration library approach - by El Forum - 04-16-2009, 06:11 AM
jquery (ui) integration library approach - by El Forum - 04-16-2009, 07:34 AM
jquery (ui) integration library approach - by El Forum - 04-16-2009, 08:58 AM
jquery (ui) integration library approach - by El Forum - 04-17-2009, 12:47 AM
jquery (ui) integration library approach - by El Forum - 07-11-2010, 07:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB