Hello Mike,

I'm not sure if this is the key - if it is, then I don't know how to implement it.

The getDashItem function does fire after the first cycle - new content is loaded. The problem is that the fID value is not updating in the jEditable piece of the function.

I also know the fID is being feed to the code (checked via the alert). I had tried unbinding ($(".edit").unbind;) but this attempt (more of good intention than knowledgeable practice) did not help me.

case "Y":
        
$("#alerts").html(field.dash_alerts);$("#desc").html(field.dash_desc);$("#staff").html(field.dash_staff);
        
$("#dates").html(field.dash_dates);$("#d_title").html(field.dash_title);$("#d_outcome").html(field.dash_outcome);
        alert(fID);
        //$(".edit").unbind;
        $(".edit").editable("scripts/ajax_tasks.asp?id=jedit&fID="+fID, {
        indicator : "<img src='images/indicator.gif'>",
        submit    : 'OK',
        id                : 'jID',
        submitdata : function() {
                return {foo: fID}
        },
        type      : 'textarea',
        width     : '95%',
        tooltip   : "Click to edit..."
});


At 12:51 a.m. 30/09/2008, you wrote:


On Sep 29, 2008, at 11:55 AM, Bruce MacKay wrote:

> The following function loads a div on the current page with new
> content relating to an item ID of fID (selected from a list of items
> in another div on the page).  I then use jEditable to allow the user
> to update the content of that item.  That bit works fine on the
> first cycle.
>
> However, when I select and load in another item with a different
> fID, I cannot get jEditable to update its value for fID, either in
> the URL (first arrow) or through the submitdata function (second
> arrow).


Maybe related to this:

http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request.3F

?


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

Reply via email to