473,395 Members | 1,919 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

DIV and IFRAME onload

On our Intranet homepage, I have a layer with an iframe contained in it. The iframe is linked to an html document that is stored in our Content Library system. You have to be authorized to view the documents in Content Library. The problem I'm having is that when you launch the Intranet site, the SSO login screen appears, but it looks like the iframe is trying to launch the html file before the homepage loads. So after you log in, the iframe displays the authentication screen. When you refresh the browser, it then displays the html file because you were authenticated when you logged in. it seems as if the iframe is launching ahead of logging in.

I would like iframe to display after the browser loads. With doing this you should be authenticated and the html page will display. Currently when the body loads, the animation for image links loads. I would like to add the iframe to onload function. This is the code I had prior to editing suggesting I saw online. I have it in BOLD:

<!--#INCLUDE VIRTUAL="/Common/Includes/global.asp"-->
<html>
<head>

<%

dim ServerName, VUurl, QALBSurl, PRODLBSurl, URL, PromoDoc

ServerName = LCase (Request.ServerVariables("Server_Name"))

VUurl = "/VU/default.asp"
QALBSurl = "/em_uat.html"
PRODLBSurl = "/em_prod.html"

If ServerName = "www.test.gliconline.com" Then
VUurl = "http://" + ServerName + VUurl
URL = "https://" + "www.qa.gliconline.com" + QALBSurl
PromoDoc = "uat017348.html"

ElseIf ServerName = "www.qa.gliconline.com" Then
VUurl = "https://" + ServerName + VUurl
URL = "https://" + ServerName + QALBSurl
PromoDoc = "uat017348.html"

Else
VUurl = "http://" + ServerName + VUurl
URL = "https://" + ServerName + PRODLBSurl
PromoDoc = "015935.html"
End If

%>

<script LANGUAGE="JavaScript">
dynamicanimAttr = "dynamicanimation"
animateElements = new Array()
currentElement = 0
speed = 0
stepsZoom = 8
stepsWord = 8
stepsFly = 12
stepsSpiral = 16
steps = stepsZoom
step = 0
outString = ""
function dynAnimation()
{ Code for the dynamic animation is entered here
}

</script>
<title>Main Page - Right Side</title>
</head>

<BODY
background="../images/blugradpln.jpg"
text="<%=appmenutext%>"
class="<%=appmenuclass%>"
link="<%=appmenulink%>"
vlink="<%=appmentvlink%>"
onload="dynAnimation()"
>

<div id="background" style="position:absolute; left:0; top:0; width:92px; height:90px; z-index:1">
<%'add%>
<img src="../images/bluwatermrk.gif">
</div>

<!--Promo Box added 7/26/06-->

<div style="position: absolute; width: 458px; height: 73px; z-index: 3; left: 75px; top: 10px" id="Promobox">
<iframe name="I1" src="../webdocs/cl_getStellantDoc.asp?DocName=<%=PromoDoc%>" scrolling="no" border="0" frameborder="0" width="448" align="center" height="62" marginwidth="1" marginheight="0"></iframe></div>


<!--<div id="g" style="position:absolute; left:326px; top:221px; width:125px; height:135px; z-index:2">-->
<div id="g" style="position:absolute; left:0px; top:0px; width:125px; height:495px; z-index:2">

<table border=0 cellpadding=0 cellspacing=0 width=615>
<tr>
<td height=89>&nbsp;</td>
</tr>
<tr>
<td align=center colspan=2>
<p ALIGN="center" dynamicanimation="spiral" style="position: relative !important; left: 10000 !important">
<img src="../images/welc_online2.gif" border=0>
</p>
<BR>
</td>

</tr>

<A HREF="../webdocs/cl_ContentLibraryLink.asp?CLLink=GOLWhatsNewResult s.do"
onMouseOver="document.roll.src='../images/g2.gif'"
onMouseOut="document.roll.src='../images/whatsnew.gif'">
<p ALIGN="left" dynamicanimation="flyBottom" style="position: relative !important; left: 10000 !important">
<IMG BORDER="0" NAME="roll" SRC="../images/whatsnew.gif">
</P>
</A>
</div>

</body>
</html>
Jul 28 '06 #1
0 5867

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: alejandro.rivero | last post by:
In Mozilla, the following code seems to resize correctly the IFRAME, so no scroll bars: <iframe marginwidth=0 marginheight=0 src=text.html onload="this.height= this.contentDocument.height">...
2
by: Rich | last post by:
Is there any way I can check to see if a document is loaded into the iframe before I call onLoad (sort of an afterLoad). I'm loading up a page into an iframe. But because we use four servers...
4
by: Mark | last post by:
I am loading source files into several iframes, with each load happening after some user-generated event (like clicking a button). The loading works but I need to determine when the source file is...
3
by: Russell | last post by:
I have a quirky issue that I believe involves timing and only 2 hairs left to pull. I have a modal dialog that is an IFrame. The IFrame contains another window - which contains the appropriate...
6
by: ok | last post by:
<img src="http://www.6park.com/enter2/av.gif" onload="document.write('an iframe obj');"> First of all, it destroy the HTML page. Secondly even if it does not destroy it, the iframe object will...
3
by: Asterbing | last post by:
Since the "on fly addition..." thread has taken another direction, I'm opening a new one to be more explicit and recenter the subject. Well, the subject is to detect when a document is well...
4
by: Drew | last post by:
This might beyond the scope of this group because it deals with SharePoint, but I'm not sure if I can't get it to work because of SharePoint or because JavaScript is weird (I don't have much...
7
by: Tom Cole | last post by:
IFrames have been used by years for people to accomplish many of the tasks the XMLHttpRequest does for them now...I unfortunately am late in the game and XMLHttpRequest was already out there by the...
3
polymorphic
by: polymorphic | last post by:
I have succeeded in embedding PDF files in a dynamic iframe. The problem is that I need the PDF to cache. If the PDF remains the same from page load to page load then the pdf is somehow cached with...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.