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

Rotate an Image

Question: I’m creating a drag and drop program to design kitchens. How can I rotate a single picture using JavaScript? Answer: You can’t rotate an image using JavaScript. JavaScript doesn’t

DevX - Software Development Resource

Concatenate Variables Containing Numbers

Question: I need to know how to concatenate variables containing numbers, that is, string them together one after the other. Every method I know simply adds the various numbers together