Jump to content

Search pages


Asheeown

Recommended Posts

I have a search script that allows users to search through logs and it takes a few seconds to load the results, but the problem is whenever you search, instead of the labels for the results coming up before the query goes through, the query runs first and makes it so they have to wait till the query is done to see even the labels for the results, how can I have the labels come up first then run the query
Link to comment
https://forums.phpfreaks.com/topic/36240-search-pages/
Share on other sites

You can't. There are some posible workarounds. Such as having the page load with just the regular page content and the labels and then querying the data via AJAX and populating it that way, using a frame, as well as others.

But instead of treating the symptom, how about curing the problem? There's probably a good chance that the query could be reformatted to take a much shorter period of time to where you wouldn't even need to think about a solution as you proposed. Why don't you show us the script you have for doing the query and perhaps giving some details of your database and maybe someone can provide a better method.
Link to comment
https://forums.phpfreaks.com/topic/36240-search-pages/#findComment-172245
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.