Yeah, and this will probably end up being a modal at some point. right
now it's just for me, so I'm not worried about pretty (though modals are
more than pretty, I know.) :o)
Cheers,
Chris
Alex Cook wrote:
Ahhhhhs gotcha... I had spaced on that, I stay away from window.open
like the plague... modal windows for me all the way J
------------------------------------------------------------------------
*From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
*On Behalf Of *Aaron Heimlich
*Sent:* Friday, December 15, 2006 10:05 AM
*To:* jQuery Discussion.
*Subject:* Re: [jQuery] I need syntax help, please.
On 12/15/06, *Alex Cook* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Second, you've constructed the click() function wrong... you don't
need the var handle = bit... function () { window.open(this.href,
'some_target', 'width=550, height=550'); } is all you need.
Actually, IIRC window.open returns a reference to the new window that
was just created, allowing it to be controlled by the developer. So,
there's nothing wrong with his click() function.
FYI -- Also, IIRC, window.open will return null (or false, dunno
which) if the window was somehow prevented from opening; very useful
for detecting the presence of popup blockers.
--
Aaron Heimlich
Web Developer
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
http://aheimlich.freepgs.com
------------------------------------------------------------------------
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/