Page 1 of 1
Dynamic Content - Keep loaded divs in memory - so no reload
Posted:
Tue Mar 28, 2006 12:54 am
by photo2005
Posted:
Tue Mar 28, 2006 10:18 am
by Batalf
Posted:
Tue Mar 28, 2006 1:20 pm
by mbz
Batalf,
The dynamic content I am displaying via this script are .PHP pages (where information is pulled from a MySQL Database) ...
Will this update have any performance increase in this instance (since the pages are essentially dynamic and not static)??
Or, will it simply still have to reload the page every time because of the nature of PHP/MySQL?
Thanks,
MIKE
Posted:
Tue Mar 28, 2006 11:44 pm
by Batalf
Posted:
Wed Mar 29, 2006 3:42 am
by photo2005
Hey Alf,
Good stuff. It seems to be working on my end too. There is still a bit of a lag compared to the other script's cache feature, but its quicker than nothing at all.
Posted:
Wed Mar 29, 2006 4:20 am
by mbz
Batalf,
Is there any way to actually transparently load / cache several pages (before their links are actually clicked by the user), so if they will load in the backend (and not show) but allow for faster display when the user does click on the link?
Would simply loading each of the pages into a div with css set to display:none work for this? (even though the same page when clicked would be loaded into a different div that will be displayed) Or, is there a better way??
Thanks,
MIKE
Posted:
Wed Mar 29, 2006 6:21 am
by mbz
Posted:
Wed Mar 29, 2006 10:04 am
by Batalf
Hi Mike,
Yes, preloading the content into a div with display:none is a very good idea.
I will add this to my script as soon as possible.
Posted:
Wed Mar 29, 2006 10:15 am
by mbz
Batalf,
Will my example actually work, as it sends each of the requests in rapid succession (from the loop, and doesn't wait for each previous request to complete) ... Do you know what I mean?
MIKE
Posted:
Wed Mar 29, 2006 10:22 am
by Batalf
Yes, I think I know what you mean. You are thinking of the problem that could occure if you start a second ajax process before the first one is finished.
That's actually something I thought about before creating the script
To solve this problem, I create a unique sack() object for each request to the server. So, each and every request live their separate life and know nothing about the other requests.
Posted:
Wed Mar 29, 2006 10:33 am
by mbz