finding an element in my jungle ?

M

Mel

if all my identifiers are uique, is it possible to have a function to get me
the id of an element, no matter where it is ?

i am talking about say a form text with it TEXT buried in an iframe within
another container say.


i am looking for something like:
FindElement (eID) {
parent.???.getElementById(eID)
}

of some type


thanks for help
 
E

Evertjan.

Mel wrote on 22 mrt 2005 in comp.lang.javascript:
if all my identifiers are uique, is it possible to have a function to
get me the id of an element, no matter where it is ?

i am talking about say a form text with it TEXT buried in an iframe
within another container say.


i am looking for something like:
FindElement (eID) {
parent.???.getElementById(eID)
}

For each page/frame/popupwindow

blahblah.document.getElementById('myID')
 
M

Mick White

Mel said:
if all my identifiers are uique, is it possible to have a function to get me
the id of an element, no matter where it is ?

i am talking about say a form text with it TEXT buried in an iframe within
another container say.


i am looking for something like:
FindElement (eID) {
parent.???.getElementById(eID)
}

of some type


If you have Dreamweaver, you may use the "MM_FindObj()" function, or
adapt it to your use.
Mick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top