Help Creating Popup window

Discussion in 'Windows Desktop Systems' started by gmagnuson, Oct 25, 2002.

  1. gmagnuson

    gmagnuson Guest

    I need to create a popup window inside this code:

    if(j==1) { // 1st category items
    a=new Array();
    O("Pick Level","");
    O("Sectional","http://ioaofficials.com");
    O("Regional","http://ioaofficials.com");
    O("State Finals","http://ioaofficials.com");
    }

    So when It loads the web address, it will load up the popup window. Thanks.
    Bold= where I need to create popup
     
  2. gmagnuson

    gmagnuson Guest

    Anyone???
     
  3. xsivforce

    xsivforce Prodigal Son Folding Team

    Messages:
    8,547
    Location:
    Texas, USA
    thread moved from Networking, Internet & Intranet to Coding & Design
     
  4. Zodiaq

    Zodiaq Guest

    *zodiaq lol*

    Sorry gmagnuson I can't help but chuckle. Everyone wants software to kill pop-ups and you want help to make one.

    Kinda funny
     
  5. Zedric

    Zedric NTFS Guru Folding Team

    Messages:
    4,006
    Location:
    Sweden
    Have you looked at window.open([...])?
     
  6. gmagnuson

    gmagnuson Guest

    No, zedric, I have not looked at that how does it work?

    This is not for advertisements, this is for when you select a option in a drop down menu and it will load the popup with the information.
     
  7. Zedric

    Zedric NTFS Guru Folding Team

    Messages:
    4,006
    Location:
    Sweden
  8. Stircrazy

    Stircrazy Guest

    www.webmonky.com
    and window.open is a pretty basic and anoying cmd lol also easiest to use for such things
     
  9. gmagnuson

    gmagnuson Guest

  10. Zedric

    Zedric NTFS Guru Folding Team

    Messages:
    4,006
    Location:
    Sweden
  11. gmagnuson

    gmagnuson Guest

    I am still having problems can someone tell me what I a doing wrong? Thanks. The part in bold is the popup window.

    if(j==1) { // 1st category items
    a=new Array();
    O("Pick Level","");
    O("Sectional","window.open('http://ioaofficials.com/','Tourney
    Assignments','width=400,height=400')");

    O("Regional","http://ioaofficials.com/");
    O("State Finals","http://ioaofficials.com/");
    }
     
  12. Zedric

    Zedric NTFS Guru Folding Team

    Messages:
    4,006
    Location:
    Sweden
    That looks really strange. Not the right way to do it. But since it's Javascript I suppose it could work if you execute the command by running eval() on it.
     
  13. Nismo83

    Nismo83 OSNN AZN Addict

    Messages:
    383
    I would suggest a function on it..

    I am currently { [​IMG] | | [​IMG] | | [​IMG] }
    =========================
    Intel P4 1.5 Ghz
    Intel D850GB MOBO
    256MB PC 800 RDRAM
    20GB Maxtor HDD (5400 RPM)
    40GB Maxtor HDD (7200 RPM)
    52X Creative CDROM
    8X4X32 Creative CDRW
    16X ASUS DVD ROM
    Iomega 100 MB USB Zip Drive
    SYBA Ultra ATA IDE controller card
    SB live 5.1 DE
    Ageing Gainward 64MB GF2MX400 --> | Upgrading to GF4 Ti4 series |
    Altec Lansing ACS 56
    Dlink D538TX NIC

    =========================
     
  14. xotica

    xotica Guest

    <SCRIPT LANGUAGE="Javascript">
    <!--
    function instruction() {
    window.open("test.htm","pop up","TOOLBAR=yes,LOCATION=no,DIRECTORIES=no,STATUS=no,MENUBAR=no,RESIZABLE=no,COPYHISTORY=no,SCROLLBARS=yes,WIDTH=450,HEIGHT=100");
    }
    // -->
    </SCRIPT>

    <A HREF="#" onClick="instruction()">Your Link Here</A>