cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew <andrewm...@gmail.com>
Subject Re: Xhtml and Ajax...no go!!
Date Thu, 27 Jul 2006 16:20:11 GMT
Ah HAH!! So i'm not imagining things, this is a problem!!!!


Did you undestand this part of the pipeline?
>
> <map:select type="ajax-request">
>                   <map:when test="true">
>                     <map:serialize type="xml"/>
>                   </map:when>
>                   <map:otherwise>
>                     <map:serialize type="html"/>
>                   </map:otherwise>
>

In a word yes. The link below will give you a proper understanding of what
is going on here:

http://66.249.93.104/search?q=cache:TXOJgvCDOg4J:cocoongt.hippo12.castaserver.com/cocoongt/sylvain-wallez-AjaxInCocoon.pdf+ajax+in+cocoon&hl=en&gl=uk&ct=clnk&cd=3&client=firefox-a

But it is not the pipe which is causing the problem, it is the javascript
syntax directly after the initial form tag in the xhtml page. If you change
that code to <script src="" ></script>, where the script page has the one
line of code cocoo.ajax.form=true; then the page loads correctly, all be it
with a javscript error saying that cocoon is undefined. This same code mind,
serialized as html, loads poroperly and with no javascript error!!! What is
going on here??????

regards

Andrew

Mime
View raw message