The following warnings occurred:
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 745 errorHandler->error_callback
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 1121 build_postbit
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 1121 build_postbit
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 861 postParser->parse_message
/showthread.php 1121 build_postbit
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 46 - File: showthread.php(1650) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1650) : eval()'d code 46 errorHandler->error_callback
/showthread.php 1650 eval




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GetSimple and ajax
#1
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!
Reply
#2
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.
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply




Users browsing this thread: 1 Guest(s)