[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4284: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4286: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4287: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4288: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
www.dhtmlgoodies.com • View topic - Dynamic Content - Keep loaded divs in memory - so no reload
Advertisement

Dynamic Content - Keep loaded divs in memory - so no reload

Moderators: Calcifer, slothy

Dynamic Content - Keep loaded divs in memory - so no reload

Postby photo2005 » Tue Mar 28, 2006 12:54 am

photo2005
 
Posts: 11
Joined: Tue Mar 28, 2006 12:38 am

Postby Batalf » Tue Mar 28, 2006 10:18 am

Batalf
Site Admin
 
Posts: 2160
Joined: Sat Oct 22, 2005 9:38 pm

Postby mbz » Tue Mar 28, 2006 1:20 pm

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
mbz
 
Posts: 59
Joined: Wed Mar 15, 2006 6:24 pm
Location: Chandler, Arizona (USA)

Postby Batalf » Tue Mar 28, 2006 11:44 pm

Batalf
Site Admin
 
Posts: 2160
Joined: Sat Oct 22, 2005 9:38 pm

Postby photo2005 » Wed Mar 29, 2006 3:42 am

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.
photo2005
 
Posts: 11
Joined: Tue Mar 28, 2006 12:38 am

Postby mbz » Wed Mar 29, 2006 4:20 am

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
mbz
 
Posts: 59
Joined: Wed Mar 15, 2006 6:24 pm
Location: Chandler, Arizona (USA)

Postby mbz » Wed Mar 29, 2006 6:21 am

mbz
 
Posts: 59
Joined: Wed Mar 15, 2006 6:24 pm
Location: Chandler, Arizona (USA)

Postby Batalf » Wed Mar 29, 2006 10:04 am

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.
Batalf
Site Admin
 
Posts: 2160
Joined: Sat Oct 22, 2005 9:38 pm

Postby mbz » Wed Mar 29, 2006 10:15 am

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
mbz
 
Posts: 59
Joined: Wed Mar 15, 2006 6:24 pm
Location: Chandler, Arizona (USA)

Postby Batalf » Wed Mar 29, 2006 10:22 am

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 :D

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.
Batalf
Site Admin
 
Posts: 2160
Joined: Sat Oct 22, 2005 9:38 pm

Postby mbz » Wed Mar 29, 2006 10:33 am

:D
mbz
 
Posts: 59
Joined: Wed Mar 15, 2006 6:24 pm
Location: Chandler, Arizona (USA)


Return to General questions regarding AJAX scripts

Who is online

Users browsing this forum: No registered users and 4 guests

cron