http://blog.1SmartSolution.com/1SmartSolution Blog1SmartSolution BlogAJAX 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 (frAJAX and bad HTMLBe aware of incorrect formatted HTML!
Yesterday i was checking a script that was using AJAX to load some form fields into the form based on the selection in a drop down. Everything there was working fine except the fact that when submitting the form, all AJAX loaded fields was missing in the FORM structure. And this was happening in FireFox while working fine in Internet Explorer.
To be short i will get right to the solution.
The problem was that the FORM tag was right after the TABLE tag (
http://blog.1SmartSolution.com//index.cfm?action=posts.entry&id=154&AJAX-and-bad-HTML
Thu, 19 Jun 2008 23:03:00 -0400Be aware of incorrect formatted HTML!
Yesterday i was checking a script that was using AJAX to load some form fields into the form based on the selection in a drop down. Everything there was workinCross Domain XMLHttpRequestNot long ago was doing some AJAX code that would allow 3rd party sites load data from other site. Everything worked fine when having the "base site" and the "test sites" in same place, but when tryin to run that with 2 different domains.... no luck... Came out that "the browser security model does not allow using XMLHttpRequest (XHR) from one web page domain to contact an URL on another domain". Nice huh?
To see more details on it, visit this link.
http://blog.1SmartSolution.com//index.cfm?action=posts.entry&id=51&Cross-Domain-XMLHttpRequest
Thu, 03 May 2007 06:14:00 -0400Not long ago was doing some AJAX code that would allow 3rd party sites load data from other site. Everything worked fine when having the "base site" and the "test sites" in same place, but when tryin AJAX problem on Opera and SafariHad an interesting issue this week with Safari and Opera.
description:
Have a form with 3 drop downs. First one have values, the second is populated based on the selected value in first select, the 3rd is populated with values based on the selection in the 2nd drop down.
Problem:
All work fine with IE and FF, but not in Safari and Opera. The actual population work fine, BUT right after the 3rd drop down is populated with values, the second drop down disappear at all. And as result, when
http://blog.1SmartSolution.com//index.cfm?action=posts.entry&id=45&AJAX-problem-on-Opera-and-Safari
Sat, 31 Mar 2007 15:26:00 -0400Had an interesting issue this week with Safari and Opera.
description:
Have a form with 3 drop downs. First one have values, the second is populated based on the selected value in first select, th