This topic is locked

Add folding section

7/16/2009 2:04:16 PM
ASPRunnerPro General questions
L
luic author

I tried to create a folding section as in your user manual with the following codes:
Set body = CreateDictionary()body = xt.xt_vars("body")body("end") = body("end") & "<script>function toggle(id)"body("end") = body("end") & "{if (document.getElementById('content'+id).style.display == 'none') {"body("end") = body("end") & "document.getElementById('content'+id).style.display = 'block';"body("end") = body("end") & "document.getElementById('handle'+id).innerHTML = 'Hide';"body("end") = body("end") & "} else {"body("end") = body("end") & "document.getElementById('content'+id).style.display = 'none';"body("end") = body("end") & "document.getElementById('handle'+id).innerHTML = 'Show';"body("end") = body("end") & "}}</script>"xt.assignbyref "body",body
However, I get this error :
Wrong number of arguments or invalid property assignment: 'Body'
I am confused that you used xt.assignbyref and the online help uses xt.assign sometimes. Can you have more details on how to move the javascript code to asp pages? And the body you refer in the document is confusing too. Does it refer to html body tag or some variable we can assign to.
Thanks.
Chris.

J
Jane 7/17/2009

Chris,
It's difficult to tell you what's happening without seeing actual files.
Please publish your project on Demo Account and open a ticket at http://support.xlinesoft.com sending a URL to your pages along with instructions on reproducing this error.