Hi, I think it could be a bug in the ajax class.
This is the php code
<?php echo $ajax->submit('Enviar', array(
'url' => 'contact',
'complete' => 'Element.hide(\'cargando\')',
'update'=>array('enviado','noenviado','imagen'),
'loading' => 'Element.show(\'cargando\')' ,
'class' => 'enviar'
));
?>
and here the result in html
<div class="submit"><input type="submit"
complete="Element.hide('cargando')" class="enviar" value="Enviar"
id="submit811300255" onclick="event.returnValue = false; return
false;" /></div><script type="text/javascript">
//<![CDATA[
Event.observe("submit811300255", 'click', function(event) { new
Ajax.Updater(document.createElement('div'),'/contacta/contact',
{asynchronous:true, evalScripts:true, onComplete:function(request,
json) {Element.hide('cargando')}, onLoading:function(request)
{Element.show('cargando')},
parameters:Form.serialize(Event.element(event).form), requestHeaders:
['X-Update', 'enviado noenviado imagen']}) }, false);
//]]>
</script>
The problematic part is
complete="Element.hide('cargando')"
that shouldn't be there in the input tag, so it fails in the
validation with w3c. I don't know how to solve this
Thank you
Alberto
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---