Refer to <div> from separate <frame>

S

Sisilla

Hello All,

I have an <html> page with <frame>s as follows -:

<FRAMESET rows="55, 100%" frameborder="no" >
<FRAME src="../TopFrame.jsp" scrolling="no" noresize
marginwidth="0" marginheight="0">
<FRAMESET cols="200, 100%, 0%" >
<FRAME src="Links.jsp" name="nav">
<FRAME src="NewTransportJobQR.jsp" name="content">
<FRAME name="hiddencontent" style="display:none">
</FRAMESET>
</FRAMESET>

In "content" <frame>, I have a <div> which submits a <form> and uses
the "hiddencontent" <frame> as its target. Once the <form> is
submitted, an alert() pops up from the "hiddencontent" <frame>. At
this point, I would like for the <div> in the "content" <frame> to be
hidden, but I do not know how to refer back to the document in the
"content" <frame> from the "hiddencontent" <frame>. How would I go
about doing this?

I would greatly appreciate any effort to help me. Thank you for your
time and consideration.

Thanks,

Sisilla
 
I

IvanFrank

I have an idea, try this:

(from 'hiddencontent')
parent.frames['content'].document.getElementById(...

fill our the rest of the code with the name of the div and the action
you want to take, let me know if this helps!
 
S

Sisilla

I have an idea, try this:

(from 'hiddencontent')
parent.frames['content'].document.getElementById(...

fill our the rest of the code with the name of the div and the action
you want to take, let me know if this helps!

Thank you very much, IvanFr! This works great! I was using the
contentDocument property which is not supported by IE. Again, thanks
so much. -Sisilla
 

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

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top