Click to See Complete Forum and Search --> : javascript pop up window links
johncrook
01-15-2003, 12:55 PM
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 <WWW.FRASERBURGH.ORG.UK>
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.
khalidali63
01-15-2003, 01:31 PM
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
johncrook
01-15-2003, 01:53 PM
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.
Charles
01-15-2003, 01:53 PM
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:
<!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">
Rid yourself of that script in the head - it will cause parsing errors on some browsers - and then your link should look more like:
<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>
johncrook
01-16-2003, 02:08 PM
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.