-
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...
-
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
Forum Rules
|
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
|
Bookmarks