Shelane, check my latest update: www.svplace.com/teste it works fine on FF, but not on IE...... help me pleeeaaseee. Paulo
On 5/6/07, Paulo Gabriel Antunes <[EMAIL PROTECTED]> wrote:
weird... for me it doesn't work on IE. gotta find a hack. do u know any? On 5/5/07, Shelane <[EMAIL PROTECTED] > wrote: > > > Hmmm. It didn't seem to work for me in FF. The first item loaded, but > click "A história" loaded it on its own (not within the div). > > Declare the second function at the top of your script like so: > > bindContentLinks = function(){ > //bind click function to a tags within object that has class nav > $('a','#total').click(function(){ > $(this).blur(); > $('div','#total').removeClass().addClass("troca");//remove > all > classes for divs within div that has class nav > var mya = $(this).parent();//find the parent div of > "this" > > $(mya).removeClass("troca").addClass("nav_one_selected");//remove > all classes from the parent div and add the class nav_one_selected > var linkval = $(this).attr("href");//store the href > value of the > anchor tag > $('#total').load(linkval);//replace the contents of the > div > id="page" with the AJAX response of the linked page > return false;//since the data is being loaded via AJAX, > we don't > want the link to be followed > }); > }; > > The modify this line on your first function for the menus: > $('#total').load(linkval, function(){ > // when new information is loaded, the links within the page > will > need to be binded > bindContentLinks(); > }); >