Retain scroll position after browser refresh As Joel Spolsky points out, updating web pages by getting just the bits of…
Year: 2008
Css trick – Preload images
[sourcecode lang=”CSS”] #preloadedimages { width: 0px; height: 0px; background-image: url(‘path/to/image1.png’); background-image: url(‘path/to/image2.png’); background-image: url(‘path/to/image3.png’); } [/sourcecode] You dont even have…
Button Submit Once!
In a web application where the users are real dum the ussualy double click in buttons so the filled forms…
PHP and Microsoft MSSQL SERVER
This is a solution that took me about 1 year to make it work. I proudly present the way to…
NOD32 blocking WampServer
WampServer 2 seemed to work ok with Vista but suddendly stop working. Something block the browser from opening the pages.…
A textarea with maximum characters allowed
Add this script Add the TextArea Add this to display the remaining chars
Display time in page title using JS
Vars from PHP to JS and Back
The easy part is to add a js variable from php. <html> <?php $MyVar3 = “Something in PHP”; ?> <script…
Check if Cookies are Enabled
If cookies are needed you can make a page load check adding this javascript to your page !!! <script type=”text/javascript”>…
Maximize the maximum values in php scripts
In some cases you need to make a custom script for uploading files or even update / synchronize two databases. …