/    Sign up×
Community /Pin to ProfileBookmark

javascript pop up window links

i am working on a website with a frames setup and have installed a javascript link to open a newsletter sign up form

the website is <[url]WWW.FRASERBURGH.ORG.UK[/url]>

there are 4 links in side frames that don’t work but i can’t find the fault

you should see a link called: “Get the latest news!”

and on side frames:

Events
History
Religion
Support

There is a debug alert on line0 but i don’t know how to correct this, can anyone help?

John.

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@khalidali63Jan 15.2003 — My first bet will be this function

function newsletter()

and in this function this line

var url='../Fraserburgh/newsletterform.htm'

make sure that "newsletterform.htm"

is accessible as it is located in the url.

The same is for rest of the un accessible pages,just check and make sure you can access them from there respective locations

Khalid
Copy linkTweet thisAlerts:
@johncrookauthorJan 15.2003 — Thanks Khalid -

I had already thought about that problem and had checked that i had the folder correct. I also tried putting http://etc.... before the /Fraserburgh/ but it still didn't call the page.

I have the function newsletter() running on each of the respective side frames and I can't find a fault in any of them but still some call the page and some don't.

Have you any other ideas? John.
Copy linkTweet thisAlerts:
@CharlesJan 15.2003 — [font=georgia]My browser is definitely reporting a JavaScript error but it could be caused by a number of things that are wrong with that script. The first lines of your page ought to be:

[font=monospace]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">

<html lang="en">

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<meta name="Content-Script-Type" content="text/javascript">

<meta name="Content-Style-Type" content="text/css">

[/font]

Rid yourself of that script in the head - it will cause parsing errors on some browsers - and then your link should look more like:

[font=monospace]

<a style="color: rgb(255,255,255)" href="../Fraserburgh/newsletterform.htm" onclick="window.open(this.href, 'child', 'width=450,height=450,left=200,screenX=200,top=0,screenY=0,scrollbars'); return false">Get the Latest News!</a>

[/font][/font]
Copy linkTweet thisAlerts:
@johncrookauthorJan 16.2003 — hi charles,

I tried the onclick link but it only opened a new window.

What i am bothered about is that the links work in some frames but not in four of the frames as first post above. Sorry to trouble but are there any other things i should know about?

John.
×

Success!

Help @johncrook 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.25,
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,
)...