Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Hide a Frame, But Still Execute It

Status
Not open for further replies.

scripter73

Programmer
Apr 18, 2001
421
US

Hi,

I originally posted this on the HTML forum, but I think it can also be posted here.

Please see thread215-491129.

Any help you can provide is very much appreciated.

Thanks,
scripter73
Change Your Thinking, Change Your Life.
 
The parent frame will look like this:
<html>
<frameset cols=&quot;100%,0%&quot; id=&quot;fameSet&quot;>
<frame id=&quot;content&quot; name=&quot;content&quot; src=&quot;software.asp&quot;>
<frame id=&quot;frmcode&quot; name=&quot;frmcode&quot; src=&quot;tcode.asp&quot;>
</frameset>
</html>

The frmcode is not visible, you could change this in any of the frames by:
parent.document.getElementById('fameSet').cols=&quot;0%,100%&quot;
 
Thanks, harmmeijer, that hid the frame great. Now I only have my results page.

One more question. How can I submit the form automatically if its hidden? I have the following:


<frameset ROWS=&quot;0%, 100%&quot;>
<frame NAME=&quot;queryDefine&quot; SRC=&quot;LabAdvqspec.asp?Library=<%=libraryName%>&Policynum=<%=Session(&quot;Policynum&quot;) %>&quot; >
<frame NAME=&quot;queryResult&quot; SRC=&quot;..\redist\utility\white.htm&quot;>
</frameset>

The file white.htm is just a placeholder until the user submits the form, and it will be replaced with the results. It seems like if &quot;queryDefine&quot; has a form called &quot;Search&quot;, then I could define white.htm (the Results page) as:


<body bgcolor=&quot;#FFFFFF&quot; onload=&quot;javascript:document.search.submit();&quot;>
</body>


I tried this, but when I run it, I get a Javascript error stating document.search.submit() is null.
But the form was created in the queryDefine frame.



Any advice is appreciated.

Thanks,
scripter73
Change Your Thinking, Change Your Life.
 
just thought I would mention the way I did things with a web application that needed frames to do simple calls to the server.

Just use an Iframe hidden from view

<iframe left=&quot;-500&quot; top=&quot;-500&quot; width=&quot;100&quot; height=&quot;100&quot;></iframe>

What do you think of that? Gary Haran
 
Thanks for your post xutopia,

Will using an iframe allow me to submit my hidden frame?

Thanks for all of your help.

scripter73
Change Your Thinking, Change Your Life.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top