Contact Us
Web Development Team

resources

helpful hints - PHP



Helpful Hints JavaScript is a scripting language most often used for client-side web development. The primary use of JavaScript is to write functions that are embedded in HTML pages and interact with the Document Object Model (DOM) of the page. Some simple examples of this usage are:

Because JavaScript code can run locally in a user's browser (client side as opposed to server side), it can respond to user actions quickly, making an application feel more responsive. Furthermore, JavaScript code can detect user actions which HTML alone cannot, such as an 'onClick' or 'onmouseover' event.



PHP Alert Box

echo "<script type='text/javascript'> alert('I am here'); </script>";


Force image to not be Cached

Important if you are using dynamic images (i.e. pulling from database)

<img src="../fabric_images/<?=stripslashes($row[some_image]);?>?<?PHP echo time(); ?>"

The little <?PHP echo time(); ?> does the trick!
Copyright © 2008 by DSD Web Works - All rights reserved.
Site Map