jsky Posted February 13, 2008 Share Posted February 13, 2008 Ok, I'm currently developing a web application that handles huge contents. In my main page i have 3 panes, each with different functions to show dynamic results (from a search template). I have a problem in loading the entire page because it first waits for all of the 3 divisions to be processed before showing their results. I would like to load the first two panes first, cause the last one is not that necessary and has the function that returns the largest result. Im thinking of using AJAX but is it advisable in this case? Tnx! Quote Link to comment Share on other sites More sharing options...
dbo Posted February 13, 2008 Share Posted February 13, 2008 You could use Ajax, but make sure you understand what other issues this could cause if you do. I don't know your audience, you do.... The other potential option would be using some iframe trickery. Instead of DIVs, you might use an iframe so that the content is loaded into each frame (page) accordingly, without causing the rest of the page to wait. Quote Link to comment Share on other sites More sharing options...
jsky Posted February 14, 2008 Author Share Posted February 14, 2008 Thanks for the reply! What other issues? My audiences are lawyers btw and the contents im talking about are laws/cases. I am new to iframes and my functions are all dependent on that page... If I place ajax on the div that takes the longest to load, would it make that other divs load without waiting for the whole page? Tnx! Quote Link to comment Share on other sites More sharing options...
dbo Posted February 14, 2008 Share Posted February 14, 2008 By audience I just mean if it's people coming to the site by chance, you don't know if they have javascript enabled or not. If you know a defined set of users... and they're okay with the requirement, it's not a big deal. There are just some potential drawbacks with Ajax that you should just be aware of when making your decision. I would think you could chunk your code into the appropriate pages easier than you could Ajaxify everything... but that's just a judgment call you'll have to make. If you have the time, I'd suggest playing with both. If nothing else, you'll just expand your toolkit for future projects. Quote Link to comment Share on other sites More sharing options...
jsky Posted February 14, 2008 Author Share Posted February 14, 2008 Ok i'll try using frames first. thanks! Quote Link to comment Share on other sites More sharing options...
TheFilmGod Posted February 19, 2008 Share Posted February 19, 2008 I don't know exactly why it takes such a long time to load - if you are pulling things from the database, then consider using indexes, and optimizing queries. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.