Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 16th, 2004, 12:26 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Great, that's even better as that removes the last bit of code from your page to separate files.

Now, if you trigger the Print code from an onload also defined in an external file, you can turn each page into a self printing page simply by adding two <script> tags.....

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Safe From Harm by Massive Attack (Track 1 from the album: Blue Lines) What's This?
 
Old December 17th, 2004, 01:04 AM
Authorized User
 
Join Date: Aug 2003
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Imar,
I had the document.write statements in the .vbs file. Moved to end of local file as you suggest and it works great.

Joe, had a little trouble getting your change to work. Finally figured out why and got it running as you describe!

I'm finding that when it comes to using some the specialized features - i.e. ExecWB method - that VBScript is typically used (I assume this is MS native script for HTML and ASP???). I guess if I want to start using more of these specialized features, it would be best if I invested a little time in better understanding proper VBScript syntax.

For a new kid on the block, this stuff is great. You've both stretched this beginner's abilities, and I've learned quite a bit just in this little example.

Thanks to both of you,
TSeroogy





Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding button with dropdown to IE toolbar baburman VB How-To 2 November 9th, 2006 10:10 PM
Browser Size and Toolbar settings wirerider ASP.NET 2.0 Basics 1 January 25th, 2006 03:08 PM
Button with dropdown in IE toolbar baburman General .NET 1 May 20th, 2005 02:39 AM
disable browser toolbar onLoad Mugentykst Javascript How-To 1 January 14th, 2004 11:45 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.