[daisy] JS errors when trying to add collections to a document

Marc Portier mpo at outerthought.org
Wed Nov 22 04:29:24 CST 2006



Bruno Dumon wrote:
> On Mon, 2006-11-20 at 16:36 +1100, Nicholas dos Remedios wrote:
>> When trying to add a collection to a document, under the 'Misc' tab, I
>> get the following error in the error console of FF:
>>
>> Error: from.options has no properties
>> Source File: http://localhost:8080/daisy/resources/cocoon/forms/mattkruse-lib/selectbox.js
>> Line: 156
>>
>> Clicking this error displays the JS file with the cursor on the offending line:
>>
>>> 	for (var i=0; i<from.options.length; i++) {
>> The selected collection is not added to the right side and none of the
>> tabs along the top are clickable after this (Parts, Fields, etc).
>>
>> We have just finished doing a 1.41 to 1.51 upgrade (big job redoing
>> all ours skins) and everything appears fine except for this problem.
>> We have made changes to layout.xsl for our custom skin, as well as
>> document-to-html.xsl and navigation.xsl but I can't see how any of our
>> changes could be causing this error (yes famous last words).
> 
> I just tried this on a 1.5.0 install and there it seems to work. Anyone
> else seeing this problem, or anyone who can give this a try on 1.5.1?
> 

just did, and can verify that  "Things just work as expected."
(With my Daisy 1.5.1 services running on ubuntu 6.10)

Nick,

I guess Bruno's advise to check skin specific js is the thing to go for...

That and the more general advise: make sure browser-clients do clear
their cache before reconnecting to a freshly updated daisy-wiki

-marc=
-- 
Marc Portier                            http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog at                http://blogs.cocoondev.org/mpo/
mpo at outerthought.org                              mpo at apache.org


More information about the daisy mailing list