SCOUG-HELP Mailing List Archives
Return to [ 28 | 
June | 
2003 ]
<< Previous Message << 
 
 
 
Content Type:   text/plain 
=====================================================  
If you are responding to someone asking for help who  
may not be a member of this list, be sure to use the  
REPLY TO ALL feature of your email program.  
=====================================================  
 
Steven Levine wrote:  
>   
> function addPanel(){  
 
Great code snippet, thanks again.  The function code:  
 
    function addPanel() {  
      if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function")) {  
        window.sidebar.addPanel ("HTML/XML @ About","http://html.about.com/library/z_netscapesidebar.html","");  
        }  
      else {  
        var rv = window.confirm ("This page is enhanced for use with Netscape 6.  " + "Would you like to upgrade now?");  
        if (rv) document.location.href = "http://home.netscape.com/download/index.html";  
        }  
      }  
 
depends on one single statement to open the new tab:  
 
     window.sidebar.addPanel ("HTML/XML @ About","http://html.about.com/library/z_netscapesidebar.html","");  
 
and a Google search on "window.sidebar.addPanel"  
finds the following page in the #1 position:  
 
    http://www.webreference.com/scripts/sidebar/6.html  
 
which should give me everything I need (including  
a handler for browsers with JavaScript turned off).  
 
Thanks once more for pointing me in the right direction.  
 
- Peter  
 
 
=====================================================  
 
To unsubscribe from this list, send an email message  
to "steward@scoug.com". In the body of the message,  
put the command "unsubscribe scoug-help".  
 
For problems, contact the list owner at  
"rollin@scoug.com".  
 
=====================================================  
 
  
<< Previous Message << 
Return to [ 28 | 
June | 
2003 ] 
  
  
The Southern California OS/2 User Group
 P.O. Box 26904
 Santa Ana, CA  92799-6904, USA
Copyright 2001 the Southern California OS/2 User Group.  ALL RIGHTS 
RESERVED. 
 
SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group.
OS/2, Workplace Shell, and IBM are registered trademarks of International 
Business Machines Corporation.
All other trademarks remain the property of their respective owners.
 
 |