Simple javascript issue in html

Avatar

Avatar

_jadobe_

Avatar

_jadobe_

_jadobe_

30-01-2009

Hi All,

I have a javascript code, which i written in the initialize event of a check box( This code works fine when view in pdf but not working in html)

-----------------------------------------------------

if( this.rawValue == 1 ){

this.resolveNode("level_A1").presence = "visible";

this.resolveNode("g_masterDevScope[1]").rawValue = 0;

this.resolveNode("level_A2").presence = "hidden";

}

else{

this.resolveNode("level_A1").presence = "hidden";

}

-----------------------------------------------------

this is giving following error message

Javascript error: TypeError: this.resolveNode("level_A1")has no properties



Any insights into this issue will be very helpful.



Thanks

JJ

Replies

Avatar

Avatar

pguerett

Avatar

pguerett

pguerett

09-02-2009

Try putting the complete path to level_A1 inot the expression.



form1.page1.subform1.level_A1