[jQuery] Re: does JQuery have browser bookmarklet development support??

2009-12-02 Thread George Adamson
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

[jQuery] ANNOUNCE: jQuery plugin to measure image dimensions

2009-09-26 Thread George Adamson
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 +

[jQuery] Re: jQuery next() to find selectoption

2009-04-28 Thread George Adamson
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

[jQuery] Re: Is it possible to select on multiple attribute values?

2009-04-26 Thread George Adamson
so the name=someName has to be repeated for each value. How about $([name=someName]).filter([value=someValue], [value=otherValue]) ? Cheers, George

[jQuery] Re: Assigning a List of Key-Value Pairs to a DIV Tag

2009-04-22 Thread George Adamson
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 /);

[jQuery] Performance suggestion: Use object hash instead of regexp

2009-02-03 Thread George Adamson
(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...?

[jQuery] Re: Performance suggestion: Use object hash instead of regexp

2009-02-03 Thread George Adamson
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.

[jQuery] Splitter plugin not responding to window resize in IE7

2009-01-19 Thread George Adamson
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

[jQuery] Re: Splitter plugin not responding to window resize in IE7

2009-01-19 Thread George Adamson
/ (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

[jQuery] Re: How to split this?

2008-12-26 Thread George Adamson
... 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

[jQuery] Re: asp.net and jquery - reactions to this letter

2008-11-19 Thread George Adamson
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

[jQuery] Re: ANNOUNCE: ui.timepickr.js plugin

2008-10-09 Thread George Adamson
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

[jQuery] Re: Jquery and ASP.NET

2008-10-06 Thread 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

[jQuery] Tablesorter - How to detect which header cell was clicked? (in sortStart/sortEnd callbacks)

2008-09-25 Thread George Adamson
and generated dynamically. This tableGrouper code will eventually become a plugin to work with the table sorter) Many thanks, George Adamson

[jQuery] What is the opposite of the jQuery.param() method? (to deserialise an object)

2008-07-01 Thread 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({

[jQuery] Re: jQuery v1.2.6 is now Officially Released and Release Notes are Available

2008-06-05 Thread George Adamson
Ever more impressive. Well done you lot, you make us proud! George

[jQuery] UPDATED: jQuery moreSelectors plugin adds :color() :colIndex() :hover and more

2007-07-24 Thread George Adamson
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

[jQuery] Re: select all unchecked checkboxes

2007-07-24 Thread George Adamson
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

[jQuery] Re: Interested in porting another DOM creation plugin?

2007-07-13 Thread George Adamson
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

[jQuery] Re: Finding a parent list item.

2007-05-25 Thread George Adamson
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

[jQuery] What happened to jQuery if-else? (ifelse, jif jelse, $if $else)

2007-05-15 Thread George Adamson
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