I'm using jquery and ext.js to build a user interface. When a page
loads, I have a ext.js menu loading at the top with new, edit and
delete options. I want to click edit on the menu and have my page
reload in editable form via ajax. Here's my problem: the new button
works fine, but I can't get my edit button to work. How can I pass
the page's id from php to javascript? Here's what I have, and it
won't work since it's being loaded from a js file:
$("#center1").load('/transportation/tickets/edit/<?php echo $this->id;?
>');
Any ideas?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---