Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: HELP --- I need help FAST --- website needed by tommorow

  1. #1
    Join Date
    Nov 2005
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy HELP --- I need help FAST --- website needed by tommorow

    I have a window that is chormeless (i got it from....http://www.dynamicdrive.com/dynamici...chromeless.htm) and i want to put a button (like the ones that you use for the submit button on forms) and i want to make it close out the chromeless window.....

    PLEASE HELP I NEED THIS DONE BY TOMMOROW!!!!

    THANKS ALOT!!!!!

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    HTML Code:
    <input type="button" value="Close Window" onclick="self.close();">
    This only works if the window was launched with javascript. I believe the chromeless window qualifies under that rule.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Nov 2005
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks i will try that

  4. #4
    Join Date
    Nov 2005
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ok i tried that and it didn't work....
    i am using this code

    HTML Code:
    <script language="javascript" type="text/javascript" src="chromeless_35.js"></script>
    <script language="javascript">
    
    /*
    Chromeless Window (v3.5)- By Gabriel Suchowolski (this credit MUST stay intact)
    Author site at http://www.microbians.com
    Visit http://www.dynamicdrive.com for this script
    */
    
    //For paramater explanations, see accompanying faq.htm file
    function openIT(u,W,H,X,Y,n,b,x,m,r) {
    	var cU  ='close.gif'   //gif for close on normal state.
    	var cO  ='close.gif'  //gif for close on mouseover.
    	var cL  ='clock.gif'      //gif for loading indicator.
    	var mU  ='minimize.gif'     //gif for minimize to taskbar on normal state.
    	var mO  ='minimize.gif'    //gif for minimize to taskbar on mouseover.
    	var xU  ='max.gif'     //gif for maximize normal state.
    	var xO  ='max.gif'    //gif for maximize on mouseover.
    	var rU  ='restore.gif'     //gif for minimize on normal state.
    	var rO  ='restore.gif'    //gif for minimize on mouseover.
    	var tH  ='<font face=verdana size=2>Chromeless Window</font>'   //title for the title bar in html format.
    	var tW  ='Chromeless Window'   //title for the task bar of Windows.
    	var wB  ='#D5D5FF'   //Border color.
    	var wBs ='#D5D5FF'   //Border color on window drag.
    	var wBG ='#D5D5FF'   //Background of the title bar.
    	var wBGs='#D5D5FF'   //Background of the title bar on window drag.
    	var wNS ='toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0'  //Html parameters for Netscape.
    	var fSO ='scrolling=auto noresize'   //Html parameters for main content frame.
    	var brd =b||5;   //Extra border size.
    	var max =x||false;   //Maxzimize option (true|false).
    	var min =m||false;   //Minimize to taskbar option (true|false).
    	var res =r||false;   //Resizable window (true|false).
    	var tsz =20;   //Height of title bar.
    	return chromeless(u,n,W,H,X,Y,cU,cO,cL,mU,mO,xU,xO,rU,rO,tH,tW,wB,wBs,wBG,wBGs,wNS,fSO,brd,max,min,res,tsz)
    }
    
    </script>
    <p><a href="#" onclick="mywin001=openIT('http://www.google.com',600,400,null,null,'mywin001',5,true,true,true);return false">
    Open Google.com</a>
    
    <p><a href="#" onclick="mywin002=openIT('http://www.dynamicdrive.com/faqs.htm',550,600,null,null,'mywin002',5,false,false,true,'#FF8000','#FFC184');return false">
    Dynamic Drive FAQs</a>

    and js in the the attached file

    i need to make that whole window close and i tried using the following code

    HTML Code:
    <input type="button" value="Close Window" onclick="self.close();window.self.close();window.close()">
    to close it and it doesn't do what i want it to please help
    Last edited by CMMVideos; 10-20-2006 at 08:51 PM.

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I set up a demo here and checked the code it uses to close itself when you hit the x on the close button for it. This tested out just fine here:

    HTML Code:
    <input type="button" value="Close Window" onclick="top.window.close();">
    You put that on your page which is showing through the chromeless window.

    You do know that this chromeless window is useless on the web, don't you?
    Last edited by jscheuer1; 11-21-2005 at 11:04 AM. Reason: Pose Question
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  6. #6
    Join Date
    Nov 2005
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    click where for the demo?

  7. #7
    Join Date
    Nov 2005
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    nevermind thanks a BUNCH it works!

  8. #8
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    There is no real way to do a demo of this script on the web, mine was only a local demo, anyway. Use this:

    HTML Code:
    <input type="button" value="Close Window" onclick="top.window.close();">
    on the page you launch in the chromeless window, it will close the chromeless window.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  9. #9
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I doubt you can do that. There may be security issues involved. One thing you can try is (worked in an address bar trial here):

    HTML Code:
    <input type="button" value="Close Window" onclick="top.window.parent.opener=self;top.window.parent.close();">
    I really think this whole idea is poorly thought out though. Don't you see how, on the web, the chromeless window isn't really chromeless but, inside another window? Also, in other browsers, a simple pop-up is created instead. The code I originally gave you works in FF to close this simple pop-up but, changing it to work in IE causes FF to no longer close. I'd suggest using a regular pop-up as can be made using this wizard.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  10. #10
    Join Date
    Nov 2005
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I know what the chromless window is and i wanted it just for visitors in internet explorer, i will try that code and see if it works

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
  •