Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Community
Technology
Technology Q&A
Ajax content help
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Trill" data-source="post: 242793" data-attributes="member: 35388"><p>Okay, I am extremely rusty at this and can't really remember how I've done it. However, I'm working on a site powered by Bootstrap and rather than having every page reload as I need some content to stay in place while switching pages, and I'm wanting to use ajax content. I checked how dynamic drive and got the main code/hang of it again.. but for some reason it's not doing what I want it to do. I'm basically confused as to where to place the code to load the main content, and then when clicking a navigator link, it loads that pages content where the blow code is placed.</p><p>[CODE]<div id="contentarea"></div>[/CODE]</p><p></p><p>Here's a navigator code:</p><p>[CODE]<li><a href="javascript:ajaxpage('test.php, 'contentarea');">test</a></li>[/CODE]</p><p></p><p>Test consists of:</p><p>[CODE]</p><p> <div class="row"></p><p> <div class="col-sm-8"></p><p> <div class="panel panel-default"></p><p> <div class="panel-heading"></p><p> <h3 class="panel-title">Test Panel</h3></p><p> </div></p><p> <div class="panel-body"></p><p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam iaculis tincidunt nunc eu iaculis. Curabitur aliquam, purus volutpat tincidunt fermentum, augue erat </p><p> scelerisque dui, at aliquet leo lectus quis dui. Nulla congue elit in lacus porttitor, ultricies ultrices ligula porttitor. Praesent faucibus ullamcorper ligula ut </p><p> cursus. Vivamus condimentum augue vel dapibus feugiat. Proin vulputate massa at tortor iaculis, in sodales nulla suscipit. Pellentesque commodo venenatis mauris, </p><p> vitae feugiat tortor cursus non. Interdum et malesuada fames ac ante ipsum primis in faucibus. Nunc quam nisi, semper non tortor vel, tincidunt eleifend dui. </p><p> Curabitur pellentesque, nulla eu blandit condimentum, augue ante posuere nunc, at laoreet velit est ac ipsum. Vivamus neque elit, pellentesque eu justo a, </p><p> iaculis lacinia leo. Sed pulvinar dapibus diam et vulputate. In porta sem id lorem vestibulum pulvinar. Suspendisse luctus lorem sit amet condimentum volutpat. </p><p> Nullam id pharetra tortor.</p><p> <br /><br /></p><p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam iaculis tincidunt nunc eu iaculis. Curabitur aliquam, purus volutpat tincidunt fermentum, augue erat </p><p> scelerisque dui, at aliquet leo lectus quis dui. Nulla congue elit in lacus porttitor, ultricies ultrices ligula porttitor. Praesent faucibus ullamcorper ligula ut </p><p> cursus. Vivamus condimentum augue vel dapibus feugiat. Proin vulputate massa at tortor iaculis, in sodales nulla suscipit. Pellentesque commodo venenatis mauris, </p><p> vitae feugiat tortor cursus non. Interdum et malesuada fames ac ante ipsum primis in faucibus. Nunc quam nisi, semper non tortor vel, tincidunt eleifend dui. </p><p> Curabitur pellentesque, nulla eu blandit condimentum, augue ante posuere nunc, at laoreet velit est ac ipsum. Vivamus neque elit, pellentesque eu justo a, </p><p> iaculis lacinia leo. Sed pulvinar dapibus diam et vulputate. In porta sem id lorem vestibulum pulvinar. Suspendisse luctus lorem sit amet condimentum volutpat. </p><p> Nullam id pharetra tortor.</p><p> </div></p><p> </div>[/CODE]</p><p></p><p>Thanks!</p></blockquote><p></p>
[QUOTE="Trill, post: 242793, member: 35388"] Okay, I am extremely rusty at this and can't really remember how I've done it. However, I'm working on a site powered by Bootstrap and rather than having every page reload as I need some content to stay in place while switching pages, and I'm wanting to use ajax content. I checked how dynamic drive and got the main code/hang of it again.. but for some reason it's not doing what I want it to do. I'm basically confused as to where to place the code to load the main content, and then when clicking a navigator link, it loads that pages content where the blow code is placed. [CODE]<div id="contentarea"></div>[/CODE] Here's a navigator code: [CODE]<li><a href="javascript:ajaxpage('test.php, 'contentarea');">test</a></li>[/CODE] Test consists of: [CODE] <div class="row"> <div class="col-sm-8"> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title">Test Panel</h3> </div> <div class="panel-body"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam iaculis tincidunt nunc eu iaculis. Curabitur aliquam, purus volutpat tincidunt fermentum, augue erat scelerisque dui, at aliquet leo lectus quis dui. Nulla congue elit in lacus porttitor, ultricies ultrices ligula porttitor. Praesent faucibus ullamcorper ligula ut cursus. Vivamus condimentum augue vel dapibus feugiat. Proin vulputate massa at tortor iaculis, in sodales nulla suscipit. Pellentesque commodo venenatis mauris, vitae feugiat tortor cursus non. Interdum et malesuada fames ac ante ipsum primis in faucibus. Nunc quam nisi, semper non tortor vel, tincidunt eleifend dui. Curabitur pellentesque, nulla eu blandit condimentum, augue ante posuere nunc, at laoreet velit est ac ipsum. Vivamus neque elit, pellentesque eu justo a, iaculis lacinia leo. Sed pulvinar dapibus diam et vulputate. In porta sem id lorem vestibulum pulvinar. Suspendisse luctus lorem sit amet condimentum volutpat. Nullam id pharetra tortor. <br /><br /> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam iaculis tincidunt nunc eu iaculis. Curabitur aliquam, purus volutpat tincidunt fermentum, augue erat scelerisque dui, at aliquet leo lectus quis dui. Nulla congue elit in lacus porttitor, ultricies ultrices ligula porttitor. Praesent faucibus ullamcorper ligula ut cursus. Vivamus condimentum augue vel dapibus feugiat. Proin vulputate massa at tortor iaculis, in sodales nulla suscipit. Pellentesque commodo venenatis mauris, vitae feugiat tortor cursus non. Interdum et malesuada fames ac ante ipsum primis in faucibus. Nunc quam nisi, semper non tortor vel, tincidunt eleifend dui. Curabitur pellentesque, nulla eu blandit condimentum, augue ante posuere nunc, at laoreet velit est ac ipsum. Vivamus neque elit, pellentesque eu justo a, iaculis lacinia leo. Sed pulvinar dapibus diam et vulputate. In porta sem id lorem vestibulum pulvinar. Suspendisse luctus lorem sit amet condimentum volutpat. Nullam id pharetra tortor. </div> </div>[/CODE] Thanks! [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Community
Technology
Technology Q&A
Ajax content help
Top