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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why is my frame not showing up???? What's wrong with my code?

Status
Not open for further replies.
Jan 30, 2002
44
CA
Here is the code:

<%@ Language=VBScript %>
<HTML>
<HEAD>
<script LANGUAGE=&quot;JavaScript&quot; src=&quot;Navigation.js&quot;></script>
<script LANGUAGE=&quot;javascript&quot; src=&quot;Selects.js&quot;></script>

<META NAME=&quot;GENERATOR&quot; Content=&quot;Microsoft Visual Studio 6.0&quot;>
</HEAD>


<BODY onload=&quot;LoadImages();&quot; >

<!-- #include file=&quot;NavMenu.asp&quot; -->
<!-- #include file=&quot;WorkingFunctions.inc&quot; -->

<%
Dim QueryString
If Request.QueryString(&quot;EntryId&quot;) <> &quot;&quot; Then
if Request.QueryString(&quot;bug&quot;) = &quot;TRUE&quot; then
strMainUrl = &quot;BugStatusView.asp?ID=&quot; & Resquest.QueryString(&quot;EntryId&quot;)
else
QueryString = trim(Request.QueryString (&quot;EntryId&quot;))
QueryString = replace(QueryString,&quot; &quot;,&quot;%20&quot;)
strMainUrl = &quot;Main.asp?EntryId=&quot; & QueryString
Response.Write &quot;srtMainURL is &quot; &strMainUrl
end if
Else
strMainUrl = &quot;Main.asp&quot;
End If
%>
<title>PC Infrastructure Documentation</title>



<%' -----------
' code below controls the loading of the frames which are dependent on the choices made in the
'
' ---------
%>
<frameset cols=&quot;290,*&quot; FRAMEBORDER=&quot;5&quot; FRAMESPACING=&quot;0&quot; target=&quot;_top&quot; >
<frame src=&quot;contents.htm&quot; name=&quot;contents&quot; scrolling =&quot;Auto&quot; FRAMEBORDER=&quot;0&quot; FRAMESPACING=&quot;0&quot;>
<frame src=<%=strMainUrl%> name=&quot;main&quot; FRAMEBORDER=&quot;0&quot; FRAMESPACING=&quot;0&quot;>
</frameset>

<P>&nbsp;</P>

<div class=&quot;topnav&quot;>
<A href = &quot;BugReport.asp&quot; target = main > Constr. Zone</a>
| <A href=&quot;AddKnowledge.asp?Type=Tip&quot; target=main>add tip</a>
| <A href=&quot;AddKnowledge.asp?Type=Example&quot; target=main>add example</a>
</div>
</body>

</html>

Thanks in advance!
CF

 
try encloing it in &quot; &quot;
<frame src=&quot;<%=strMainUrl%>&quot; name=&quot;main&quot; FRAMEBORDER=&quot;0&quot; FRAMESPACING=&quot;0&quot;>
You cannot mandate productivity, you must provide the tools to let people become their best.
-Steve Jobs
admin@onpntwebdesigns.com
 
hey

you cant use frameset and body tag together
remove body part from the code


Bye

Prasad
 
But, I need the call the function LoadImages() when load i.e., onload=&quot;LoadImages();&quot; Where would I do that?
 
just put the function in <script> tags so it will preload when the page comes up
in the head
<script> {
LoadImages();
}
</script You cannot mandate productivity, you must provide the tools to let people become their best.
-Steve Jobs
admin@onpntwebdesigns.com
 
hey u can do this too every framset have the source as html
so in the page where u want images to be load in that u can use those your load images function
infact u just read the aticles relating to frames

u will get it

Bye prasad

sawantprasad2001@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top