Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
Jamroom Help:
Ajax JrNova
adanhash



Joined: 08 Apr 2007
Posts: 224

Posted: 11/01/13 09:39 
Hi, can somebody tell me how i can create a back page in Ajax using jrnova template.
I can see there is jractive in the Js but if i wanted to create a back button.

thank you

Back to top
Michael
Jamroom Team


Joined: 22 Apr 2008
Posts: 3423
Location: Tokyo

Posted: 11/01/13 20:39 
Take a look at the way the links are setup on the profile pages, they have links and back links via ajax.
http://demo.jamroom.net/Princesspw2/

click on songs, then the right arrow on "sshh", it uses this code:

Code
<input type="button" onclick="jrLoad('#pm','http://demo.jamroom.net/Princesspw2/song_34.php');jrShowComments('song','34');" class="s_button" value="&nbsp;&gt;&nbsp;">


and the back arrow uses this code:

Code
<input type="button" onclick="jrLoad('#pm','http://demo.jamroom.net/Princesspw2/songs.php');jrHideComments();" class="s_button" value="&nbsp;&lt;&nbsp;">


so both of the links are ajax links on the page that is created that target the div with the id #pm to load another page.

the actual pages are just snipits, see:
http://demo.jamroom.net/Princesspw2/songs.php
http://demo.jamroom.net/Princesspw2/song_34.php

for the layout of the bits that are loaded.


_________________
Michael Ussher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
Display posts from previous:   
User Support Forum Archive (Read Only)
Jamroom Help

 
Solutions
• Social Media Platform
• Social Networking Software
• Musician Website Manager
• Community Builder
Products
• Jamroom Core
• Jamroom Addons
• Jamroom Modules
• Jamroom Marketplace
Support
• Support Forum
• Documentation
• Support Center
• Contact Support
Community
• Community Forum
• Member Sites
• Developers
Company
• About Us
• Contact Us
• Privacy Policy
©2003 - 2010 Talldude Networks, LLC.