Hi,
I have a javascript funtion. The purpose of the function is to set the item "newwindow"s value to "No" by default each time a new replicant is added.
IWEventRegistry.addItemHandler("/cnt_banners/Banner","OnReplicantAdded",
setDefault);
function setDefault(item)
{
item.getChildByName('newwindow').setValue(1));
}
It throws the following error:
'null' is null or not an objectBut when I display the item, it gives the following correctly:
[IWItem radio /cnt_banners/Banner[2]/newwindow]
The replicant item in the DCT is as follows:
[HTML]
[/HTML]
I am on TeamSite 6.5 on Solaris 8.
Can any one help me out? Thanks for any help.
-H