[jQuery] highlight navbar

2009-03-26 Thread new to jquery
I'm trying to make a navigation bar with highlighted tabs. It works when I specifically click the tab, but if I come to the page from an outside link, I can't get the tab to highlight. How could I say something like: $("#navbar a").each(function(){ if(this.href *l

[jQuery] Can jQuery load from DOM?

2008-10-06 Thread jQuery(new).to(me)
Hello, I am trying to load jQuery from Javascript like the following code. == code == if (typeof jQuery == 'undefined' || !jQuery) { var s = document.createElement('script'); s.setAttribute('type','text/javascript'); s.set

[jQuery] [Help]: A function that switches input box with select, and vice versa

2008-04-17 Thread Proud to be Orient
Hello everyone. I'm trying to manipulate a country/state selector whereby I have a mapped array of country=> states in the form, and when a change() occurs in the country selector, that if state array is empty, an will be shown, or a will be shown.. So my logic is whenever an onchang

[jQuery] Re: How can I add HTML tag from jQuery?

2008-01-04 Thread jQuery(new).to(me)
= $(this).text(); > $(this).html("" + t + ""); > > }); > > -- Josh > > - Original Message - > From: "jQuery(new).to(me)" <[EMAIL PROTECTED]> > To: "jQuery (English)" > Sent: Thursday, January 03, 2008 3:43 PM > Subj

[jQuery] How can I add HTML tag from jQuery?

2008-01-03 Thread jQuery(new).to(me)
Hi, Please give me an idea how to do this: I want to add to a table cell. For example, If I have the following table; Data1Value 1 Data2Value 2 Now I want to add anchor to the "data" class, so that result would look like this: Data1Value 1 Data2Value 2 Now, with jQuery, all I

[jQuery] Re: calling all jQuery Safari wizards!

2007-10-07 Thread To
except Safari (no image shown). Without the CSS-line it's working in Safari but flickering in all other browsers. Am I doing something wrong, or is jQuery not fully supporting Safari at this moment? The problem is that the website *really should* work in Safari, FF and IE (or at least showing the picture). Once again, thanks in advance for a quick reply (site should be published today). To

[jQuery] Re: calling all jQuery Safari wizards!

2007-10-06 Thread To
I've a simular problem using jQuery in Safari. I'm using the following code: $("#photo").css("display","none"); // prevent to fade in the image before it's fully loadad $(window).load(function() { $("#photo").fadeIn("slow"); });

[jQuery] Re: Preloading an image before further handling

2007-09-17 Thread To
It works with Theodore's code... Sweet! Thanks, To On Sep 16, 5:10 pm, "Theodore Ni" <[EMAIL PROTECTED]> wrote: > Instead of using $(document).ready( ... ), you can try to use > $(window).load( ... ): > > $(window).load(function() { > $("#photo&quo

[jQuery] Preloading an image before further handling

2007-09-16 Thread To
Hello all, I'm looking for a while to preload an image before further handling. In example, I want my visitors to enter a HTML-page with a (quiet big) image and give this image a fade in. This fade in is easy to show, but when I test it online, my image is loading to slow what makes tha