Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 2 12 LastLast
Results 1 to 15 of 16

Thread: Popup Windows

  1. #1
    New to the CF scene
    Join Date
    Jun 2002
    Location
    Sunnydale, CA
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Popup Windows

    Hey! Im new...Duh...lol...I'm trying to make a popup but its not working....can someone email me please....

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    Stillwater Ok
    Posts
    226
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Arrow

    I hate pop-ups.
    "Never offend people with style when you can offend them with substance."
    --Sam Brown

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    frankfurt, german banana republic
    Posts
    1,848
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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");

  • #4
    New to the CF scene
    Join Date
    Jun 2002
    Location
    Sunnydale, CA
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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....

    <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>

  • #5
    New to the CF scene
    Join Date
    Jun 2002
    Location
    Sunnydale, CA
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Oh! I did put them on my site...I was just posting the code....

  • #6
    Senior Coder
    Join Date
    Jun 2002
    Location
    frankfurt, german banana republic
    Posts
    1,848
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #7
    New to the CF scene
    Join Date
    Jun 2002
    Location
    Sunnydale, CA
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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...

  • #8
    WA
    WA is offline
    Administrator
    Join Date
    Mar 2002
    Posts
    2,596
    Thanks
    2
    Thanked 19 Times in 18 Posts
    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.

  • #9
    New to the CF scene
    Join Date
    Jun 2002
    Location
    Sunnydale, CA
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    That's what I was using...and the code I got afterwards was:

    <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>

  • #10
    WA
    WA is offline
    Administrator
    Join Date
    Mar 2002
    Posts
    2,596
    Thanks
    2
    Thanked 19 Times in 18 Posts
    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.

  • #11
    New to the CF scene
    Join Date
    Jun 2002
    Location
    Sunnydale, CA
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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*

  • #12
    Regular Coder
    Join Date
    Jun 2002
    Location
    The Planet Earth Code Poet: True
    Posts
    282
    Thanks
    0
    Thanked 1 Time in 1 Post
    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>

  • #13
    Senior Coder
    Join Date
    Jun 2002
    Location
    frankfurt, german banana republic
    Posts
    1,848
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #14
    New to the CF scene
    Join Date
    Jun 2002
    Location
    Sunnydale, CA
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ok...the first is indexx.htm and the 2nd is main.htm
    <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

    <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>

  • #15
    New Coder
    Join Date
    Jun 2002
    Posts
    47
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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/


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •