I finally have the courage to drop the built in Ajax helper and expand into
jQuery. So my first question so far is how do i pass a variable to jQuery?
In the function below where VARIABLE HERE is i need to pass
data[Note]['post_key'] 
(data[Note]['post_key']  is just a unique identifier string something like
fr567 or ht67k)
 
$(function() {
    $('#notes').editable('/notes/mynote/ VARIABLE HERE ' {
         id        : 'data[Notes][note]',
         name      : 'data[Notes][note]',
         type      : 'text',
         cancel    : 'Cancel',
         submit    : 'Save',
         tooltip   : 'Click to edit the title'
    });
});
 
Thanks
 
Dave

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to