[jQuery] Re: Notification when content was updated via AJAX

2008-12-01 Thread Sam Collett
The Live Query plugin may help in this circumstance: http://plugins.jquery.com/project/livequery --Sam On Dec 1, 12:43 pm, Raphael [EMAIL PROTECTED] wrote: I'm having a little problem: There are two independent modules (I'm working in a drupal environment). Well, one module polls a table

[jQuery] Re: show many news in one screen instead of one with Newsticker

2008-10-10 Thread Sam Collett
) between iterations. Default 4 seconds (4000ms)  * @author   Sam Collett (http://www.texotela.co.uk)  * @example  $(#news).newsticker(); // or $ (#news).newsTicker(5000);  *  */ $.fn.newsTicker = $.fn.newsticker = function(delay) {         delay = delay || 4000;         initTicker = function

[jQuery] Re: show many news in one screen instead of one with Newsticker

2008-10-10 Thread Sam Collett
) between iterations. Default 4 seconds (4000ms)  * @author   Sam Collett (http://www.texotela.co.uk)  * @example  $(#news).newsticker(); // or $ (#news).newsTicker(5000);  *  */ $.fn.newsTicker = $.fn.newsticker = function(delay) {         delay = delay || 4000;         initTicker = function

[jQuery] Re: Plugin that offers smart tag-like functionality?

2008-09-26 Thread Sam Collett
Thought someone might have done something like this. HTML would be something like this: div id=smarttag div id=smarttagicon img src=smarttagicon.gif width=16 height=16 / /div div id=smarttagcontent

[jQuery] Re: New jQuery Website...

2008-09-09 Thread Sam Collett
As much as we don't like it, sites still have to be designed to cater for IE 6+ We are still on IE 6 at work, because some of the systems we use (not ones I have worked on of course!) only seem to work in IE 6. You would have thought when you pay for a system, it is updated as new browsers come

[jQuery] Store JSON object in cookie

2008-09-05 Thread Sam Collett
If you try and store and retrieve a JSON object in a cookie using the cookie plugin (http://plugins.jquery.com/project/cookie), you get an unexpected result. For instance, save into cookie: $.cookie(mydata, {foo:bar,baz:1}); Retrieve value: var mydata = $.cookie(mydata); But that returns

[jQuery] jQuery.post returning binary content

2008-07-17 Thread Sam Collett
I current add a form to the page, which is then submitted and returns binary content (e.g. a PDF or Word/RTF Document) that causes a prompt for them to open/download the file: var form = $(document.createElement(form)).attr( { method: post, action:

[jQuery] Re: My first jQuery plugin

2008-07-17 Thread Sam Collett
How about: $(#myelement).parents(table:eq(0)) Does that do what you want? Example: http://demos.texotela.co.uk/parents.html --Sam On Jul 17, 7:51 am, ProggerPete [EMAIL PROTECTED] wrote: Hi Andy,   parents doesn't do quite what I want.  I want a method I can use in event delegation

[jQuery] Re: Declaring Rules in ASP.Net

2008-07-17 Thread Sam Collett
All ASP.NET controls have a ClientID, which matches the ID generated in the HTML, so you should be able to replace: % = namePostcode % with %= namePostcode.Replace(:,\:) % and $([EMAIL PROTECTED] + %=chkLinkAccount.ClientID % + ]) with $(#%=chkLinkAccount.ClientID %) --Sam On Jul 17, 7:46 

[jQuery] Re: YouLove.us crazy cool.

2008-06-16 Thread Sam Collett
Lags a bit with me as well, site looks quite good though. It is actually smoother without JavaScript enabled. It illustrates that when developing sites/applications it is a good idea to test with a slower PC (it is likely a lot of developers have above average specification computers). -Sam On

[jQuery] Re: Documentation for Version 1.2 (Download)

2008-06-06 Thread Sam Collett
There is a special page for converting WikiText to XML: http://docs.jquery.com/Special:Wiki2XML If the Wiki has built in features for converting to XML, perhaps it could be leveraged somehow? As DocBook is one of the output formats, there are more options for creating documentation. If

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

2008-06-04 Thread Sam Collett
Looks like another good release, yet more performance improvements and a few useful new features! Regarding speed testing, maybe it is worth mentioning the PC specification of the machine that performs these tests? For example, mine (Core Duo 1.6Ghz) .extend() 1.2.3 - 63 1.2.6 - 46 .map()

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

2008-06-04 Thread Sam Collett
I suppose a few % points off isn't that much of a difference and in some cases were even better. But I expect mine isn't too far off the test machine. Think I got my maths the wrong way round: ((1.2.3 time - 1.2.6 time) / 1.2.3 time) * 100 e.g. for .extend(): ((63 - 46) / 63) * 100 (17 / 63) *

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

2008-06-04 Thread Sam Collett
Mainly CSS selector tests, but perhaps also methods that may be common among libraries (like map, extend), but that may be more difficult. There is this one, but it uses old libraries (not just jQuery): http://dev.jquery.com/~john/slick/ -Sam On Jun 4, 3:52 pm, John Resig [EMAIL PROTECTED]

[jQuery] Re: jquery.blockUI: Any way to preload images for the blockUI dialog?

2008-04-07 Thread Sam Collett
You can use this preload plugin and run it as soon as possible: jQuery.preloadImages = function() { for(var i = 0; iarguments.length; i++) { jQuery(img).attr(src, arguments[i]); } } $.preloadImages(over.png, out.gif); $( function() {

[jQuery] Re: Return the checked items from checkboxes plugin

2008-03-03 Thread Sam Collett
On Mar 3, 3:51 pm, owen [EMAIL PROTECTED] wrote: I wrote: I'm using thecheckboxesplugin (http://www.texotela.co.uk/code/jquery/checkboxes/) and I'd like to pass the id of each checkbox that gets checked to a function. I see that the plugin has an option to return the checked items:

[jQuery] Re: BBC Site - jQuery

2008-03-03 Thread Sam Collett
The beta test has been up for a while and looks like it uses Interface (http://interface.eyecon.ro/) for the interactivity. Not jQuery UI unfortunately (Interface is more established though and has probably had more testing). There is still some legacy code (for example they use Simon Willison's

[jQuery] Re: What tool is used to minify the official jQuery distribution?

2008-02-08 Thread Sam Collett
JSMin is the minifier that jQuery uses (the port to JavaScript by Franck Marcia). In SVN: http://dev.jquery.com/browser/trunk/jquery/build/js/jsmin.js On Feb 8, 11:17 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Collin, Thanks for the link, PHP Speedy looks interesting. I could

[jQuery] Re: new jQuery user needs help

2008-01-24 Thread Sam Collett
You only need newsticker.pack.js in you head and have to add some code to make it load on statup, e.g. in head script type=text/javascript src=jquery-1.2.2.js/script script type=text/javascript src=jquery.newsticker.pack.js/ script script type=text/javascript $( function() {

[jQuery] Re: TexoTela select box manipulation modification

2008-01-17 Thread Sam Collett
) * * @name moveOptions * @author Sam Collett (http://www.texotela.co.uk) * @type jQuery * @paramString to Element to move to * @paramString which (optional) Specifies which options should be copied - 'all' or 'selected'. Default is 'selected' * @example $(#myselect

[jQuery] Re: TexoTela select box manipulation modification

2008-01-17 Thread Sam Collett
[EMAIL PROTECTED] wrote: Thank you very much. That worked. It would be great if you had the time to tell me what was wrong with my original code because JS is something that i am not so familiar with. On Jan 17, 7:25 am, Sam Collett [EMAIL PROTECTED] wrote: This should work

[jQuery] Re: add changing URL string to address for AJAX a la Gmail 2

2008-01-08 Thread Sam Collett
You may find the history plugin to be of use (not sure if there is a newer version as that page hasn't been updated for a while): http://stilbuero.de/jquery/history/index.html On Jan 8, 6:19 am, Scott Hulbert [EMAIL PROTECTED] wrote: Hi everyone, I'm working on a simple project and I'm going

[jQuery] Re: Cross Browser Issues - Simple use of JQuery

2007-11-13 Thread Sam Collett
On Nov 12, 4:31 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: To nest lists properly, I believe you want to put the ul you are toggling inside the li you are clicking Also, only li can be nested in ul or ol, so it would be invalid HTML (although browsers forgive that).

[jQuery] Re: JSS - New Plug-in

2007-10-08 Thread Sam Collett
I noticed that you have added String.prototype.trim. jQuery actually has this already, e.g. jQuery.trim( foo ); An easy was to get better CSS support in browsers that are not up to it. Maybe in a future version, browsers that are capable will just be ignored? Also, maybe best to wrap it in a

[jQuery] Re: the jquery logo

2007-10-04 Thread Sam Collett
jQuery Button Contest Winners: http://jquery.com/blog/2006/11/07/jquery-button-contest-winners/ Also, the post announcing the competition has logos in the comments. jQuery Button Contest: http://jquery.com/blog/2006/10/26/jquery-button-contest-many-prizes/ On 4 Oct, 07:38, Tane Piper [EMAIL

[jQuery] Re: [Site Submission]: nbc.com

2007-10-04 Thread Sam Collett
It's good that they are using it quite a bit. There are some site that use it, but only $(document).ready to call a function that manipulates the DOM the old fashioned way. On 4 Oct, 08:23, John Resig [EMAIL PROTECTED] wrote: Wow! Very awesome :-) It looks like they're getting a pretty good

[jQuery] Re: Catch a click event before the DOM is loaded

2007-10-01 Thread Sam Collett
Wouldn't it be easier just to hide the button via CSS and then show it when the document is ready? Or disable the button (via html) then enable it again via script? On Oct 1, 12:38 pm, Remy Sharp [EMAIL PROTECTED] wrote: I've recently been working on a project where the page is complex enough

[jQuery] Re: Did I get *all* of the XPath plugin?

2007-09-28 Thread Sam Collett
Can it also be changed to take advantage of some browsers XPath parsing abilities (that is how I thought it would have worked when 1.2 came out)? I know Firefox has native parsing (http:// developer.mozilla.org/en/docs/ Introduction_to_using_XPath_in_JavaScript) and so does Internet Explorer (via

[jQuery] Re: When will the API be updated for 1.2.1?

2007-09-27 Thread Sam Collett
You use MediaWiki don't you? If so can't you convert the Wiki markup to Xml and go from there? e.g. http://www.mediawiki.org/wiki/Extension:Wiki2xml Much better than screen scraping. On Sep 27, 4:24 pm, Brandon Aaron [EMAIL PROTECTED] wrote: The documentation is going through some growing

[jQuery] Re: Focusfields

2007-09-26 Thread Sam Collett
I can replicate the error: http://www.texotela.co.uk/code/jquery/focusfields/?jqver=1.2.1 I will see what is causing the problem. On Sep 25, 4:31 pm, Charles Sheehan-Miles [EMAIL PROTECTED] wrote: Hello all, I'm new to jquery, so forgive me if I'm asking questions which have been asked a

[jQuery] Re: Focusfields

2007-09-26 Thread Sam Collett
Found out the cause, but not sure how to work around it at the moment: http://www.texotela.co.uk/wrapexpandos.php On Sep 26, 1:47 pm, Sam Collett [EMAIL PROTECTED] wrote: I can replicate the error:http://www.texotela.co.uk/code/jquery/focusfields/?jqver=1.2.1 I will see what is causing

[jQuery] Re: OT: Google autofill(or any others) and form events

2007-09-24 Thread Sam Collett
I don't know if you can check if autofill has changed a form field. What may work is using a setTimeout (to give the autofiller chance to run) and then reset the background colour: setTimeout( function() { $(#myfield).css(background-color, )}, 1000); I have not tried this, so am not 100% sure

[jQuery] Re: jQuery plugins repo is a major traffic generator

2007-09-19 Thread Sam Collett
I find that's true with my site as well. 30% comes from the jQuery site. 36% is from Google, but mostly jQuery related searches. On Sep 18, 11:10 pm, Stephan Beal [EMAIL PROTECTED] wrote: Hi, all! The past couple of days i've been looking through some web logs and found some really

[jQuery] Browser Crash on SlideToggle (IE)

2007-09-19 Thread Sam Collett
I have a strange situation where the browser crashes when a SlideToggle animation is applied. It happens with Internet Explorer 6 and 7. What makes it particularly odd is that it only happens for part of the site. Steps to reproduce: Go to http://www.nelctp.nhs.uk Click on Help in the bar at

[jQuery] Re: JSPacker for .NET

2007-09-18 Thread Sam Collett
That's something I'd be interested in using. All the articles I've read about GZIP compression have been using PHP and never found anything that used C#. Does it also contain JSMin compression as an option? Also, if you made changes to Deans .NET packer perhaps you could send him the changes?

[jQuery] Re: John's Pager - best plugin no one uses?

2007-09-18 Thread Sam Collett
eq is in 1.2.1, but gt and lt are not. On Sep 18, 5:14 am, Joan Piedra [EMAIL PROTECTED] wrote: On 9/17/07, astik [EMAIL PROTECTED] wrote: With the new version of jQuery out (1.2), some specific code is no longer working ... The lt and gt method are now deprecated ... Hi Astik, they

[jQuery] Re: Google Code

2007-09-18 Thread Sam Collett
Looks like it is being used to show the Google Code blog posts and featured projects. Maybe they will use some of the more advanced features someday. On Sep 18, 3:54 pm, Rey Bango [EMAIL PROTECTED] wrote: The next time you hear someone say that jQuery isn't a mature framework, be sure to

[jQuery] Re: Google Code

2007-09-18 Thread Sam Collett
Google Web Toolkit is for Java developers (run server side), so it can't be used for those who may use ASP.NET, PHP, CFML etc On Sep 18, 5:25 pm, Anjanesh [EMAIL PROTECTED] wrote: Wow ! I really thought prototypejs being the more popular one !http://www.prototypejs.org/real-world Odd, I

[jQuery] Re: Thanks for bringing back eq() in 1.2.1

2007-09-17 Thread Sam Collett
On Sep 17, 1:06 pm, Stephan Beal [EMAIL PROTECTED] wrote: i think the main reason lt/gt were removed was because you can do the same thing with slice(). John Resig said in a post a week or so ago that they were also removed because they did only one thing, and didn't do it terribly well (or

[jQuery] Re: BUG ? cannot detect the id with :

2007-09-13 Thread Sam Collett
You have to escape with \\ $(#this\\:is\\:only\\:example); On Sep 13, 9:42 am, Adwin Wijaya [EMAIL PROTECTED] wrote: Hi :) I am glad you are reache version 1.2 :) that's awesome .. but I would like to report the bug, it seems the jquery 1.2 (and before) still couldnt detect the id with :

[jQuery] Re: newbie: how can I get the # of options in a SELECT element?

2007-09-12 Thread Sam Collett
That gets all options in all selects, this would be better: $('#mySelectElement option').length On Sep 12, 1:14 pm, David Duymelinck [EMAIL PROTECTED] wrote: $('select option').length should do it. -- david Ojas schreef: Using jQuery, how can I get the following value?

[jQuery] Re: position in selector

2007-09-12 Thread Sam Collett
var $a = $('a').click(function() { console.log('anchor' + $a.index(this) +' in page'); }); On Sep 12, 7:58 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have the following code $('a').click(function() { console.log('anchor'+ pos+' in page); }); I'd like to be able to get the matched

[jQuery] Re: Corner Plugin affects layout

2007-09-11 Thread Sam Collett
with the pngfix plugin: http://khurshid.com/jquery/iepnghack/ On Sep 10, 11:37 pm, Mike Alsup [EMAIL PROTECTED] wrote: Sam, Did you get this solved? I couldn't reproduce the error (IE7), but it sounds like a classic hasLayout problem. Mike On 9/10/07, Sam Collett [EMAIL PROTECTED] wrote: Using

[jQuery] Re: Corner Plugin affects layout

2007-09-11 Thread Sam Collett
PROTECTED] wrote: that's an awesome plugin On Sep 10, 3:59 pm, Sam Collett [EMAIL PROTECTED] wrote: Using canvas instead of nested div's for the corner didn't help with the layout (although it looks slightly better). The problem is caused by the 'position: relative' added

[jQuery] Re: Odd back-button behavior on 1.2 documentation pages

2007-09-11 Thread Sam Collett
- the issue is in running these demos in a contained area that doesn't interfere with the rest of the page (or the rest of the page interfere with it). --John On 9/11/07, Sam Collett [EMAIL PROTECTED] wrote: Use Ajax and load into a div? On Sep 11, 4:37 pm, John Resig [EMAIL PROTECTED

[jQuery] Re: Learning JQuery book typo: plugins repo URL is 404

2007-09-11 Thread Sam Collett
Although, perhaps a better idea would to have a redirect in place as I am sure there are many other sites that refer to that folder? On Sep 12, 1:34 am, Karl Swedberg [EMAIL PROTECTED] wrote: Thanks a lot, Stephan, for the note. I will send this on to the publisher. In the future, you can

[jQuery] Corner Plugin affects layout

2007-09-10 Thread Sam Collett
When I apply the corner plugin to an element on the page, the layout is affected when I hover over a link with padding. This only seems to occur in Internet Explorer (IE 6 and 7), and I am unable to find out the cause. To replicate, go to http://www.nelctp.nhs.uk Resize the browser window

[jQuery] Re: Another site using jQuery...

2007-09-10 Thread Sam Collett
It uses something else that does not use jQuery: http://www.barelyfitz.com/projects/tabber/ Something similar can be done with jQuery. e.g. http://www.texotela.co.uk/code/jquery/headertabs/ On Sep 10, 1:58 pm, Klaus Hartl [EMAIL PROTECTED] wrote: Rick Faircloth wrote: Oops! Sorry about

[jQuery] Re: Corner Plugin affects layout

2007-09-10 Thread Sam Collett
Using canvas instead of nested div's for the corner didn't help with the layout (although it looks slightly better). The problem is caused by the 'position: relative' added to the element with the corner applied to it. On Sep 10, 2:28 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: use this

[jQuery] Re: validation plugin : conflict with formsess because of {

2007-08-28 Thread Sam Collett
You could try adding this in $(document).ready, before calling the validate plugin: $.meta.cre = /(\[.*\])/; $(#foo).validate(); Although that is not documented in the meta data plugin (maybe there should be an option in it to do that). On Aug 28, 9:05 am, Olivier Percebois-Garve [EMAIL

[jQuery] Re: Why isn't there top() and left() methods in the dimension plugin ?

2007-08-28 Thread Sam Collett
On Aug 28, 1:59 pm, Olivier Percebois-Garve [EMAIL PROTECTED] wrote: Wow your too fast guys. It seems that I was using offset() the wrong way. $left = element.offset().left; $top = element.offset().top; The only problem with that is you are calling offset twice (which

[jQuery] Re: Recursive setting of names in jquery

2007-08-28 Thread Sam Collett
The way I would do this is get all inputs with a name beginning with 'total' then use .each: // save jQuery object for later use $totals = $([EMAIL PROTECTED]); $totals.each( function() { // get letter var letter = this.name.substr(5); if(letter == A) this.value = Total A; }); On Aug 28,

[jQuery] Re: validation plugin : conflict with formsess because of {

2007-08-28 Thread Sam Collett
$.meta.cre = /(\[.*\])/; in the jQuery(document).ready( Firebug says : invalid property id https://xxx.nondisclosabledomainname.com/subscription_new/js/jquery.m... Line 98 in green: data = {[required: true]} -Olivier On 8/28/07, Sam Collett [EMAIL PROTECTED

[jQuery] Re: jQuery 1.1.4: Faster, More Tests, Ready for 1.2

2007-08-24 Thread Sam Collett
You can still have slide by doing a plugin: $.fn.slide = function(dir) { if(!dir || dir == leftright) this.animate({width:'toggle'}, slow); else if(dir == updown) this.animate({height:'toggle'}, slow); } $(#foo).slide(leftright); $(#bar).slide(updown); Infact maybe slideUp, slideDown and

[jQuery] Re: jQuery 1.1.4: Faster, More Tests, Ready for 1.2

2007-08-24 Thread Sam Collett
On Aug 24, 8:31 pm, Klaus Hartl [EMAIL PROTECTED] wrote: Bernd Matzner wrote: Thanks to everyone on the dev team for the new release! @Klaus: are you planning to update your tabs plugin to the new release? It uses eq(), which I understand are deprecated now. I'd rather work on UI Tabs

[jQuery] Re: Comparison of different compressed jQuery Versions with GZip

2007-08-23 Thread Sam Collett
Perhaps it should be part of the build process? So you can get packed, min'd and YUI'd versions of jQuery. On Aug 23, 12:43 pm, Tane Piper [EMAIL PROTECTED] wrote: Julien Lecomte has just released 1.1 of his YUI Compressor. As a test, he decided to use jQuery with GZip and came up with some

[jQuery] Loading remote JavaScript

2007-08-21 Thread Sam Collett
Is there an easy way to get a remote script and run code when it has loaded as well as check the content type? $.getScript only works with those scripts on the same server. The problem I have is when using Google Maps I get often the sorry CAPTCHA page (the one you get if too many requests are

[jQuery] Re: Loading remote JavaScript

2007-08-21 Thread Sam Collett
On Aug 21, 1:15 pm, Christof Donat [EMAIL PROTECTED] wrote: Hi, Is there an easy way to get a remote script and run code when it has loaded as well as check the content type? $.getScript only works with those scripts on the same server. You can use $('script

[jQuery] Re: Loading remote JavaScript

2007-08-21 Thread Sam Collett
On Aug 21, 2:19 pm, Christof Donat [EMAIL PROTECTED] wrote: Hi, I'm aware of that method, but I want a callback to find out what content type was loaded, display it if text/html or execute it if text/ javascript. $('script src=http://example.com/myscript.js; type=text/javascript').

[jQuery] Re: ASP.NET IDs

2007-08-20 Thread Sam Collett
On Aug 19, 6:31 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Thank you all very much for the replies. They came in very useful! One quick question for Sam, though. You said you don't use gridviews, etc... what do you do then? Manually write the tables? I use a repeater and create a

[jQuery] Re: ASP.NET IDs

2007-08-19 Thread Sam Collett
I use $([EMAIL PROTECTED]]) to get any input elements whose id ends with MyID (i.e. whatever you set in your ASPX page). Either that, or use a class instead. As for the 2nd question, I don't use anything other than the basic controls (repeater, dropdownlist etc - DataGrid's and GridViews I don't

[jQuery] Re: Creating DOM elements on the fly

2007-08-17 Thread Sam Collett
There are also a few others: http://jquery.com/plugins/project/FlyDOM Easy DOM creation (which technically does not require jQuery, just the presence of $ in the global namespace): http://mg.to/2006/02/27/easy-dom-creation-for-jquery-and-prototype jquery-dom.js

[jQuery] Re: tablesorter 2.0 released

2007-08-16 Thread Sam Collett
A great plugin that is now even better. You have put a lot of time into this it seems and it has come on a long way since the first table sorter release. You managed to get a good url for it as well.

[jQuery] Re: Partial Accordion Possible?

2007-08-10 Thread Sam Collett
I have set up a test page: http://www.texotela.co.uk/accordiontest.php If I click several times on each heading, it freezes the browse (be it Firefox or IE). On Aug 10, 3:09 pm, Sean Catchpole [EMAIL PROTECTED] wrote: Hi Sam, With your html I was able to get this to work:

[jQuery] Re: Partial Accordion Possible?

2007-08-10 Thread Sam Collett
That doesn't collapse anything initially. If you click on 'Heading 2' or 'Heading 3' it actually collapses 'No sub items here' and 'Or here' (which should always show). On Aug 10, 4:20 pm, Sean Catchpole [EMAIL PROTECTED] wrote: On 8/10/07, Sam Collett [EMAIL PROTECTED] wrote: http

[jQuery] Re: Before automatically closes tags...?

2007-08-07 Thread Sam Collett
this as well, for example: $(h2).each(function(){ $(this).nextUntil(h1, h2).wrapAll(div class='note'/div); }); --John On 8/2/07, DaveG [EMAIL PROTECTED] wrote: On Thu, 02 Aug 2007 15:55:20 -, Sam Collett [EMAIL PROTECTED] wrote: There is a plugin called nextUntil that you

[jQuery] Re: What does === equate to?

2007-08-02 Thread Sam Collett
I don't think many actually use !== (and when you would want to use it) and many sites that show usage of operators don't cover !== (but do have ===). 3 != '3' false 3 !== '3'true 3 == '3' true 3 === '3'false On Aug 1, 9:33 pm, Michael Geary [EMAIL PROTECTED] wrote:

[jQuery] Re: Anything similar to IE's table.moveRow in jquery?

2007-08-02 Thread Sam Collett
Some simple plugins that may help. (function($) { $.fn.moveRowAfter = function(index, afterIndex) { this.find(tr).eq(index).insertAfter(this.find(tr).eq(afterIndex)); return this; }; $.fn.moveRowBefore = function(index, beforeIndex) {

[jQuery] Re: How to get font size in pixels?

2007-08-02 Thread Sam Collett
On Aug 1, 11:13 pm, Luke Lutman [EMAIL PROTECTED] wrote: I've run into this before, and came up with pretty much the same solution as Klaus: http://jquery.lukelutman.com/plugins/px/jquery.px.js which you can call like so: $('#example').px('font-size'); One known bug is that it won't

[jQuery] Re: Good Javascript editor or IDE?

2007-08-02 Thread Sam Collett
I use Programmer's Notepad 2 (http://www.pnotepad.org/) and have even created some jQuery text clips (amongst others - http://www.texotela.co.uk/pn2/textclips/) for it. Although, as I am familiar with the jQuery API and have Visual Studio I don't use the clips much. It's not a full-blown IDE

[jQuery] Re: How to get font size in pixels?

2007-08-02 Thread Sam Collett
On Aug 1, 3:42 pm, george.gsgd [EMAIL PROTECTED] wrote: Perhaps think around the problem. Can you get the height of the element? That'd be in pixels regardless. Or maybe use sIFR instead? sIFR was used, but now a server-side method generates the image (i.e. so Flash isn't required and the

[jQuery] Re: Before automatically closes tags...?

2007-08-02 Thread Sam Collett
There is a plugin called nextUntil that you may be able to use. An example is available at http://dev.jquery.com/~john/jquery/test/nextuntil.html Although I'm surprised it isn't in SVN or on the plugins page (perhaps there are bugs?). On Aug 2, 3:48 pm, DaveG [EMAIL PROTECTED] wrote: I'm

[jQuery] How to get font size in pixels?

2007-08-01 Thread Sam Collett
When I use $(h1).css(font-size) it differs across browsers. Firefox returns it the way I want (in pixels), but Internet Explorer it returns it as returned from the stylesheet (so it could be % or em). How can I then convert the %/em value into pixels? I am doing image replacement (byt getting the

[jQuery] Re: Safari 1.3.2 click event not returning false

2007-07-31 Thread Sam Collett
While in an ideal world, people would update their browser, sometimes it is not a viable choice (does Safari 2 even work on OSX 10.3.x?) and may even alienate users (imagine how much easier it would be if all IE6 users went to IE7 or Firefox?). Rather than 'return false' perhaps e.preventDefault

[jQuery] Re: how to catch a scroll event for the document ...

2007-07-27 Thread Sam Collett
You could try $j(document).bind(scroll, function() { }); On Jun 28, 4:38 pm, Michael Stuhr [EMAIL PROTECTED] wrote: i tried: $j('body').scroll( function() { console.info ('scrolling ...'); // do sth }); but it doesn't work ... Maybe the selector is wrong, but what is

[jQuery] Re: autocomplete caches against my will

2007-07-27 Thread Sam Collett
Maybe the old autocompleters should point to Jörn's (if his is the most up to date) and recommend it as an alternative? It has been in Alpha for a while (and I think the one in SVN is more up to date). On Jul 27, 11:53 am, Dylan Verheul [EMAIL PROTECTED] wrote: Use a correct value for

[jQuery] Re: ANNOUNCE: jTagEditor 1.0 beta

2007-07-27 Thread Sam Collett
Couple of comments: There's some inconsistency with the icons (specifically for tables). The icon with vertical line is used for inserted rows in html and wiki formats, but column in textile (which makes more sense). The one with it horizontally is for td's in html, columns in wiki and rows in

[jQuery] Re: Moving Plugins to new repository

2007-07-24 Thread Sam Collett
Is the old list still going to be archived (incase some plugins are not updated by the original author and someone takes it over)? On Jul 24, 3:30 pm, Yehuda Katz [EMAIL PROTECTED] wrote: I'm not sure how many folks have noticed, but an excellent new plugin repository was activated with little

[jQuery] Re: ANNOUNCE: tablesorter 2.0 beta released!

2007-07-18 Thread Sam Collett
On Jul 17, 2:57 pm, Christian Bach [EMAIL PROTECTED] wrote: 2007/7/17, Rick Pasotto [EMAIL PROTECTED]: On Tue, Jul 17, 2007 at 03:04:59PM +0200, Christian Bach wrote: The new 2.0 release can be found here: http://lovepeacenukes.com/tablesorter/2.0/ Interesting that the packed

[jQuery] Re: .click() fails in 1.1.3 (work in 1.1.2)

2007-07-12 Thread Sam Collett
I didn't expect it to be changed in a 1.1.x release (as it is a significant change), so maybe 1.1.2 is a safer bet for many, until 1.1.4 (will be fixed then?). So perhaps from now on it would be better to do $(a).bind(click, clickFn) to bind and $(a).trigger(click) to click? bind and trigger are

[jQuery] Re: addClass only works once

2007-07-12 Thread Sam Collett
Have you tried using .hide() and .show() instead of addClass? Less code (both JavaScript and CSS). Unless the class 'show' has more than just display: inline? On Jul 12, 1:15 pm, stef [EMAIL PROTECTED] wrote: Im using the code below to display / hide form fields depending on what value is

[jQuery] Re: Queuing Async Ajax requests in jQuery

2007-07-11 Thread Sam Collett
You may also want to cancel Ajax requests (as is the case with autocomplete), but I don't know if you can do that with jQuery. Maybe something like: $.ajax({ type: GET, url: autocomplete.php, queue: autocomplete, cancelExisting: true }) Which would cancel an existing request in the

[jQuery] Re: Scroller ticker...

2007-07-10 Thread Sam Collett
Not quite the same as it fades in rather than scrolls. Sliding could be done if you replace fadeOut with slideUp and fadeIn with slideDown Example: http://www.texotela.co.uk/code/jquery/newsticker/slide/ On Jul 9, 5:21 pm, Sean Catchpole [EMAIL PROTECTED] wrote: I like newsticker:

[jQuery] Re: Thickbox Reloaded

2007-07-10 Thread Sam Collett
Perhaps it needs a new name as well (rather than just 'Thickbox Reloaded'), because it does function slightly differently to Thickbox? On Jul 10, 2:32 pm, Joel Birch [EMAIL PROTECTED] wrote: On 11/07/2007, at 12:25 AM, Alexandre Plennevaux wrote: Hi Klaus, I personally am looking very

[jQuery] Re: Manipulating a stylesheet directly

2007-07-06 Thread Sam Collett
I don't know if this will help (does not depend on jQuery): http://webdevel.blogspot.com/2006/06/create-css-class-javascript.html It's not been compared with using jQuery to alter CSS, but I think it may be faster. It modifies the CSS properties directly (replaces them with what you enter). It

[jQuery] Re: Is it possible to show elements that is not CSS display:none;?

2007-07-05 Thread Sam Collett
You could always preload images before hand (no need to use CSS tricks). http://www.texotela.co.uk/code/jquery/preload/ On Jul 5, 3:02 am, Jon [EMAIL PROTECTED] wrote: What's better than asking, is testing.. div style=position:absolute;left:-2000px; img src=path to image/ /div Much

[jQuery] Re: opacity in IE6.0 not works with jquery-1.1.3

2007-07-04 Thread Sam Collett
While it doesn't exist as a CSS property in IE 6, you used to be able to do $(#foo).css(opacity,0.8) and it would still apply the opacity the the element(s) it was applied to. On Jul 4, 10:13 am, SeViR [EMAIL PROTECTED] wrote: In IE 6 CSS opacity doesn't exists, you must use

[jQuery] Re: opacity in IE6.0 not works with jquery-1.1.3

2007-07-04 Thread Sam Collett
While it is fixed in SVN, I would rather wait till the next release (1.1.3.1 rather than 1.1.4). So for the time being, I am sticking with 1.1.2 (for work related sites). On Jul 4, 11:33 am, Francisco José Rives [EMAIL PROTECTED] wrote: Fixed in the latest trunk version :-D

[jQuery] Re: jQuery 1.1.3+ jBlock-Pluggin

2007-07-03 Thread Sam Collett
: Brandon's fix corrected the problem on IE7. Note that you'll need the latest blockUI (v1.25) for proper operation in IE6. http://jqueryjs.googlecode.com/svn/trunk/plugins/blockUI/jquery.block... Mike On 7/2/07, Sam Collett [EMAIL PROTECTED] wrote: A simple test in head: script type

[jQuery] Re: 1.1.3 breaks opacity effects in IE?

2007-07-02 Thread Sam Collett
This also affects the blockUI plugin which also uses opacity. On Jul 2, 12:36 pm, Gordon [EMAIL PROTECTED] wrote: I noticed after upgrading to 1.1.3 that animations that had an opacity component no longer occured in IE7. They would just remain opaque until the animation was due to terminate

[jQuery] Re: jQuery 1.1.3+ jBlock-Pluggin

2007-07-02 Thread Sam Collett
Looks like a regression - which, due to it being visual, has to be inspected by eye rather than a test suite. On Jul 2, 11:06 am, Toine [EMAIL PROTECTED] wrote: same problem here something like that does'nt work with 1.1.3 : javascript:alert($('div').css({opacity: '0.5'}))

[jQuery] Re: 1.1.3 breaks opacity effects in IE?

2007-07-02 Thread Sam Collett
The blocking is fine, it's just the background is completely black (or whatever colour you set for the overlay): http://www.texotela.co.uk/blockUI.php On Jul 2, 1:29 pm, Mike Alsup [EMAIL PROTECTED] wrote: This also affects the blockUI plugin which also uses opacity. Sam, BlockUI doesn't

[jQuery] Re: jQuery 1.1.3+ jBlock-Pluggin

2007-07-02 Thread Sam Collett
A simple test in head: script type=text/javascript src=js/plugins/jquery.blockUI.js/ script script type=text/javascript !-- $( function() { $.extend($.blockUI.defaults.overlayCSS, { background-color : #000 }); $.blockUI(strongBlockUI Test. Click to

[jQuery] Re: 1.1.3 breaks opacity effects in IE?

2007-07-02 Thread Sam Collett
Aaron On 7/2/07, Mike Alsup [EMAIL PROTECTED] wrote: Sorry about that, Sam. You're quite right. I was testing with the wrong release. The opacity is not working correctly in IE7. Is IE6 working? Virtual PC is giving me fits at the moment. Mike On 7/2/07, Sam Collett [EMAIL

[jQuery] Re: 1.1.3 breaks opacity effects in IE?

2007-07-02 Thread Sam Collett
with the wrong release. The opacity is not working correctly in IE7. Is IE6 working? Virtual PC is giving me fits at the moment. Mike On 7/2/07, Sam Collett [EMAIL PROTECTED] wrote: The blocking is fine, it's just the background is completely black (or whatever colour you set for the overlay

[jQuery] Validation Plugin - hows to only fire on form submit?

2007-06-28 Thread Sam Collett
Is it possible to only run validation when the form is submitted? I am using version 1.1 of the validation plugin (http://bassistance.de/ jquery-plugins/jquery-plugin-validation/) I want to do something only when the form is submitted, so tried this basic code: $(form).validate( {

[jQuery] Re: BlockUI and unBlockUI after validation routine

2007-06-28 Thread Sam Collett
Looks like you are missing the brackets: $.unblockUI(), not $.unblockUI On Jun 28, 11:09 am, Web Specialist [EMAIL PROTECTED] wrote: Hi all. I'm trying to use BlockUI to show a message while a validation routine occurs in my form. Looks like this: $(document).ready(function(){

[jQuery] Re: Validation Plugin - hows to only fire on form submit?

2007-06-28 Thread Sam Collett
semantics - I'd love to help further but haven't used the validate() plugin myself. HTH, --rob On 6/28/07, Sam Collett [EMAIL PROTECTED] wrote: Is it possible to only run validation when the form is submitted? I am using version 1.1 of the validation plugin (http://bassistance.de/ jquery

[jQuery] Re: Validation Plugin - hows to only fire on form submit?

2007-06-28 Thread Sam Collett
(errors) { alert(should only fire on submit); } }); On Jun 28, 11:44 am, Sam Collett [EMAIL PROTECTED] wrote: The validation doesn't fire on element blur before you submit the form (only after), perhaps it may be a bug? What I want to do is show a message when the form

[jQuery] Re: jquery is'nt very effective at execution

2007-06-11 Thread Sam Collett
Using $(td.Name) should also improve the scripts performance as well. When you use $(.Name) it will go through all tags on the page. If the class name is on other tags as well, you could always add another selector (e.g. $(td.Name, li.Name). On Jun 11, 3:02 am, Dan G. Switzer, II [EMAIL

  1   2   >