Friday, March 27, 2009

Concurrent Connections with Ajax

Concurrent Connections with Ajax

Here is an quick example of an ajaxed application - you have your main page (lets say index.htm) and when it loads it calls in various content using ajax (lets say we call in navigation.php, products.php and basket.php). Ok so navigation.php, and products.php load fine but basket.php fails!! Hmmm, what a pain - why did it fail to load you ask. Simple!! most browsers can only handle 2 ajax calls at one time and because all 3 of them are called on the index.htm page load - then one probably will fail.

Ok, so how do we get around this limitation? well one way I’ve found that works pretty well is to put delay in the ajax calls ” window.setTimeout(”ajaxcall()”, 400); ” for example. You could have this in the tag or just simply enter the javascript at the end of the page (body onload would probably be the best option).

I’d be interested to hear other possible solutions.

Thursday, January 22, 2009

Mahi Mahi from - Raaz

Mahi mahi mahi

Tujhe milke laga hai ye, tujhe dhundh raha tha main
Tujhe milke laga hai ye, tujhe dhundh raha tha main

Tujhme hai kuch aisi subah sa
Jiski khaatir main tha jaga sa
Aa tu mere khwab sajaa ja re
Mahi aaja re, mahi aaja re

Tujhme hai kuch aisi subah sa
Jiski khaatir main tha jaga sa
Aa tu mere khwab sajaa ja re

Dil roye ya ilahi, tu aaja mere mahi
Dil roye ya ilahi, tu aaja mere mahi
Dil roye ya ilahi, tu aaja mere mahi
Mere mahi, mere mahi tu aaja mere mahi

Tujhe milke laga hai ye tujhe dhundh raha tha main
Tujhe milke laga hai ye tujhe dhundh raha tha main
Tujhme hai kuch aisi subah sa
Jiski khaatir main tha jaga sa
Aa tu mere khwab sajaa ja re

Dil roye ya ilahi, tu aaja mere mahi
Dil roye ya ilahi, tu aaja mere mahi
Mere mahi, mere mahi tu aaja mere mahi
Dil roye ya ilahi, tu aaja mere mahi

Mahi mahi…
Dhadkano me mahi, saanso me hai mahi
Tu hi hai mere dil ki tamanna
Teri hi yaadein har lamha
De mujhe de apna aanchal
Dhoop me jalta main harpal

Tujhme hai kuch aisi ghataa sa
Jiske liye hu main pyaasa sa
Aa tu meri pyaas bujha ja re

Dil roye ya ilahi, tu aaja mere mahi
Dil roye ya ilahi, tu aaja mere mahi
Mere mahi, mere mahi
Tu aaja mere mahi dil roye ya ilahi
Tu aaja mere mahi

Mahi mahi…
Bas mera tu mahi saanso me hai maahi
Hain mujhe hai tera armaan
Hain tujhe hai mera banna
Har ghadi teri dil me aahat
Tu mile mil jaaye raahat

Judd ke bhi tu mujhse juda sa
Milke bhi tu kyu hai khafaa sa
Aaja meri baaho me aaja re

Ohhoo..
Judd ke bhi tu mujhse juda sa
Milke bhi tu kyu hai khafaa sa
Aaja meri baaho me aaja re

Dil roye ya ilahi, tu aaja mere mahi
Dil roye ya ilahi, tu aaja mere mahi
Mahiiii…….. (Dil roye ya ilahi, tu aaja mere mahi)