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


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

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

  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


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


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center