GaryZ
asked on
JS error on Dialog List Selection
I have the following code for a dialog box, I keep getting an JS error: F0_Num_Locations is undefined.
This code is located in the onLoad command of a frame that contains the field.
var loc = document.forms[0].F0_Num_L ocations.o ptions[F0_ Num_Locati ons.select edIndex].v alue;
This code is located in the onLoad command of a frame that contains the field.
var loc = document.forms[0].F0_Num_L
If the last hint doesn't work, it's because you have the form in a Frame. In this case Notes is loosing the relation to the underlying document.
Check your code in a simple Form first to see if it works.
The hint is : Load/create first the underlying document object first.
ToniA
Check your code in a simple Form first to see if it works.
The hint is : Load/create first the underlying document object first.
ToniA
ASKER
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Interesting, that means the corrected formula that I provided din't work for you and the alias of my solution provided by Zvonko worked is it ???
Heman, you proposed: *.value;
I proposed: *.text;
This is not an alias, this a solution <|;-)
I proposed: *.text;
This is not an alias, this a solution <|;-)
var loc = document.forms[0].F0_Num_L
~Hemanth