echo $ajax->submit('Submit Comment', array('id'=>'frmSub', 'url' => '/
articles/addComment/'.$article['Article']['id'], 'update' =>
'resComment', 'indicator'=>'LoadingAjax'));

Yields:

<input type="submit" id="frmSub" value="Submit Comment"
onclick="event.returnValue = false; return false;" /></div>
<script type="text/javascript">
//<![CDATA[
Event.observe("frmSub", 'click', function(event) { new
Ajax.Updater('resComment','/articles/addComment/41',
{asynchronous:true, evalScripts:true, onComplete:function(request,
json) {Element.hide('LoadingAjax');}, onLoading:function(request)
{Element.show('LoadingAjax');},
parameters:Form.serialize(Event.element(event).form), requestHeaders:
['X-Update', 'resComment']}) }, false);
//]]>
</script>

So guess it's in there, however it works on pagination but not ajax-
submit for me.

-Ben

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to