Welcome Guest, Not a member yet? Register   Sign In
Opinions Wanted: Projects organization for AJAX
#4

[eluser]esra[/eluser]
Think of having a master view or template which is composed of containers. Each container can have its own CSS id. Each container could have an embedded PHP variable which would be a placeholder for embedding a view fragment. Then you can use AJAX techniques to show and hide the containers which act as placeholders for positioning the view fragments.

For the past month, I have been using EXT JS in combination with Coolfactor's View library, but it works well with other AJAX/Widget libraries as well. If you read the forum thread on Coolfactor's View library and think of his part method as a solution for assembling multiple views into a PHP template (master view), you should get the general idea. Once you understand how a master view can be composed of multiple view fragments, using Ajax approaches for showing and hiding view fragments becomes easier to visualize.

There are other solutions mentioned on the forums other than using Coolfactor's View library. Some solutions use PHP-only coding solutions (such as Coolfactor's solution) and other use small to large template parsing engines. What you use to construct your views is probably going to boil down to what you or your end users feel most comfortable with.


Messages In This Thread
Opinions Wanted: Projects organization for AJAX - by El Forum - 07-18-2007, 05:46 PM
Opinions Wanted: Projects organization for AJAX - by El Forum - 07-19-2007, 03:50 AM
Opinions Wanted: Projects organization for AJAX - by El Forum - 07-19-2007, 08:31 AM
Opinions Wanted: Projects organization for AJAX - by El Forum - 07-19-2007, 02:36 PM
Opinions Wanted: Projects organization for AJAX - by El Forum - 07-19-2007, 11:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB