Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
10-30-2008, 01:15 PM #1
- Join Date
- Apr 2008
- Thanked 0 Times in 0 Posts
php / jquery / page structure question
I am writing a product.php page for a site. We have roughly 100 products, and the page should be able to display a description and an image for each picture.
What I want is a page that can take in a php query string (e.g. product.php?product=11 ) and display the relevant product (with the heirarchihcal menu opened on the correct item). I gather that I can do this in jquery, by showing/hiding the relevant divs. The problem with this is that I have to load the text etc from all 100 products when the page is loaded.
Is it possible to structure it like so: I have a named div for each product, which contains one include statement. The include statement would be switched off by jquery and when the user selected the menu item (or the product=11 query string was entered) then the content for that product would be loaded into the page. Google spider, on the other hand, would see the entire page with all the products included.