[jQuery] Re: jeditable lazy load?

2008-09-06 Thread Mika Tuupola



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/



[jQuery] Re: jeditable lazy load?

2008-09-05 Thread Andras Kende

Hello,

I had a table with hundreds of edit in place, jeditable was very slow..
used this and its loads very quick:
http://www.davehauenstein.com/code/jquery-edit-in-place/example/

Andras Kende
http://www.kende.com/

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Friday, September 05, 2008 3:07 AM
To: jQuery (English)
Subject: [jQuery] jeditable lazy load?


Hello,

Is it possible to lazy load jeditable on an element?

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?



[jQuery] Re: jEditable and .load

2008-06-19 Thread Mika Tuupola



On Jun 18, 2008, at 10:01 PM, Philip Brown wrote:


last entry to allow for more data to be entered.  Here is the issue:
I need to refresh the div that this information is contained in.  If I
use .load, the content is not editable.  I have even created some
static HTML in a separate file, used .load to import it, but editable
regions are not active.  Has anyone else ran into this issue.  Any
help would be appreciated.




I guess these two answer you question.

http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_Ajax_request.3F
http://docs.jquery.com/Frequently_Asked_Questions#Why_doesn.27t_an_event_work_on_a_new_element_I.27ve_created.3F

--
Mika Tuupola
http://www.appelsiini.net/