Sliding Panels Support Product Page
Load in a PHP Panel
 Asked  06 Jul 2010  00:29:47 
  1 
     has   this question  
  06 Jul 2010  00:29:47 Jim Elliott posted: 
 Is there anyway for the panels to loaded in from another php template? I have tried the inclde command but it did not work.  Replies
 Replied 06 Jul 2010  09:58:54 
   06 Jul 2010  09:58:54 Jim Elliott replied: 
  [ ] I have worked out how to do it with the load function of jquery (which is use for the sliding panels anyway).
] I have worked out how to do it with the load function of jquery (which is use for the sliding panels anyway).
I created to external php templates that pulled in data from a database test1 and test2. Origiinal I thought.
In the page with the sliding panels you need to put uniquely identified divs within each panel. eg <div id="panel1">
Within the head of the page (where the javascript is) you simply add a function to load them in:
<script type="text/javascript">
$(document).ready(function() {
$('#panel1').load('test1.php');
$('#panel2').load('test2.php');
});
</script>
and it works fine. The main (calling) page does not need to be a php page and of course other types of pages can be called.
The load features has a useful feature which allows just a particular div to be loaded.
Look at
api.jquery.com/load/
Hope this is helpful.
   ] I have worked out how to do it with the load function of jquery (which is use for the sliding panels anyway).
] I have worked out how to do it with the load function of jquery (which is use for the sliding panels anyway).I created to external php templates that pulled in data from a database test1 and test2. Origiinal I thought.
In the page with the sliding panels you need to put uniquely identified divs within each panel. eg <div id="panel1">
Within the head of the page (where the javascript is) you simply add a function to load them in:
<script type="text/javascript">
$(document).ready(function() {
$('#panel1').load('test1.php');
$('#panel2').load('test2.php');
});
</script>
and it works fine. The main (calling) page does not need to be a php page and of course other types of pages can be called.
The load features has a useful feature which allows just a particular div to be loaded.
Look at
api.jquery.com/load/
Hope this is helpful.
 Replied 06 Jul 2010  12:35:02 
   06 Jul 2010  12:35:02 Jim Elliott replied: 
  Another work around. In my database of pages I have a page Gallery and I wanted the system to load in the external page of gallery. In the area normally reserved for text I simply place in a div of the class gallery and then using the method above told it to pull in a page called gallery.php
This page reads images from a db and then makes thumbnails using the much lamented and ridiculously no longer supported ADDT.
All worked fine.
I then though "What if I want to use enlargeit to popup the photos?" So on the gallery page I put all the appropriate code to see what happened.
It worked. Although the call to the javascripts is on a pull in page everything works fine.
Useful indeed!
  This page reads images from a db and then makes thumbnails using the much lamented and ridiculously no longer supported ADDT.
All worked fine.
I then though "What if I want to use enlargeit to popup the photos?" So on the gallery page I put all the appropriate code to see what happened.
It worked. Although the call to the javascripts is on a pull in page everything works fine.
Useful indeed!
