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

[eluser]xwero[/eluser]
It's true you have to maintain any library that uses third party code but your library wraps a whole programming language.
What if people want to do more than just add the datepicker, for example they want to send the chosen date via ajax the date picker has a onSelect event just to make things like that happen.

You wrote it's the first time you use jquery. Once you get the hang of it you are going to do great things with it without to much sweat.

If you leave it up to the developer which selector to use he can do
Code:
// controller
$this->jquery->add_datepicker('.datepicker');
// view
<input type=“text” class=“datepicker”>
<input type=“text” class=“datepicker”>


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