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.