[jQuery] binding "text" event

2009-08-04 Thread park
Just noticed that a "text" event can be binded to an input: $(’:text’).bind(’text’, function () {console.log($(this).val()}); But it is not documented here. http://docs.jquery.com/Events/bind. Google fails to help either. This event turns out extremely useful when handling Chinese input, but do

[jQuery] $.get() filtering DOM in incoming html?

2009-05-04 Thread park
Hi all, $.load() filters incoming html with css selectors following url. Is there a way of doing the same thing with $.get()? Many thanks.

[jQuery] Re: finding mouse position within a div with a scrollbar

2009-04-24 Thread Charlie Park
Marv - I could be mistaken here, but I think your solution's really good so long as the entire sub-element (the DIV or image or whatever) is visible. But if there's a scrollbar on that element, I think your code will only tell you where you clicked in terms of the position on the page (relative t

[jQuery] Re: finding mouse position within a div with a scrollbar

2009-04-22 Thread Charlie Park
We ended up using scrollTop to determine the amount of the div that was obscured. I'm new to jQuery (and javascript in general), so my code could probably stand to be refactored a bit. But here's the solution we came up with. The relevant structure of the page is: ... (this runs horizontally,

[jQuery] finding mouse position within a div with a scrollbar

2009-04-22 Thread Charlie Park
I have a div with an overflow, so it has a scrollbar. The "what are my mouse's coordinates" tutorials (like this one: http://docs.jquery.com/Tutorials:Mouse_Position) only yield A) the coordinates of the mouse on the page (using "e.pageX" and "e.pageY", or B) the absolute coordinates of the mou

[jQuery] make certain modifications after clone()

2008-08-18 Thread park
Hi, Is possible to make a few modifications to wrapped elements before cloning them to a new copy? Many thanks!

[jQuery] Strange syntax error loading jquery.js

2008-02-21 Thread Jack Park
My browser (FF 2.0.0.12) appears to be trying to interpret some of the HTML as part of the javascript file. This bug appears frequently (but not every time) a page is loaded. Details below. I see it with jquery 1.2.1 and 1.2.3 full and minimized. I see it also in IE. I see it even when I comment o

[jQuery] About Browser Width Detection

2007-08-04 Thread Kelvin Park
I am trying to allow a right side content area on my website to disappear when browser width shrinks down to 800 pixels. Do you know how to detect browser width with jquery in real time?