/    Sign up×
Community /Pin to ProfileBookmark

Popup works locally not on internet!

Greetings…

i added a popup window to my site…it works fine locally, but when i upload the files to my webserver and try to see them live…the popup doesnt work.

running winblows XP
running Unix Webserver

any ideas?

warmest regards

[url]www.tribal-scream.com[/url]

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@sciguyryanMar 10.2004 — Please can you post the code?
Copy linkTweet thisAlerts:
@DiaboloauthorMar 10.2004 — in head javascript section...

function openPictureWindow_Fever(imageName,imageWidth,imageHeight,alt,posLeft,posTop) {

newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",left="+posLeft+",top="+posTop);

newWindow.document.open();

newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">');

newWindow.document.write('<img src='+imageName+' width='+imageWidth+' height='+imageHeight+' alt='+alt+'>');

newWindow.document.write('</body></html>');

newWindow.document.close();

newWindow.focus();

}


then in body section...


<Body BGcolor="#000000" vlink="#CC6600" alink="#0000FF" onLoad="openPictureWindow_Fever('flyers/emergenza2nd.jpg','418','360','Emergenza Festival -2nd Round','','')"><div align="left">

like i said...when i view it running the webpage locally it works...when i upload it doesnt...

by the way...i have more javascript functions beside this one...could that be the problem?
Copy linkTweet thisAlerts:
@sciguyryanMar 10.2004 — Nope, not as long as you add a semi-colon after the first one.

It could be a restriction on your server but, I must say it is normally the reverse to what you have.

I will have a look at the code on my server.
×

Success!

Help @Diabolo 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 5.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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...