all groups > dotnet jscript > october 2003 >
You're in the

dotnet jscript

group:

create a node having an event


create a node having an event Terry
10/24/2003 11:33:21 AM
dotnet jscript:
Hi,
I need to create a checkbox node that has an event,
(onclick="SetEmax()") added when the node is created. I
can create the checkbox OK, but can't get

myCheckbox.onclick="SetEmax()"

to work. Any clues on how to specify an event handler for
a node you are creating programmatically?
Re: create a node having an event bruce barker
10/24/2003 3:32:24 PM
your setting the onclick to a string, not a function.

try

myCheckbox.onclick=SetEmax

-- bruce (sqlwork.com)


[quoted text, click to view]

AddThis Social Bookmark Button