[jQuery] Re: Select Tab Programatically

2008-04-08 Thread marr.adam
if you are doing page to page calls, then as far as I know the easier way to do it is with a hash or query string (blah.html#tab2 or blah.html?tabSelected=2) Not sure if jquery has a function to parse the url for parameters, but there are plenty of references online (search: javascript get query s

[jQuery] Re: Ajax? issue in IE 7

2008-04-08 Thread marr.adam
I don't know the ins and outs, and my company is still stuck on ie6, but when we do ajax calls on a tags, we remove the href attribute. There are different ways to achieve the same result w/out the href (this happens often to allow pages to degrade nicely for users with js turned off, replicate th

[jQuery] Re: help with toggling behavior

2008-04-08 Thread marr.adam
Well, to solve the problem of repetition, use bind, so...(this may not be verbatim) function doit(event) { $(event.data.var1).siblings('li.navSel').removeClass('navSel'); $(event.data.var2).slideFadeToggle('normal'); $(this).toggleClass('navSel'); $(event.data.var2).sibling

[jQuery] Re: slow and jerky slide on Firefox 2.0.0.13 (Ubuntu/ Core-2 : 1.8GHz)

2008-04-08 Thread marr.adam
Unless the transition is very bad, I don't think its your problem. Even using mootools effects I've found FF's performance with animation poor. Even surprisingly compared to IE, which tends to run the animations quite smooth. This may just be due to how FF handles the timer events, I'm not really

[jQuery] Re: Same code structure to affect two elements, but one doesn't work

2008-04-08 Thread marr.adam
I think css precedence has got you down. As I remember it, ID selectors override class selectors (since id is more specific than class). Try using border: 3px solid red !important; or maybe the change the css selector to div.maindiv-hover { ... } and see if this fixes your problems. Look up css

[jQuery] Re: Can you poll a database with jQuery or do I just use plain ajax?

2008-04-07 Thread marr.adam
As with any js, since it runs client-side, you cannot use it to query a Db, only to call something else that will, such as making a request to a PHP script or server-side java. PHP is the simplest way. You can either have the php return the markup to display or maybe have it return json object an

[jQuery] innerHTML from ajax req in IE

2008-03-24 Thread marr.adam
Using $load/get/ajax and innerHTML= or $().html for setting the content of the tab div tag works everywhere except IE6 (haven't tested IE7 as only ie6 is allowed on our boxes). The content works fine when inserted into the page with tiles before it is sent to the browser, but when the content page

[jQuery] innerHTML ($().html) in IE6

2008-03-24 Thread marr.adam
Doing tabs with ajax requests. The issue is that the formatting gets all screwed up in IE6 when its inserted into the DOM. This seems to happen with $.load, $.get, and even $.ajax and setting with getDocbyId and innerHTML = tabContent. The content is returned properly, but after the insert I get u