On Sep 5, 2008, at 10:06 AM, [EMAIL PROTECTED] wrote:
I have a grid which uses several edit in place fields. The load time
on this is very high and I'm desperately trying to reduce it.
Is there a way that the edit in place is not set untill the field is
clicked for the first time?
Just a wild idea, but seems to work. On click even it attaches
Jeditable which is triggered using custom event called edit.
$(".editable").bind("click", function() {
$(this).editable("http://www.example.com/save.php", {
event : 'edit'
}).trigger("edit");
});
Although you still bind click to several elements. You would be better
off delegating event. Bind click to parent element and figure out
later which child was clicked.
--
Mika Tuupola
http://www.appelsiini.net/