Hi guys and gals,
i started to set up the fine MODX for a good friend of mine. He asked me how to prevent loading the whole site. So i think about the one-page solution used in the modx-manager. i read a lot of articles about ajax(and know the principles) and different js-libraries but don’t get the right clue how to put it together.( cause i’m more a designer than the programmer). The goal is to load the content in a defined div. The links are provided by the dropmenu-snippet in the template and the prototype.js comes from the CMS-installation.But where should i start?
Maybe some of you can take me by the hand and till i know the procedure (with your help ;-) ).
A working example can you see here at:
http://www.scottydelicious.com/
Here are my first thoughts:
i need a asynchronous load of [*content*] provided by the system. Do i have to modify the system (php)?
To do that mentioned load, i need XMLHttp-Request. (for requests and error-handling). I’m sure i can use protype.js for this, right?
Plus, i need a little nifty js to do the DOM-manipulation? I’m able to read the code and most of the times i undertand the algorithm. So, I need a fingertip on this.
thanks in advance. le block