Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-20-2002, 08:31 PM   PM User | #1
SpikeS Childe
New to the CF scene

 
Join Date: Jun 2002
Location: Sunnydale, CA
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
SpikeS Childe is an unknown quantity at this point
Unhappy Popup Windows

Hey! Im new...Duh...lol...I'm trying to make a popup but its not working....can someone email me please....
__________________
The Eternal Flames of Hell Hath No Fury when you Dare To Dream!!!
SpikeS Childe is offline   Reply With Quote
Old 06-20-2002, 08:51 PM   PM User | #2
Eskimo
Regular Coder

 
Join Date: Jun 2002
Location: Stillwater Ok
Posts: 226
Thanks: 0
Thanked 0 Times in 0 Posts
Eskimo is an unknown quantity at this point
Arrow

I hate pop-ups.
__________________
"Never offend people with style when you can offend them with substance."
--Sam Brown
Eskimo is offline   Reply With Quote
Old 06-20-2002, 09:22 PM   PM User | #3
mordred
Senior Coder


 
Join Date: Jun 2002
Location: frankfurt, german banana republic
Posts: 1,848
Thanks: 0
Thanked 0 Times in 0 Posts
mordred is an unknown quantity at this point
That's not the best idea to ask for response by email, IMO. What if other forum members have a similar problem? Do you prefer that they all mail you about the solution or would you have them rather read it in the thread?

It's not so hard actually to create a popup:

window.open("popup.html");
mordred is offline   Reply With Quote
Old 06-20-2002, 09:35 PM   PM User | #4
SpikeS Childe
New to the CF scene

 
Join Date: Jun 2002
Location: Sunnydale, CA
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
SpikeS Childe is an unknown quantity at this point
Popup generator is where I was...I wanted on the Scrollbars option checked and a text link, but when I put it on my site, it didn't work....

Quote:
<script>

//Popup Window Script
//By JavaScript Kit (http://javascriptkit.com)
//JavaScript tutorials and over 400+ free scripts

function openpopup(){
var popurl="thankyou.htm"
winpops=window.open(popurl,"","width=400,height=338,")
}

</script>

<a href="javascriptpenpopup()">Click here to open window</a>
__________________
The Eternal Flames of Hell Hath No Fury when you Dare To Dream!!!
SpikeS Childe is offline   Reply With Quote
Old 06-20-2002, 09:53 PM   PM User | #5
SpikeS Childe
New to the CF scene

 
Join Date: Jun 2002
Location: Sunnydale, CA
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
SpikeS Childe is an unknown quantity at this point
Oh! I did put them on my site...I was just posting the code....
__________________
The Eternal Flames of Hell Hath No Fury when you Dare To Dream!!!
SpikeS Childe is offline   Reply With Quote
Old 06-20-2002, 11:19 PM   PM User | #6
mordred
Senior Coder


 
Join Date: Jun 2002
Location: frankfurt, german banana republic
Posts: 1,848
Thanks: 0
Thanked 0 Times in 0 Posts
mordred is an unknown quantity at this point
The code you posted above works for me in IE5.5 and Mozilla1.0. Can you be more specific on what you mean by "does not work"? Does JS give any error messages? Does a window open, but no page could be found? etc. etc.
mordred is offline   Reply With Quote
Old 06-21-2002, 02:56 AM   PM User | #7
SpikeS Childe
New to the CF scene

 
Join Date: Jun 2002
Location: Sunnydale, CA
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
SpikeS Childe is an unknown quantity at this point
I press enter and it doesnt do anything...You think I could email you my file and see it you can put it on? lol...
__________________
The Eternal Flames of Hell Hath No Fury when you Dare To Dream!!!
SpikeS Childe is offline   Reply With Quote
Old 06-21-2002, 02:59 AM   PM User | #8
WA
Administrator


 
Join Date: Mar 2002
Posts: 2,596
Thanks: 2
Thanked 19 Times in 18 Posts
WA will become famous soon enough
Spikes:
You may want to simply check out the following popup window wizard: http://javascriptkit.com/popwin/index.shtml
__________________
- George
- JavaScript Kit- JavaScript tutorials and 400+ scripts!
- JavaScript Reference- JavaScript reference you can relate to.
WA is offline   Reply With Quote
Old 06-21-2002, 03:01 AM   PM User | #9
SpikeS Childe
New to the CF scene

 
Join Date: Jun 2002
Location: Sunnydale, CA
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
SpikeS Childe is an unknown quantity at this point
That's what I was using...and the code I got afterwards was:

Quote:
<script>

//Popup Window Script
//By JavaScript Kit (http://javascriptkit.com)
//JavaScript tutorials and over 400+ free scripts

function openpopup(){
var popurl="thankyou.htm"
winpops=window.open(popurl,"","width=400,height=338,scrollbars,")
}

</script>

<a href="javascriptpenpopup()">Click here to open window</a>
__________________
The Eternal Flames of Hell Hath No Fury when you Dare To Dream!!!
SpikeS Childe is offline   Reply With Quote
Old 06-21-2002, 03:13 AM   PM User | #10
WA
Administrator


 
Join Date: Mar 2002
Posts: 2,596
Thanks: 2
Thanked 19 Times in 18 Posts
WA will become famous soon enough
Hmmm...the code should definitely work across most browsers. If you had a link to the problematic page in question, that would make things simplier.
__________________
- George
- JavaScript Kit- JavaScript tutorials and 400+ scripts!
- JavaScript Reference- JavaScript reference you can relate to.
WA is offline   Reply With Quote
Old 06-21-2002, 03:17 AM   PM User | #11
SpikeS Childe
New to the CF scene

 
Join Date: Jun 2002
Location: Sunnydale, CA
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
SpikeS Childe is an unknown quantity at this point
well it's all on a disk and the files are called indexx.htm and main.htm....I want the indexx to open a pop up of the main page...so where do I put the codes.....................

*going to bed...Exam tomorrow morning....Will reply again tomorrow*
__________________
The Eternal Flames of Hell Hath No Fury when you Dare To Dream!!!
SpikeS Childe is offline   Reply With Quote
Old 06-21-2002, 03:24 PM   PM User | #12
JohnKrutsch
Regular Coder

 
Join Date: Jun 2002
Location: The Planet Earth Code Poet: True
Posts: 282
Thanks: 0
Thanked 1 Time in 1 Post
JohnKrutsch is an unknown quantity at this point
Are you telling it to open main.htm or are you leaving thanks.htm in there? Also that trailing comma after scrollbars might be problematic. If indexx.htm and main.htm are in the same directory try something like this.

<script>

//Popup Window Script
//By JavaScript Kit (http://javascriptkit.com)
//JavaScript tutorials and over 400+ free scripts

function openpopup(){
var popurl="main.htm"
winpops=window.open(popurl,"","width=400,height=338,scrollbars")
}

</script>

<a href="javascript: openpopup()">Click here to open window</a>
JohnKrutsch is offline   Reply With Quote
Old 06-21-2002, 03:28 PM   PM User | #13
mordred
Senior Coder


 
Join Date: Jun 2002
Location: frankfurt, german banana republic
Posts: 1,848
Thanks: 0
Thanked 0 Times in 0 Posts
mordred is an unknown quantity at this point
Quote:
Originally posted by SpikeS Childe
well it's all on a disk and the files are called indexx.htm and main.htm....I want the indexx to open a pop up of the main page...so where do I put the codes.....................
Post the code of indexx.htm into your next posting, so we can take a look at it and see what's going wrong. No need in emailing members, see my other post.
mordred is offline   Reply With Quote
Old 06-22-2002, 08:38 PM   PM User | #14
SpikeS Childe
New to the CF scene

 
Join Date: Jun 2002
Location: Sunnydale, CA
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
SpikeS Childe is an unknown quantity at this point
ok...the first is indexx.htm and the 2nd is main.htm
Quote:
<HTML>
<HEAD>
<TITLE>Eternal Flames</TITLE>
</HEAD>
<BODY BGCOLOR="#000000" TEXT="#B4B8C4" LINK="#868CA0" VLINK="#868CA0">
<br><br>
<center><img src="splash1.jpg"></center>
<br>
<font face="Brush Script MT" SIZE="2">
<center>| <a href="http://hellhathnofury.cjb.net">Hell Hath No Fury</a> | <a href="http://daretodream-fan.cjb.net">Dare To Dream</a> | <a href="main.htm">Enter</a> |</center>
</BODY>
</HTML>
and

Quote:
<HTML>
<HEAD>
<title>Eternal Flames</title>
</HEAD>
<BODY BGCOLOR="#000000" TEXT="#B4B8C4" LINK="#868CA0" VLINK="#868CA0">
<center><!-- Created by CuteMAP -->
<!-- Visit us at http://www.globalscape.com -->
<!-- Beginning of CSIM -->
<IMG SRC="full.jpg" USEMAP="#full.jpg" WIDTH=518 HEIGHT=188 BORDER=0>
<MAP NAME="full.jpg">
<AREA SHAPE=RECT COORDS="124,136,193,144" HREF="thecast.htm">
<AREA SHAPE=RECT COORDS="211,136,313,144" HREF="epguide.htm">
<AREA SHAPE=RECT COORDS="331,136,393,144" HREF="gallery.htm">
<AREA SHAPE=RECT COORDS="133,150,186,158" HREF="fanart.htm">
<AREA SHAPE=RECT COORDS="204,150,281,158" HREF="fanfiction.htm">
<AREA SHAPE=RECT COORDS="299,150,385,158" HREF="fanlistings.htm">
<AREA SHAPE=RECT COORDS="173,164,211,172" HREF="links.htm">
<AREA SHAPE=RECT COORDS="229,164,344,172" HREF="about.htm">
<AREA SHAPE=RECT COORDS="172,178,264,186" HREF="webmistress.htm">
<AREA SHAPE=RECT COORDS="282,178,345,186" HREF="mailto:forever_lost_in_dreams@hotmail.com">
</MAP>
<!-- End of CSIM -->
<br>
<!-- Created by CuteMAP -->
<!-- Visit us at http://www.globalscape.com -->
<!-- Beginning of CSIM -->
<IMG SRC="guestbook.jpg" USEMAP="#guestbook.jpg" WIDTH=150 HEIGHT=150 BORDER=0>
<MAP NAME="guestbook.jpg">
<AREA SHAPE=POLY COORDS="56,29,52,29,52,30,50,30,50,31,49,31,49,32,48,32,48,34,47,34,47,39,48,39,48,40,49,40,49,41,50 ,41,50,42,51,42,51,44,52,44,51,44,51,45,49,45,49,46,47,46,47,47,46,47,46,48,46,49,47,49,47,50,49,50, 49,49,51,49,51,48,52,48,52,47,54,47,54,46,56,46,56,44,55,44,55,41,54,41,54,40,53,40,53,38,52,38,52,3 6,51,36,51,35,52,35,52,34,54,34,54,33,55,33,55,32,56,32,56,29" HREF="http://www.theguestbook.com/egbook/391722.gbook">
<AREA SHAPE=POLY COORDS="86,45,86,60,86,59,87,59,87,57,88,57,88,55,89,55,89,51,90,51,90,48,93,48,93,51,92,51,92,56,91 ,56,91,58,90,58,90,60,89,60,89,62,88,62,88,65,87,65,87,66,84,66,84,62,83,62,83,56,82,56,82,46,83,46, 83,45,86,45" HREF="http://www.theguestbook.com/vgbook/391722.gbook">
</MAP>
<!-- End of CSIM --></center>
</BODY>
</HTML>
__________________
The Eternal Flames of Hell Hath No Fury when you Dare To Dream!!!
SpikeS Childe is offline   Reply With Quote
Old 06-22-2002, 08:58 PM   PM User | #15
TrueLies
New Coder

 
Join Date: Jun 2002
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
TrueLies is an unknown quantity at this point
Hi

winpops=window.open(popurl,"","width=400,height=338,")

Uhm, there shouldn't be that trailing comma:
338,
should be
338

To accomodate NS4 put some string in between the second argument apex, or in some cases NS4 may open a fullscreen window even if you sepcified otherwise

ciao
__________________
Alberto http://www.unitedscripters.com/
TrueLies is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:25 PM.


Advertisement
Log in to turn off these ads.