Problem with Ajax submit URLs using string vs array notation

2011-05-12 Thread Matt W.
Hi. I'm still somewhat new, and tinkering around with the tutorial blog application, and having some trouble when trying to create an ajax-ified comment submission form, specifically with the url that the form ends up submitting to. This is the code I'm using for the form: create('Comment', arra

Re: Problem with $ajax->submit

2008-04-18 Thread b logica
Are you sure that 'loaded' is appropriate? Are you loading anything into the page? Try 'success' instead. On Fri, Apr 18, 2008 at 9:55 PM, MB <[EMAIL PROTECTED]> wrote: > > Here is my submit button -- > > print $ajax->submit('Save', array('url' => '/klasses/addlink', > 'loaded'=>'closesubject(

Problem with $ajax->submit

2008-04-18 Thread MB
Here is my submit button -- print $ajax->submit('Save', array('url' => '/klasses/addlink', 'loaded'=>'closesubject()')); The save works but the 'closesubject()' function which is a javascript doesnt ever seem to get called. Here is the javascript: function closesubject(form) { window.