Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Covert One Line of VBscript to Javascript (Parent/Parent/Frame) 1

Status
Not open for further replies.

Rock6431

Programmer
Mar 23, 2002
56
0
0
US
Someone,

I have this one line of VBscript that refers 2 parent pages deep, where there is a frame for a document called TOC. On the TOC document is a SelectBox that I am trying to get an obj ref to.

parent.parent.document.frames("TOC").document.getelementById("SELECTBOX NAME")

The above works in IE using VB but I need the JavaScript equivilent. The parent and frame items are what I am not familar with in Javascript.

Thanks

Rock6431
 
JavaScript is case-sensitive. Change it to this:

parent.parent.document.frames("TOC").document.getElementById("SELECTBOX NAME")


Adam
while(ignorance==true){perpetuate(violence,fear,hatred);life=life-1};
 
Thanks adam0101. It was a case sensitive issue.

Rock6431
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top