/    Sign up×
Community /Pin to ProfileBookmark

Java Pop-Up Window does not work on server

I have pasted a javascript on a webpage to generate a pop-up window. The script works on my computer (preview in browser) but does not appear to work when I upload to my webhost server. Any help would be greatly appreciated.

–fjc

<SCRIPT LANGUAGE=”JavaScript”>
<!– Idea by: Nic Wolfe ([email protected]) –>
<!– Web URL: [url]http://fineline.xs.mw[/url] –>

<!– This script and many more are available free online at –>
<!– The JavaScript Source!! [url]http://javascript.internet.com[/url] –>

<!– Begin
function popUp(URL) {day = new Date();id = day.getTime(); eval(“page” + id + ” = window.open(URL, ‘” + id + “‘, ‘toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=500,height=400,left = 262,top = 130’);”);}
// End –>
</script>

<body style=”padding-left: 20″ onLoad=”javascript:popUp(‘http://www.pettiboneresort.com/open_5_01_04.htm‘)”>

to post a comment
JavaScript

9 Comments(s)

Copy linkTweet thisAlerts:
@96turnerriDec 02.2003 — theres is no reason for js not to run on server, one thing remove the language attribute and add type attibute
Copy linkTweet thisAlerts:
@requestcodeDec 02.2003 — I uploaded your code to my server and it worked. Do you have a popup blocker installed on your PC?
Copy linkTweet thisAlerts:
@fjcauthorDec 02.2003 — Thank you very much for your quick reply...

I assume this is what you meant (I am a js novice)

<SCRIPT TYPE="text/javascript">

this had no effect.

My hosting coming is stonewalling me, saying that js is enabled so there should be no issue there.

I am developing in FrontPage2003.

Any other direction?

Thanks

--fjc
Copy linkTweet thisAlerts:
@fjcauthorDec 02.2003 — I do have a pop-up (norton) but disabled it. Also, I would have thought that It would not have worked in preview in browser if that was interfereing.

I do appreciate that you tried it on your server. I have to suspect my web host server.

do you agree?

--fjc
Copy linkTweet thisAlerts:
@96turnerriDec 02.2003 — well thats the only other thing i can think of that it could be although i have never come accross a host that has js disabled hmmm ?
Copy linkTweet thisAlerts:
@requestcodeDec 02.2003 — Is this the only page that you have a javascript on? You might create a page with a simple alert upload that and try it. If it does not work then I suspect that the host is the problem. Also, can you give us link to the page in question? Maybe something else is interfering with the script.
Copy linkTweet thisAlerts:
@oleragDec 02.2003 — What's the "eval()" for?? Netscape functionality??

Lots of "popups" (and, of course, popup stopper stuff) in

this forum. Hate em (popups, that is -- forcing something

on someone and, I think, it to be a very impolite imposition.

"fredmv" has a nice bit of code/advice for creating new

windows in the 19 Nov thread named "Trying To Open

New Window" submitted by "kenmurrah".
Copy linkTweet thisAlerts:
@96turnerriDec 02.2003 — WOW! thats one of the most clear and concise posts ive seen, although i didnt learn anything good to read :p

heres the url of that post talked about above

[URL]http://forums.webdeveloper.com/showthread.php?s=&threadid=21793[/URL]
Copy linkTweet thisAlerts:
@fjcauthorDec 02.2003 — Thank you all for your help.

I will try the script again later, but I ran out of time, so I just posted the window as a click-through page.

I think it might be better, with the proliferation of pop-up blockers, they may not be the best way to get our message across.

Thanks again for all your help.

--fjc
×

Success!

Help @fjc 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.2,
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: @meenaratha,
tipped: article
amount: 1000 SATS,

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

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