I am working on an animal database app that works entirely within a lightbox. I am using Particle Tree's lightbox gone wild for the lightbox.
I have the design and navigation all worked out, I just need to fill in the data for the animals' info page. I have a list of animals in a drop down menu, from which the user will click on an animal. Once the user clicks on this animal, it will take them to the information page for that animal (all within the lightbox).
Of course, I could just link every animal to a separate html page, and have 50+ animal pages on the server, but that is not very efficient. What I want to do is have one html page with divs in place that will fill up with the data on the xml file once it loads.
For example, if the user clicks on "foxes", the blank animal page would load and search the xml for the "foxes" data, and then populate the page with content.
Here is the link that would take you to the animal info page:
<a id="animal_link" href="birdExample.html" class="lbAction" rel="insert">Another Bird</a>
Since the animal list and the actual animal info page are on 2 separate html files, what code would I use to pass the animal that's been clicked on over to the other page so that it knows what to look for in the xml file?
(I should mention I am no expert in javascript or php, but I rather use javascript to solve this problem).