Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: Ajax Loading Problem
12-04-2008, 10:47 AM #1
- Join Date
- Dec 2008
- Thanked 0 Times in 0 Posts
Ajax Loading Problem
I need one solution i am using ajax combo box in my site which is in php mysql. it's working fine but it is taking some more time to load this ajax combo box.
right now i am loading box on body onload function can any one tell me that how can i load this combo before page load.
So that first combo will load and then page will load.
It's urgent please give me any suggestions.
Thanks in advance
12-04-2008, 06:48 PM #2
- Join Date
- Oct 2008
- Long Beach
- Thanked 164 Times in 164 Posts
Why not avoid client-side ajax and just echo it out using a PHP include?
If your goal is to retrieve data on or before your page's load, AJAX is kind of not the way to go. You can use things like iframe srcs and JS xmlhttprequests, but the whole idea of AJAX is to retrieve/display data during runtime. If you want to retrieve/display BEFORE a page load, just use includes (or for ASP, xmlhttprequest).
Last edited by itsallkizza; 12-04-2008 at 06:51 PM.
Feel free to e-mail me if I forget to respond ;)