[jQuery] (no subject)

2007-01-20 Thread Tuan Tran
lightbox doesn't work with menu script. in the attachment is the file. can anyone help perhaps. it's the simple menu with hiding features. i watched the video tutorial and did it. but i added lightbox in each submenu link. if anyone can help that'd be great :)-tuan __

Re: [jQuery] (no subject)

2006-12-19 Thread Dotan Dimet
You probably shouldn't use document.write() for anything; Dynamic HTML and the DOM have pretty much made is obsolete. document.write() will replace the whole document if you run it at any time except when the document is being loaded. So you can use it inline: var today=new Date();

Re: [jQuery] (no subject)

2006-12-19 Thread Michael Geary
2:44 AM To: discuss@jquery.com Subject: [jQuery] (no subject) Ok i'm a newbie in jquery and i'm trying to write function that will replace all element's content with current year. My function looks like this: $(function(){ $(".y").ready(function() { var today = new Dat

Re: [jQuery] (no subject)

2006-12-19 Thread Christof Donat
Hi > $(function(){ > $(".y").ready(function() { > var today = new Date(); > var year = today.getFullYear(); > document.write(year); > }); > }); $(function() { $('.y').html((new Date()).getFullYear()); }); Christof ___ jQuery mailing li

[jQuery] (no subject)

2006-12-19 Thread Kristaps Ancāns
Ok i'm a newbie in jquery and i'm trying to write function that will replace all element's content with current year. My function looks like this: $(function(){ $(".y").ready(function() { var today = new Date(); var year = today.getFullYear(); document.write(year); }); }); but when i run it

Re: [jQuery] (no subject)

2006-11-06 Thread Blair McKenzie
Inside an event 'this' refers to the element the event was attached to. This is by design. If you want to access the externaly scoped 'this' do something like: var self=this;$('#text-field).click( function() { alert(self.name); } );Blair On 11/7/06, Steve Reid <[EMAIL PROTECTED]> wrote: why doesn't

[jQuery] (no subject)

2006-11-06 Thread Steve Reid
why doesn't this work:   $('#text-field').val(this.name);   when this does:   $('#text-field).click( function() { alert(this.name); } );   ? did i find a bug?also: what does 'this' refer to? the jquery object, right? ___ jQuery mailing list discuss@jquery

Re: [jQuery] (no subject) jquery iterator performance

2006-10-16 Thread Jon Hancock
oops, my apologies for not providing a subject to this post. I'm usually a good maillist person ;-). On Oct 16, 2006, at 3:19 PM, ke han wrote: > Hello, > I'm new to jQuery...thanks for a great product!! > One thing I like to understand when choosing a js library is various > performance asp

Re: [jQuery] (no subject)

2006-10-16 Thread ke han
oops, my apologies for not providing a subject to this post. I'm usually a good maillist person ;-). ke han On Oct 16, 2006, at 3:19 PM, ke han wrote: > Hello, > I'm new to jQuery...thanks for a great product!! > One thing I like to understand when choosing a js library is various > performa

[jQuery] (no subject)

2006-10-16 Thread ke han
Hello, I'm new to jQuery...thanks for a great product!! One thing I like to understand when choosing a js library is various performance aspects. Here is a good article regarding prototype performance: http://www.cybergrain.com/archives/2005/12/ajax_perf_the_a.html The only solid performance pro