Reijn Thanks, but that did not work either.. value still shows up as "undefined" in the debugger... Derek
>>> [EMAIL PROTECTED] 2006/01/18 02:21 PM >>> Hi, I'm always doing it like this: var ref = cocoon.parameters["ref"]; Reijn Derek Hohls wrote: > This should be a trivial operation, but is not working: > > As per the manual > (http://cocoon.apache.org/2.1/userdocs/flow/sitemap.html), > I have: > > Sitemap: > <map:script src="script/dbtest.js"> > <map:parameter name="test" value="foo"/> > </map:script> > > In dbtest.js: > > //param - below is line 33.... > var thisTest = cocoon.parameters.test; > > which results in this error: > > An Error Occurred > Cannot convert null to an object. > org.apache.avalon.framework.CascadingRuntimeException: Cannot convert null to > an object. > cause: TypeError: Cannot convert null to an object. (file:/.../dbtest.js; > line 33) > > Any ideas how to succesfully pass a parameter to flow? > > Thanks > Derek > > PS Running Cocoon 2.1.5, JDK 1.4.x > > -- Met vriendelijke groet, Jeroen Reijn Hippo Oosteinde 11 1017WT Amsterdam The Netherlands Tel +31 (0)20 5224466 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html CSIR Copyright, Terms and Conditions http://mail.csir.co.za/CSIR_Copyright.html For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with REQUEST LEGAL in the subject line to [EMAIL PROTECTED] This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
