Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Dec 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Ajax Loading Problem

    Hi,
    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

  • #2
    Senior Coder
    Join Date
    Oct 2008
    Location
    Long Beach
    Posts
    1,196
    Thanks
    36
    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 ;)
    ohsosexybrit@gmail.com


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •