Hi,
can someone please tell me why when setting ajax="true" in my CForm and serializing the document as xhtml (Strict) the following line in the xhtml output should break the page?:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE page PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
.........
<form action
="updateAccounts.kont" ajax="true" name=
"Form1" method="POST" dojoType="CFormsForm"
>
<script type= "text/_javascript_">cocoon.forms.ajax = true;</script >

What is it about the script line that xhtml does not like? My ajax map is:

<map:select type="ajax-request">
<map:when test="true">
<map:serialize type="xml"/>
</map:when>
<map:otherwise>
<map:serialize type="xhtml"/>
</map:otherwise>
</map:select>

If I change the forms-styling-*.xsl document to an indclude js file. <script src="" />, which contains that one line of js,
the page loads correctly but a js error is generated saying that 'cocoon' is undefined. At this point, of course, no ajax works
and what you are left with on submitting a page is a full page reload!!

Any ideas anyone?

regards

Andrew


Reply via email to