/    Sign up×
Community /Pin to ProfileBookmark

Popup content not appearing

I’m having problems getting a window to open on IE 5 on a mac. The window should open at 800×600 and be centered to the screen. It should display a frameset but instead appears blank? If I close it and load it again the content (usually) appears. The code for this is below.

[code=php]
w = window.screen.availWidth;

h = window.screen.availHeight;

window.resizeTo(w,h);

window.moveTo(0,0);

function openWindow(theURL){
theLeft=(w/2)-400;
theTop=(h/2)-300;
features = ‘resizable=yes,width=800,height=600, left=’ + theLeft + ‘, top=’ + theTop;
theWin = window.open(theURL,’main’,features);

}

//–>

</script>

</head>

<body>

<table width=”100%” height=”300″ border=”0″>

<tr align=”center” valign=”middle”>

<td class=”DVtitle”>DV Assets: Animals </td>

</tr>

<tr>

<td align=”center” valign=”middle”><a href=”javascript:;” onClick=”openWindow(‘pages/dv_animals.htm’);”><img src=”Images/splashlogo.gif” width=”477″ height=”145″ border=”0″></a></td>

</tr>

</table>

</body>

</html>[/code]

I’m pretty new to javascript (and building websites) but any help with this would be really appreciated. I did do a search but couldn’t come up with a solution.

ta,
jbw

to post a comment
JavaScript

10 Comments(s)

Copy linkTweet thisAlerts:
@jbwauthorJun 10.2004 — I've never bumped a thread on any forum before - but my original post didn't comply with the rules of this forum so... *BUMP!*

ta,

jbw
Copy linkTweet thisAlerts:
@neil9999Jun 10.2004 — Works fine for me; wait a bit longer for the page to load.

Neil
Copy linkTweet thisAlerts:
@jbwauthorJun 10.2004 — Thanks for replying Neil.

So it needs more time to load?

That's strange coz it loads quickly in IE 4.5 on OS 9 yet in IE 5 on the same OS it has this problem? Does anyone know how I could speed this up?

A friend of mine reckons the browser might be trying to load the content before the window is created?

ta,

jbw
Copy linkTweet thisAlerts:
@neil9999Jun 10.2004 — Could you post the code for the page please? I might be able to make it shorter...

Neil
Copy linkTweet thisAlerts:
@jbwauthorJun 10.2004 — Is that the page it loads or the rest of the script for the page you've just looked at? Sorry if that's a dumb question.

ta,

jbw
Copy linkTweet thisAlerts:
@neil9999Jun 10.2004 — The page it loads please.

Thanks,

Neil
Copy linkTweet thisAlerts:
@jbwauthorJun 10.2004 — Well here it is - it loads a frameset which consists of three frames. I've only provided the frameset code. If you need to see the other pages let me know. Your help is most appreciated. ?

[code=php]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>DV Assets - Elements</title>
</head>

<frameset rows="132,*" framespacing="0" frameborder="no" border="0">
<frame src="introheader.htm" name="dv_header" scrolling="NO" noresize>
<frameset cols="170,*" framespacing="0" frameborder="no" border="0">
<frame src="../navbar/navbar.htm" name="dv_nav" scrolling="NO" noresize>
<frame src="intromain.htm" name="dv_main" scrolling="yes" noresize>
</frameset>
</frameset>
<noframes><body>
</body></noframes>
</html>
[/code]


ta,

jbw
Copy linkTweet thisAlerts:
@neil9999Jun 10.2004 — Could you post intromain.htm please if it's the main page?

Thanks,

Neil
Copy linkTweet thisAlerts:
@jbwauthorJun 10.2004 — Intro main and Intro Header are dummy pages with (just) text in. The navbar is the only thing that has any proper content in it. Either way the code for each is below:

Intro Main:
[code=php]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>DV content</title>
</head>

<body>
Introduction to Elements - DV assets!
</body>
</html>
[/code]


Intro Header:

[code=php]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>DV Assets - Elements</title>
<style type="text/css">
<!--
body {
background-color: #CC0033;
}
-->
</style></head>

<body>
Introduction Header!
</body>
</html>
[/code]


the navbar is a tad longer - I'll post seperately if need be.

ta,

jbw
Copy linkTweet thisAlerts:
@jbwauthorJun 14.2004 — Well (i think) I've narrowed the problem down but still can't find a solution. Looks like the first page of code is causing the problem. If I remove the javascript completely and just set it to load in a blank window rather than opening a new window it works 100% of the time. Can anyone shed some light on how I could get this to load faster? It's failing on OS9.2 running ie 5.0.

many thanks,

jbw
×

Success!

Help @jbw spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...