http://blog.1SmartSolution.com/1SmartSolution Blog1SmartSolution BlogA Nice To Have List Of Cheat SheetsBased on the title "Must-Have Cheat Sheets for Web Designers"it's meant for Web Designers, but Web Developers will find interesting things too.
http://blog.1SmartSolution.com//index.cfm?action=posts.entry&id=309&A-Nice-To-Have-List-Of-Cheat-Sheets
Wed, 03 Nov 2010 15:45:00 -0400Based on the title "Must-Have Cheat Sheets for Web Designers"it's meant for Web Designers, but Web Developers will find interesting things too.AJAX Clock With jQueryYesterday a had to create a script where some cells in a html table would change their values based on changed values on the server.
So, all it took is to set the timer and at given period of times to call a server side script and gather the info and then display it in right places.
Below is a simplified version of this script. It will call a server script each secod and display the value in a DIV.
The first script is the one that you will load in the browser:
Current Time is: <div align=
http://blog.1SmartSolution.com//index.cfm?action=posts.entry&id=284&AJAX-Clock-With--jQuery
Fri, 23 Apr 2010 17:15:00 -0400Yesterday a had to create a script where some cells in a html table would change their values based on changed values on the server.
So, all it took is to set the timer and at given period of times tFeatured AutoComplete With jQueryGiven
Have a form with 3 fields: Zip(text field), City(text field), State(dropdown field).Problem description
The user fills in the Zip. Then, when starting to fill the City, AutoComplete appear (from those that have filled Zip). When/If one is selected the Stateis filled automatically.
Solution
Nowadays there are many solutions for AJAX AutoComplete but i choosed the jQuery plugin from devbridge.com. It seem to work very well and on the site are given details on how to use it.
So after inc
http://blog.1SmartSolution.com//index.cfm?action=posts.entry&id=227&Featured-AutoComplete-With-jQuery
Fri, 04 Dec 2009 14:04:00 -0400Given
Have a form with 3 fields: Zip(text field), City(text field), State(dropdown field).Problem description
The user fills in the Zip. Then, when starting to fill the City, AutoComplete appear (frHow to get Google Images visitors stick on your siteWe all time to time get visitors from Google Images and usually they just see our site in a frame, just copy the needed image and then forget about that site. Never wanted to have them REALLY land on your site? So they maybe finding something interesting there and becoming one of your repeated visitors?
If so, there is a solution and it is dumb simple:
Create refresh.js with the following code:
if (window != top) top.location = self.location
and put it say in the JS folder of your
http://blog.1SmartSolution.com//index.cfm?action=posts.entry&id=185&How-to-get-Google-Images-visitors-stick-on-your-site
Tue, 09 Dec 2008 19:59:00 -0400We all time to time get visitors from Google Images and usually they just see our site in a frame, just copy the needed image and then forget about that site. Never wanted to have them REALLY land on Controlling browser BACK buttonEver wondered if your application could know when the client click BACK button in the browser so that the application to act accordingly? Well, it happen to be possible. After some googling and more tests and fails, here is what i came to.
<script language="JavaScript" type="text/JavaScript">
<!--
window.onunload = backAlert();
function backAlert()
{
window.onbeforeunload = function ()
{
if (true)
{
return "Warning! If you go back, your data will not be
http://blog.1SmartSolution.com//index.cfm?action=posts.entry&id=164&Controlling-browser-BACK-button
Fri, 26 Sep 2008 00:44:00 -0400Ever wondered if your application could know when the client click BACK button in the browser so that the application to act accordingly? Well, it happen to be possible. After some googling and more t