problem accessing document in generated iframe

S

sadie

Hi,

I'm having some trouble accessing a form in a generated iframe. I can
only access the frame using the document.getElementById() method (the
frame is not in the frames array since it is dynamically generated)
and then I cannot seem to then get access to the document inside the
frame.

//this returns a frame element
frm = document.getElementById("frame1");

//returns undefined
alert(frm.document);

ultimately I am trying to access a form inside the frame.

Any ideas?
 
S

sadie

That's not possible with the logic of my app. I'm trying to use the
iFrame within a google maps infoWindow, so there isn't anywhere to
hard-code it in the page. Is there any other way to access the frame
document??
 
S

sadie

That's not possible with the logic of my app. I'm trying to use the
iFrame within a google maps infoWindow, so there isn't anywhere to
hard-code it in the page. Is there any other way to access the frame
document??
 
S

sadie

Ok, I found a work around where I don't need to access the frame
document from the parent page, but I'm still curious if there was
anyway to do it and if not why?

btw, thanks for the quick reply Randy.
 

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,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top