By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,624 Members | 1,687 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,624 IT Pros & Developers. It's quick & easy.

finding an element in my jungle ?

P: n/a
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
Jul 23 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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')

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Jul 23 '05 #2

P: n/a
Mel wrote:
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

Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.