hiya,
i am working on a current project which i could do with a hand with ?
i have a products page with menus which expand and close on the right using jquery also when clicking on a submenu it executes a jquery script which changes the content of the div on the right to reflect the menu clicked on.
now with 12 products each with their own little blurb of text and pictures,
having them all listed (styled to be hidden untill called by my jquery script), i was worried that the page size was going to start to become a little to large,
so i starting thinking about external files with the content of the div and how i could get the content inside the div using php.
basically this is what i have come up with:
at the top of the page i have:
[code=php]<?php
$contentFile1 = “Products/Cat5.php”;
$content =file(“$contentFile1”);
?>
then i have down the page the div which is hidden untill called by the jquery and inside of the div i have this:
[code=php] <div style=”display: none;” class = “type” id = “net-1-content”>
<?php Echo $content[0]; ?>
</div>
now i did have it display something which was in the Cat5.php,
but as soon as i started to try to make it show more of that file it didnt like it and it now displays nothing…..
can anyone please tell me if i am thinking about this correctly, and the last thing, i have a feeling that when the page loads its going to load all the div contents into the file array which is going to increase the page size anyway so this might be a pointless exercise
thanks for any help at all
Vade