Skip navigation.

my php-driven thoughts

about web and something more

Posts tagged with "ajax"

1st personal encounter with Ajax

, , , ...

Yesterday i was cleaning up my project's registration form (script, css, layout). The same big form with lots of fields. 4 of them are for defining users geographical location (country, county, district, city; more on that - here). So i decided to make it more comfortable (read: idiot-proof).

Country list: check if chosen countr is Lithuania;
yes) activate county list;
no) deactivate county, district and city lists;

County list: check if user has chosen county;
yes) retrieve district list of districts for certain county and activate district list;
no) do not activate district and city lists;

(Todo)
District list: check if user has chosen valid district;
yes) retrieve list of cities for certain district and activate city list;
no) do not activate city list;

I haven't done the latter one 'cause i didn't find someone who could assign all the cities (total: 103) to all the districts (total: 53). Quite a bloody work.

In conclusion i must say, that Ajax really made registration more comfortable. If you're wondering if it's hack proof - all data checks are done on the server-side php script with all mistake reporting (if user is a bigger idiot than i expected him/her to be). It has broadend knoledge of JavaScript for me as well (i was testing registration form on three browsers: IE6, FF1.5 and Opera). So far so good!

Ajax - new tech-rage?

, ,

Have read a few articles on Ajax. The newest fashion-tech-rage at the moment. Have some thoughts on realizing it in my job (got quite big project at the time with death-line marching in). First thing on my mind - as any other good thing it has own drawbacks. Quite some coding must be done to make a page with ajax /(fool|hack|xss)-proof/. At current situation most of projects are based on "must-code-quickly" and not "must-code-to-make-good-performance" aspect 'cause of current hardware on the market. And for this we have abstractions, wrappers and other thing to make us live (and code) with b[u|i]gg[i|]er performance.

If anyone is reading this, could you please provide me with some actual applications? I mean lots of frameworks (namely PHP, dunno about other languages) are Ajax-based, but web-site? A colegue gave me some links (oh, and please don't forget almighty GMail (tm)), but i haven't been convinced about using it in small projects which require little or none server-side coding.

Just makes me think of upcoming new technologies (yes, i know, that ajax is not a technology), what next? Make a webpage, that can shake you Shakeratto (i think i mis-spelled it)? And again everyone will be reading megabytes of api-documentation, tutorials, articles'n'stuff. In a few months everything will be forgotten. Until other tech-fashion-rage comes.
December 2009
S M T W T F S
November 2009January 2010
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31