DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    pierre Guest

    How to give a name to an excel window open from a jscript function


    I have the following asp code :
    Response.write("<script>window.open('/toto.asp','SAP_Extract','scrollbars=yes,status=no,menubar=yes,resizable=yes,width=600,heig ht=500');</script>")

    But this f.. window does not want to be "SAP_Extract" renamed, the url replaces
    it.

    please help me before I go through the window...

  2. #2
    James Barbetti Guest

    Re: How to give a name to an excel window open from a jscript function


    Re: How to give a name to an excel window open from a jscript function

    Cheat!
    What browser are you using?! This hack works in IE.
    Don't know about Netscape
    You can assign the "title" property. Try this:

    >Response.write("<script>w=window.open('/toto.asp','SAP_Extract','scrollbars=yes,status=no,menubar=yes,resizable=yes,width=600,heig ht=500');

    w.document.title='SAP Extract';</script>")

    If that doesn't work - and it might not. You might have to do something
    icky with a timeout waiting until the document in w loads so you can
    set its title.
    HTH
    James


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
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links