Yeah… but the snippet below is not inserted by myself so I don’t have much
control over it…
<script type="text/javascript">
var djConfig = {};
djConfig.locale = "en";
var cocoon;
if (!cocoon) cocoon = {};
cocoon.formsResourcesUri = "/cocoon-forms-impl/resource/external/forms";
</script>
<script type="text/javascript"
src="/cocoon-ajax-impl/resource/external/dojo/dojo.js" />
<script type="text/javascript">dojo.require("dojo.widget.*");</script>
<script type="text/javascript"
src="/cocoon-forms-impl/resource/external/forms/js/forms-lib.js" />
<script type="text/javascript">
dojo.registerModulePath("cocoon.forms",
"/cocoon-forms-impl/resource/external/forms/js");
dojo.require("cocoon.forms.common");
dojo.require("cocoon.forms.manifest");
dojo.addOnLoad(cocoon.forms.callOnLoadHandlers);
</script>
Anyway…. This can be a real pain in the ass to track this one down. It’s only
because I’ve stumbled upon this problem myself in the past that a bell started
ringing when I looked at the generated sources and saw some colour differences
for several <script> tags… I then started realizing that somehow the browser
did not treat all <script> tags the same way.
@David… Thx for pointing out the differences between those serializers… What
is needed to get an account to update the documentation myself?
Cheers,
Robby
From: Francesco Chicchiriccò [mailto:[email protected]]
Sent: Wednesday, September 16, 2009 10:30 AM
To: [email protected]
Subject: Re: cocoon.forms is undefined when using submit-on-change=true for
Field Widget
On 16/sep/09, at 00:07, Robby Pelssers wrote:
I somehow got it working… not sure if changing the serializer from xhtml to
html fixed it though.
In my experience, yes. When using the XHTML serializer it seems that the
<script/> elements in the head are not all recognized as XML elements. Adding
some newlines now and then helps fixing this issue.
Cheers.
--
Francesco Chicchiriccò
Delivery Manager
everett Italia ▸
TRUSTED TO KNOW
Head Office
Via Torino, 2 - 20123 Milano - Italia
Tel:
+39 02 72546847
Fax:
+39 02 72546418
Technology Centre
Via Federico Fellini, 2 G2/1 - 65010 Spoltore (PE) - Italia
Tel:
+39 085 2120342 / +39 085 2120537
Fax:
+39 085 2120342 / +39 085 2120537
Mob:
+39 329 0573276
e-mail:
[email protected] <mailto:[email protected]>
Web:
http://www.everett.it <http://www.everett.it/>