I'm not aware of any explicit bookmarklet support but if you need to
get jQuery onto the page then at least it has a nice light file size.
A few things to note:
IE limits the length of your bookmarklet to 250 characters or so.
To keep bookmarklets small it is common to have them simply load a
Here's a little plugin to measure the original width and height of an
image.
http://blog.softwareunity.com/2009/09/measure-raw-image-dimensions-using.html
It has to pass the measurements to a callback so you use it like this:
$(IMG).imgSize(function(size){
alert(size.width + x +
Are you able to use the keyup event instead or does it need to be
keydown?
(Inside the keyup event handler the option:selected item should be the
one you're after, instead of having to derive it.)
Failing that could you just find the next/previous option by using
selectedIndex +/-1 ?
Something
so the name=someName has to be repeated for each value.
How about $([name=someName]).filter([value=someValue],
[value=otherValue]) ?
Cheers,
George
Hi Kiusau,
The other 2 suggestions should help.
You may also like to try using jQuery's.each method. Something like:
var flowerColor = {rose: red, tulip: pink, daffodil: yellow};
$.each(flowerColor, function(flower,color){
this.append(Flower name and color: + flower + : + color +
.br /);
(This is really directed at the jQuery core team)
I notice that jQuery uses regexp statements like this one... (used in
the position() and offsetParent() methods for example)
.../^body|html$/i.test(offsetParent.tagName)
Might it be faster to use a simple object hash like this instead...?
Absolutely, it is very very limited. So this technique is only suited
to the type of regex's that I quoted, like the one used internally by
jquery to test for body or html tags only, or to test for t(able|d|h)
only. Particulalry when used inside a loop. For parsing a selector we
still need regex.
I'm using Dave Methvin's excellent splitter plugin to provide a 3-pane
splitter. (http://methvin.com/splitter)
Works a treat except that it does not respond to a window resize in
IE7. Other browsers are ok, even IE6!
I've experimented with the anchorToWindow and resizeToWidth options
but they
/
(Open in IE7 and resize the window. The bottom of the page does not
follow the window height as it does in IE6 and FF. They seem to open
the images ok.)
Cheers,
George
On Jan 19, 12:31 pm, George Adamson george.adam...@softwareunity.com
wrote:
I'm using Dave Methvin's excellent splitter plugin
... Or try this variation for the more jQuery obsessed...!
$.each( mystring.split(;), function(){
var values = this.split('/');
$( '#' + values[0] ).css({ top:+values[1],
left:+values[2] });
})
... Or if you like
I'm very surprised by his comments. We always rely on jQuery to get
grips with the monster that is ASP.Net+AJAX.Net, regardless of project
size.
jQuery's extraordiary convenience requires a slightly different
mindset from conventional .net languages (one that I miss on the
server side!) so
say you could enhance yours to pick dates instead (or as
well?!)
When you tackle the 24h layout you could offer the option of 2 rows of
12 to save horizontal space. some people will prefer it in some
circumstances.
Cheers,
George Adamson
)
*
* @name :aspid, :aspname
* @type jQuery object
*
* @cat jQuery/Custom selector
* @author George Adamson
*/
aspid : function(a,i,m){ var id=a.getAttribute(id);
return id
m[3] id.substr(id.length - m[3].length - 1) == _+m[3
and
generated dynamically. This tableGrouper code will eventually become a
plugin to work with the table sorter)
Many thanks,
George Adamson
Hi all,
If we use the $.param(myobject) method to serialise an object, how can
we deserialise that string back to an object?
Maybe that function exists somewhere and I'm having a mental block.
Please help!
In the absence of such a method I would do something like this:
jQuery.extend({
Ever more impressive. Well done you lot, you make us proud!
George
The jQuery moreSelectors plugin has been updated for jQuery v1.1.3.1.
For example:
DIV:color(red) to match DIVs with red text. Also matches #rrggbb and
rgb(r,g,b).
TD:colIndex(1) to match table cells in column 1 (allowing for colSpans
too).
SELECT:modified to match SELECTs that have been
I've just updated the jQuery moreSelectors plugin which includes an
:unchecked selector.
Might be what you're after.
See http://jquery.com/plugins/project/moreSelectors
George
Rob Desbois-2 wrote:
I think $(#myform input:checkbox).not(:checked) should do what you
want, but I've not
I thought perhaps it could be a method of $, such as $.dom(...)
Certainly a superb technique. Looking forward to it.
George
Josh Bush wrote:
It seems like a very striaghtforward way to create dom elements. I
like it. What would you make the method name? $$ instead of $?
On Jul
Daemach2's solustion would do it, and if your li elements are nested
inside other li elements, you may wish to restrict the parents() method to
match only the first li up the tree by using
$(this).parents('li:first').addClass('on'); instead, that way you won't set
addClass('on') for more than
There have been various musings on the possibility of offering if-else
methods in jQuery. I know from the archives and svn etc that there have been
some great ideas and developments too, but they seem to have fizzled out for
one reason or another. (for instance
21 matches
Mail list logo