dynamic changing the contend
Hello,
i've got a simple but for me insoluble problem. i've have to create an unsorted list <ul> where the li's are cliable und hoverable or the links, when its not w3c confirm ;-)
problem: when i click on a link an php-scipt should be called and some contend should be changed. but witch contend, is managed by the script.
example:
<ul>
<li class="button" id="c123">
<a href="/script.php?button=c123">Category 1</a>
</li>
<li class="button" id="c124">
<a href="/script.php?button=c124">Category 2</a>
</li>
<li class="button" id="c125">
<a href="/script.php?button=c125">Category 3</a>
</li>
</ul>
<ul>
<li class="button" id="p123">
<a href="/script.php?button=p123">Product 1</a>
</li>
<li class="button" id="p124">
<a href="/script.php?button=p124">Product 2</a>
</li>
<li class="button" id="p125">
<a href="/script.php?button=p125">Product 3</a>
</li>
</ul>
If you push "Category 1" there are other products than "Category 2". If you push "Category 3" there are new categories going under "Category 3".
So it sounds like Ajax, but i didn't found the php-functions to manipulate the site-contend ids or classes.
And i realy can't load all the possibilities to the clients browser when the peage loads the first time.
Has someone an easy onclick()-free idea?
Thanks for help
yves