Tip Bank

DevX - Software Development Resource

Cannot Use JavaScript to Get Server Date

Question: How do I get the server date using JavaScript that is embedded in an HTML file? Answer: You can use server-side code (like Perl, ASP, and so forth) to

DevX - Software Development Resource

Cannot Align Prompts and Alerts

Question: I have alerts and prompts intermingled on a page that collects information from the user. Is there a way to align them all so that they do not appear

DevX - Software Development Resource

Function for Adding Sales Tax

Question: What function would I use to take a given amount of money and add 6% sales tax? Answer: In JavaScript you could use: function addSalesTax(SubTotal){ return SubTotal * 1.06}

DevX - Software Development Resource

Accessing a Workstation in a Domain

Question: I would like to know how to access a workstation which is configured and logged on to an NT domain, from another PC in a workgroup environment? Most of

DevX - Software Development Resource

Reference an External JavaScript File

Question: How do you reference an external JavaScript file from an HTML page? Answer: You can reference an external JavaScript file from your HTML page similar to the way you’d

DevX - Software Development Resource

Using NetAddUsers

Question: I created a program to Add User Account to my NT Server. It reads from a text file which provides the user info. Everything works fine, except that the

DevX - Software Development Resource

Insert Persistent Breakpoints

VB won’t let you save a breakpoint when you have a lengthy debugging session. Use Debug.Assert to create persistent breakpoints that trigger when you are in the environment, but not

DevX - Software Development Resource

Print the Frame From JavaScript

You can print the entire document from the JavaScript using Parent.Print() function. Similarly, to print a frame from JavaScript, you can use parent.framename.print() in the code. For example, this code