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
 


Reply via email to