I figured out how to do it but do not laugh at my long drawn out process. not a guru but it works for me. in the jquery.treeview.js file I have to replace var current = this.find("a").filter(function() { return this.href.toLowerCase() == location.href.toLowerCase(); }); with var locend = location.href.search(/&/);//character you are searching for if (locend == -1){ var locsub = location.href; //if not found use the full string } else { var locsub = location.href.substring(0,locend); //if found just use what is before that character } var current = this.find("a").filter(function() { return this.href.toLowerCase() == locsub.toLowerCase(); });
this will take a string from the address bar like http://www.somesite.com/categories.php?cat_id=7&page=2 and replace it with http://www.somesite.com/categories.php?cat_id=7 hope this helps anyone else looking through the board and thanks eveyone for all your help! On Apr 21, 11:49 am, budduke <b...@budduke.com> wrote: > Not exactly, but you led me down the right path to the answer. I think > I can figure it out from here. > If I do find a solution then I will post it. I saw someone else asked > a simular question a couple months back without any replies so I am > glad that someone replied with something I could work off of. > Thanks! > > On Apr 20, 10:06 pm, James <james.gp....@gmail.com> wrote: > > > > >http://snipplr.com/view/623/get-querystring-variable/ > > > alert( getQueryVariable('location') ); // alerts "here" > > alert( getQueryVariable('page') ); // alerts "5" > > > Is this what you want? > > > On Apr 20, 2:26 pm, budduke <b...@budduke.com> wrote: > > > > I looked through the board but can not find any info for what I am > > > needing, > > > for thepersistant:location highlight, I need it to not look at the > > > entire url string, just part of it. > > > using php my links > > > havehttp://www.myweb.com/good_link.php?location=here&page=5 > > > the string should only be looking for everything before the & symbol. > > > I can not figure out how to do this. > > > I know it is all happening in the case area of the script but can not > > > figure out how to filter out everything from the & to the end of the > > > string to compare with the url. > > > > thanks for any help you can send my way, > > > Buddy Duke- Hide quoted text - > > > - Show quoted text -- Hide quoted text - > > - Show quoted text -