The following warnings occurred: | ||||||||||||||||||||||||||||||
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
|
GetSimple and ajax - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16) +--- Thread: GetSimple and ajax (/showthread.php?tid=2161) |
GetSimple and ajax - spacez320 - 2011-09-08 Hey everyone. I'm trying out GetSimple by building a friend's portfolio site. You can view a draft of the site here: http://www.i-am-matthew.com/others/getsimple. If you click on one of the menu items you'll see that instead of using normal site navigation I'm going for dynamic jquery/ajax approach that will call page content as it needs it. This is to support the client's desire for site movement, etc. My question involves the use of ajax with GetSimple. It seems that the way pages are tied to templates relies on the URL, i.e. the only way to access page 'test-page' is to 1) make the page, 2) link it to a template and 3) visit the correct URL. Does this mean that loading page contents dynamically is out of the question, or am I missing something obvious? Thanks for your help! GetSimple and ajax - ccagle8 - 2011-09-08 if you are linking to a page, it has to "exist" right? jQuery ajax can pull content from any page you request (example: via the href tag), then load a certain "part" of that page while stopping the page refresh. Check out the jQuery load() function. Rule of thumb if you are using javascript/Ajax: Create the page without any javascript first, then layer JS on top of a working site to enhance the UI and to get it working the way you want. |