[jQuery] Re: Get the tagname from an event ?
http://docs.jquery.com/Events/jQuery.Event#event.target On Wed, Jul 15, 2009 at 3:07 AM, Liam Byrne l...@onsight.ie wrote: Hi folks I have a function that operates on left and right arrow keypress, but I want to temporarily return true if they're pressed while an input has focus. One way I thought of was to check the tagname of the event ? The other way is to check the length of the input:focus array, but I reckon that'd be slower ? So having a function $(document).keydown(function(e) { // function code here } Is it possible to : a) filter the document so that input fields are avoided b) return true based on a check on e's tag name (help required) c) other Help greatly appreciated! TIA, L
[jQuery] Re: [ANNOUNCE] markItUp! 1.0 (former jTagEditor) is finally released!
It looks nice. I'll have to try it out. On Sun, Mar 23, 2008 at 11:48 AM, Jay Salvat [EMAIL PROTECTED] wrote: Hi all! I'm proud to announce you the official release of markItUp! (former jTagEditor) and markItUp! website. I hope everything will be ok and i forgot nothing important. Website: http://markitup.jaysalvat.com/ Examples: http://markitup.jaysalvat.com/examples/ Feedbacks are welcomed! Jay S.
[jQuery] Re: http://jquery.com/api/ page broken
It works for me on Firefox 2.0.0.11 and Linux. On Jan 26, 2008 3:49 PM, Yansky [EMAIL PROTECTED] wrote: Hmm weird. I tried it in Opera on my machine and Firefox and IE7 on another machine and it didn't work with any of them.
[jQuery] Re: JSS - New Plug-in
Impressive work! Would this by chance make position:fixed for IE6 just work? That alone would be a god-send for me right now.
[jQuery] Re: calling all jQuery Safari wizards!
You might want to get on irc and ask on #webkit on irc.freenode.net . On 10/4/07, bytte [EMAIL PROTECTED] wrote: It works ok in all tested browsers (ff mac/win, ie, opera mac/win), yet not on safari (mac+win). Any idea why it fails in Safari? The Safari Javascript console gives me no errors whatsoever. (sorry for the double post - topic was here already a week ago, but i'm desperate)
[jQuery] Re: javascript paint like drawing tool
http://caimansys.com/painter/ ^-- This isn't build on jQuery, but it might give you something to start with. On 9/30/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I'm not able to find a good (preferably open source) paint-like drawing tool thought maybe there is one built on jquery. Simple as the original MS paint. Does anyone have an clue? Thanks.
[jQuery] Re: What causes the speed bottleneck in Javascript?
http://ejohn.org/blog/javascript-engine-speeds/
[jQuery] Re: an Undo plugin, or something as such. :-)
That's pretty cool. Very impressive work, and your implementation is clean, too. On 9/24/07, Michael Geary [EMAIL PROTECTED] wrote: OK, here is the client-side undo plugin demo that I mentioned earlier: http://mg.to/znc/colortuner.html
[jQuery] Re: an Undo plugin, or something as such. :-)
In response to the original poster... Even if you just want a purely client-side undo mechanism (that delayed sending to the server until you're ready), you'd need to maintain some kind of event queue. That kind of thing tends to be very app-specific, and it's hard thing to generalize w/o defining a lot of policy about what constitutes an event. On 9/24/07, Jörn Zaefferer [EMAIL PROTECTED] wrote: Steve Finkelstein schrieb: Hi all, I was curious if there is anyone currently working on an 'Undo' type plugin for the jQuery platform. Essentially, similar functionality to what gmail offers is desired by many. If not in the works, I wouldn't mind giving it a shot myself. Implementing an undo functionality requires quite some work on the serverside, as it is always some persistent state that is undone. Where do you think could a jQuery plugin help to implement that? -- Jörn
[jQuery] Re: Gallery Site: JustFutonCovers.com
That's a really nice site. On 9/8/07, Ty [EMAIL PROTECTED] wrote: Very interesting shopping cart concept brimming with Jquery features judging by the head section calls. Elegant ecommerce too bad they don't have any with patterns, just plain colors. Check it out: http://www.justfutoncovers.com/ Not meaning to spam the forum, it's not even my site.
[jQuery] Re: Some jQuery Questions
2) Best way to create a toJSON() string or object. anyObject.toSource()
[jQuery] Re: divert click to an anchor
The click() function doesn't actually simulate a click. It's true purpose is to setup on onclick handler. On 8/21/07, John Liu [EMAIL PROTECTED] wrote: htmlhead script language=javascript src=jquery-1.1.3.1.js/script script language=javascript $(document).ready(function(){ $(div.test).click(function(){ alert('div.test clicked'); $(a).click(); }); }); /script/headbody a href=http://google.com; google /a div class='test'click/div /body/html I have a situation where if anyone clicks anywhere within the div, I want the anchor to be fired - in this case, navigate to google.com. Why doesn't the above code work? thanks in advance. jliu
[jQuery] Re: divert click to an anchor
On 8/21/07, John Beppu [EMAIL PROTECTED] wrote: The click() function doesn't actually simulate a click. It's true purpose is to setup on onclick handler. s/It's/Its/;# argh!
[jQuery] Re: divert click to an anchor
$('div.test').click(function(event){ location.href = $('a').attr('href') }); On 8/21/07, John Liu [EMAIL PROTECTED] wrote: htmlhead script language=javascript src=jquery-1.1.3.1.js/script script language=javascript $(document).ready(function(){ $(div.test).click(function(){ alert('div.test clicked'); $(a).click(); }); }); /script/headbody a href=http://google.com; google /a div class='test'click/div /body/html I have a situation where if anyone clicks anywhere within the div, I want the anchor to be fired - in this case, navigate to google.com. Why doesn't the above code work? thanks in advance. jliu
[jQuery] Re: [ot] String.split in Opera.
Isn't Javascript supposed to support Perl-compatible regular expressions? Perl says the answer is: 5 perl -e 'print scalar split(/\b/, hello there Opera)' On 6/10/07, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote: WWIED? What would IE do? On 6/10/07, Matt Stith [EMAIL PROTECTED] wrote: o.O damn, like you said, i didnt know there was that big of a difference! On 6/10/07, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote: safari says 3 for javascript:alert(hello there Opera.split(/(\s+)/).length) On 6/10/07, Matt Stith [EMAIL PROTECTED] wrote: why not just use /(\s+)/ in firefox too then? It gives me the correct number of 5. On 6/10/07, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote: javascript:alert(hello there Opera.split(/\b/).length) Firefox says 5 , safari says 6, Opera says 15! it really got me confused while writing some jQuery code! now I use $.browser.opera ? /(\s+)/ : /\b/ ; instead. Ouch, I didn't realize there was that much of a difference! -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ