浩翔
unread,Mar 17, 2009, 4:25:15 AM3/17/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jamal MVC
Hi guys,
I want to use two action in a same page ,like this :
$c.Clients = {
index: function() {
$v.Clients.showList($m.Client.select());
$('#save').bind('click',function(){
$m.Client.insert([$('#firstname').val(),$('#lastname').val()]);
$v.Clients.showList($m.Client.select());
});
},
new: function() {
$('#new').bind('click', function(){
alert('new action');
});
}
};
In my index.html, i use it like this:
<body class="jamal
{controller:'Clients',action:'index',debug:true},
{controller:'Clients',action:'new',debug:true}, ">
however, it didn't work . are there anyway to implement ?
thank you!
Alex