[jQuery] Re: help a newbie....

2007-08-24 Thread [EMAIL PROTECTED]
Micheal, I forgot one thing. Should also be nice to be able to set dynamically from side server language the popup var like height ands so on. Any suggestion of where I can store these variables on the fly and to complete the script on click so that 2 popup with different needs on teh same page c

[jQuery] Re: help a newbie....

2007-08-24 Thread [EMAIL PROTECTED]
Hi Micheal, you are right I will change the variable name...I still make some confusion yes a.pack van have more match. I test and is working nice. You think is better to make some more modification? Thanks Andrea On Aug 24, 3:50 pm, "Michael Geary" <[EMAIL PROTECTED]> wrote: > And as a s

[jQuery] Re: help a newbie....

2007-08-24 Thread Michael Geary
And as a stylistic note, I recommend changing the variable name from $href to href. The code will work the same either way, but the $ prefix on a variable name is a common convention to indicate that the variable contains a jQuery ($) object - which this one doesn't. Also, Andrea, is there only o

[jQuery] Re: help a newbie....

2007-08-24 Thread [EMAIL PROTECTED]
Thank you John, I still am not completely used to javascript syntax.but I really like JQ ...I will get it. Thanks Andrea On Aug 24, 3:43 pm, "John Resig" <[EMAIL PROTECTED]> wrote: > JavaScript can't find variables inside of a "...", you can change your code > to: > > $(document).ready(f

[jQuery] Re: help a newbie....

2007-08-24 Thread John Resig
JavaScript can't find variables inside of a "...", you can change your code to: $(document).ready(function() { $('a.pack').click(function(){ var $href = $(this).attr('href'); window.open($href,"popup","width=630,height=700,status=no,resizable=yes,scrollbars=yes,location=no