Showing tag results for Web pages and HTAs

Jul 17, 2007
Post comments count0
Post likes count0

How Can I Display a Default Message If Nothing Has Been Typed Into a Text Box?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! Sometimes you go to a Web page and you’ll see a text box that includes some instructions, something like “Please type a description in this box.” When you click on the text box, those instructions disappear; however, if you click on the box, don’t type in a description and then click somewhere else, then the instructions reapp...

Scripting Guy!scripting techniquesVBScript
Jul 12, 2007
Post comments count0
Post likes count0

How Can I Ensure That a User Enters Only Allowed Characters in a Text Box?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! I have an HTA which includes a text box where the user must enter a part number. Part numbers must consist of a certain set of characters; how can I determine if a user entered an invalid character in the part number text box?-- RR Hey, RR. You know, with one exception, no one has ever accused the Scripting Guy who writes th...

Scripting Guy!scripting techniquesVBScript
May 25, 2007
Post comments count0
Post likes count0

How Can I Export an HTA Table to Excel?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I put a button in an HTA that, when clicked, exports an HTML table to Excel?-- DW Hey, DW. You know, yesterday afternoon the Scripting Guy who writes this column went to get his hair cut, figuring he needs to look his best for TechEd 2007. (It was only after he got his hair cut that he realized what a futile gesture ...

Scripting Guy!scripting techniquesVBScript
May 14, 2007
Post comments count0
Post likes count0

How Can I Dynamically Hide and Show a Control in an HTA?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I dynamically hide and show a control in an HTA?-- R L-K Hey, R L-K. To tell you the truth, we’re a little distracted today. Admittedly, we’re a little distracted pretty much every day. However, today is different: today the Scripting Guy who writes this column in sitting on a powder keg that threatens to destroy the ...

Scripting Guy!scripting techniquesVBScript
May 11, 2007
Post comments count0
Post likes count0

How Can I Highlight a Keyword in an HTA?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! I’d like to create an HTA that, upon loading, can open a text file and then display the contents. However, I’d like a particular keyword in those contents to be highlighted. How can I do that?-- GD Hey, GD. You know, a lot of people at Microsoft pooh-pooh the work that the Scripting Guys do. “Take that Hey, Scripting Guy! col...

Scripting Guy!scripting techniquesVBScript