IT Admin

Archive for February, 2009

JavaScript Tutorials, PopUp Boxes

by frenchsquared on Feb.22, 2009, under Tutorials

With JavaScript you can create three types of PopUp boxes: Alert, Confirm and Prompt. In javaScript you can also manipulate browsers to create popup windows, but that is covered in a later tutorial.


Alert

An alert box is often used if you want to make sure information comes through to the user or during testing. A developer can use alerts to see how code is being interpreted. When an alert box pops up, the user will have to click “OK” to proceed.

<script type=“text/javascript”>
function disp_conf()
{
alert (“I am an alert box!!”);
}
</script>

<input type=“button” onclick=“disp_alert()” value=“Display Alert” />


Confirm Box

A confirm box is often used if you want the user to verify or accept something.. When a confirm box pops up, the user will have to click either “OK” or “Cancel” to proceed. If the user clicks “OK”, the box returns true. If the user clicks “Cancel”, the box returns false.

<script type=“text/javascript”>
function disp_confirm()
{
var x = confirm(“Press a button”);
if (x == true)
{
document.write(“You pressed OK!”);
}
else
{
document.write(“You pressed Cancel!”);
}
}
</script>

<input type=“button” onclick=“disp_confirm()” value=“Display Confirm” />


Prompt Box

A prompt box is often used if you want the user to input a value before entering a page. When a prompt box pops up, the user will have to click either “OK” or “Cancel” to proceed after entering an input value. If the user clicks “OK” the box returns the input value. If the user clicks “Cancel” the box returns null.

<script type=“text/javascript”>
function disp_prompt()
{
var name=prompt(“Please enter your name”,“Tutorials Fan”);
if (name!=null && name != “”)
{
document.write(“Hello ” + name + “! How are you today?”);
}
}
</script>

<input type=“button” onclick=“disp_promt()” value=“Display Prompt” />

Conclusion

PopUp boxes are simple to use, yet are an invaluable tool. As you start developing more complex code, you will see how wonderful an alert is to test if statements. Just remember there are three basic types of PopUp boxes: Alert, Confirm and Prompt. Think about using a prompt box as a way to ask for a password.

  • Share/Bookmark
Leave a Comment :, more...

How To Protect Your Hard Drive The Easy Way Using TrueCrypt

by admin on Feb.13, 2009, under Tutorials, Windows

true crypt

Hard drive encryption sounds like an intimating concept, mostly because it is. The thought of taking your precious files, then using a mathematical formula to convert them into random noise before scattering them back across your disk is a hard sell. The harsh reality is, mobile computing is on the rise, and so is laptop theft. Depending on who you ask, anywhere from 500,000 to over 1,000,000 laptops are lost or stolen in the US each year. In some cases, the data on the hard drive is often more valuable than the machine itself.

To determine if disk encryption is something you should be considering, simply ask yourself if your PC contains anything you wouldn’t want posted publically on the internet. If the answer to this is yes (and I assume for most of us it is) then encryption is worth considering.

The good news is, you no longer need to be a member of the CIA to lock down your machine with government level encryption. In fact, one of the most highly regarded and powerful encryption tools available is both free, and open source (our favorite combination!) True Crypt allows you to protect either all your data, or only what you choose. You can mask your boot drive and sensitive documents, while leaving your games or other non generic data in the clear. While no encryption process is without risk, True Crypt is designed to put your mind at ease, and takes no chances with your data. The process can be reversed at any time even without being able to boot into windows.

So if your ready to get started click the jump to learn step by step how to protect your data.

read more

  • Share/Bookmark
Leave a Comment : more...

How to Remove Malware — Purge Your PC of Junk Files!

by admin on Feb.13, 2009, under Tutorials, Windows

Malware is everywhere. You can’t browse on any Internet tech forum without someone mentioning this word (with disdain), usually in search of a remedy after being infected with spyware. No matter how careful you are, we’re guessing that many of you have had malware inadvertently installed on your system and may have even ended up reformatting your computer as a last resort. While that may have been the most thorough solution, it is in a sense admitting defeat. Or worse yet, you took your computer to get cleaned and was charged anywhere from $50-300 — a high price for humiliation. But don’t fret, because you can actually purge your system of malicious software for free! Just follow our comprehensive guide.

read more

  • Share/Bookmark
Leave a Comment : more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...