Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / JavaScript / November 2007



Tip: Looking for answers? Try searching our database.

Refer to <div> from separate <frame>

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sisilla - 30 Nov 2007 14:25 GMT
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
IvanFrank@gmail.com - 30 Nov 2007 15:14 GMT
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!
Sisilla - 30 Nov 2007 15:22 GMT
On Nov 30, 11:14 am, IvanFr...@gmail.com wrote:
> I have an idea, try this:
>
[quoted text clipped - 3 lines]
> 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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.