Welcome Guest, Not a member yet? Register   Sign In
ajax & templating issue
#4

[eluser]Randy Casburn[/eluser]
Quote:uncomfortable…

What precisely is "uncomfortable"? Are you new to asynchronous calls and Ajax?

Try to think of things this way. From a performance perspective, you want all your STATIC content to fly out the door very fast...that means you want it to be stored and CACHED! That way every time someone visits yours site they get nearly immediate response directly out of the CACHE.

It is the 8 areas (or blocks or segments or chunks or snippets etc) that will be "dynamic" on your page that you probably don't want cached...right?

So in your main template file you put all your <html><head><body> stuff that will be mostly static and maybe the placeholders for your 8 areas. Then, in a subfolder (maybe) of your View folder you place your 8 area partial HTML files that only contain the html that will "fill-in" the placeholder areas when they get called via AJAX.

Now someone is likely to call up the term "gracefull degradation". That means what about the .03% of the people that may not be running JS anymore. You still have the option to test for JS, and if the client is not running JS, redirect back to the controller, reload the main template + all the 8 areas into the placeholders as normal load->view() calls.

Still working for you?

Randy


Messages In This Thread
ajax & templating issue - by El Forum - 07-30-2008, 05:27 AM
ajax & templating issue - by El Forum - 07-30-2008, 09:07 AM
ajax & templating issue - by El Forum - 07-30-2008, 09:20 AM
ajax & templating issue - by El Forum - 07-30-2008, 09:56 AM
ajax & templating issue - by El Forum - 07-30-2008, 10:19 AM
ajax & templating issue - by El Forum - 07-30-2008, 10:49 AM
ajax & templating issue - by El Forum - 07-30-2008, 10:52 AM
ajax & templating issue - by El Forum - 07-30-2008, 11:07 AM
ajax & templating issue - by El Forum - 07-30-2008, 11:10 AM
ajax & templating issue - by El Forum - 07-30-2008, 11:17 AM
ajax & templating issue - by El Forum - 07-30-2008, 11:19 AM
ajax & templating issue - by El Forum - 07-30-2008, 11:37 AM
ajax & templating issue - by El Forum - 07-30-2008, 12:11 PM
ajax & templating issue - by El Forum - 07-30-2008, 12:32 PM
ajax & templating issue - by El Forum - 07-30-2008, 11:15 PM
ajax & templating issue - by El Forum - 07-30-2008, 11:19 PM
ajax & templating issue - by El Forum - 07-31-2008, 12:30 AM



Theme © iAndrew 2016 - Forum software by © MyBB