- This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- The forum ‘JavaScript’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › JavaScript › jQuery navigation problem
Hey guys,
I´m really a jQuery noob and i´ve got a (for me) big problem with my navigation. Everytime i click on a sub-menu and wanna load content stuff the with php, the sub-menu will be closed. Any idea how i let it open? (by the way sorry for my english :D)
$(".proj").click(function() {
$("div.sub_proj").toggle("slow");
$("div.sub_cour").hide("slow");
$("div.sub_publi").hide("slow");
$("div.sub_stud").hide("slow");
$("div.sub_team").hide("slow");
});
This is how my navigation works ( I know it´s realy bad to make it this way, but as I said, I´m a real noob at jQuery ).
<a href="#"><h3 class="proj">Projects</h3></a>
<div class="sub_proj">
<p>
<a href="#">MPEG Query Format</a>
<br><br>
<a href="index.php?view=jpsearch">JPSearch</a>
<br><br>
<a href="index.php?view=theseus">THESEUS</a>
<br><br>
<a href="index.php?view=w3c">W3C Activities</a>
<br><br>
<a href ="index.php?view=mpeg7">MPEG-7 Multimedia Database</a>
</p>
</div>
and this is how it looks in my index.php
if you cant imagine what i mean please visit https://www.dimis.fim.uni-passau.de/iris/ and click on the navigation on the right side and then click on a sub-menu like projects. At publications it works fine because i fill the content with jquery and not with php.
Hi Robskiwarrior,
thanks for your annotation :) I´ll try to correct it.
Hey rob ^^
do you have an example for the $.post function? Would help me a lot :>