Im developing a tree menu and i am trying to add checkboxes to each of the
nodes. The tree is recursive and is constructed with both HTML and javascript.
the issue im having is with js syntax errors in IE, but code works perfectly
in Mozilla.
So the tag that creates each node looks something like this:
<cf_treenode id="#id#" pid="#pid#" value="<input type=checkbox value=#id#
onClick='return SelectParents('#id#','#list_of_parents#')'"> #Name#>
As it recursively constructs the tree, the checkboxes are displayed correctly.
The problem im having is getting the onClick to work. Like i said, it works in
Mozilla flawlessly, but when i click on a checkbox in IE, i get syntax errors.
I'm pretty sure it has something to do with the single quotes. Ive tried
replacing them with ' as well as #chr(39)#.
I dont have access to the actual code that constructs the tree through
javascript because it is encrypted, so i am limited to working on the page that
displays the tree.
Any ideas??
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234777
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54