SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2000
    Location
    Leeds, UK
    Posts
    76
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    On my site, I have a search facility, which boots up in a new window, is there anyway to self.close() that window when you click the "go" button, because the "go" button boots another window.

    I have searched many sites for a script like this with no luck, could someone point me in the right direction, as I posted a topic similar to this a month or so ago, with no real help on what to do. Thanks, a GOOD explaination of what to do would be much appreciated

    Thanks very much, Hell.

  2. #2
    SitePoint Guru CJ's Avatar
    Join Date
    Apr 2000
    Location
    Mechelen, Belgium, Europe
    Posts
    684
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm no JavaScript expert but I think it's possible to combine the close.window variable with the open.window variable. Not sure though

    Christophe

    Ask a JS pro.. Don't know one though..

    ------------------
    http://freesources.net - the ultimate webmaster resources site

  3. #3
    SitePoint Wizard TWTCommish's Avatar
    Join Date
    Aug 1999
    Location
    Pittsburgh, PA, USA
    Posts
    3,910
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Don't know personally, but I'd be VERY surprised to hear that this can't be done...

    DynaMike (I think) knows JavaScript pretty well...any thoughts, Mike?



    ------------------
    Chris Bowyer - Programmer in Training
    MyCoding.com: Join our mailing list for launch notification!
    "I'm not an insomniac, I'm a web designer."

  4. #4
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Put this in your code for the button.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">code/font><HR><pre>
    onClick="javascript:window.close();submit=true;"
    [/code]

    ------------------
    Wayne Luke - Sitepoint Forums Administrator
    Digital Magician Studios - Making Magic with Web Applications
    wluke@digitalmagician.com

  5. #5
    SitePoint Enthusiast
    Join Date
    Jun 2000
    Location
    Leeds, UK
    Posts
    76
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How then could the

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">code/font><HR><pre>

    onClick="javascript:window.close();submit=true";

    [/code]

    be incorperated around a search applet, so that when you were to click the applet "launch" button, the window would close?

    here is the applet code I am using:

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">code/font><HR><pre>

    &lt;applet name="Search" archive="search/search.jar" code="SearchApplet4ech.class" width="100" height="40"&gt;
    &lt;param name="TIMED" value="true"&gt;
    &lt;param name="RESOURCE.FILE" value="search/out.txt"&gt;
    &lt;param name="TARGET" value="_blank"&gt;

    [/code]

    Thanks, Hell.


Bookmarks

Posting Permissions

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