[jQuery] Re: Getting an elements classes

2007-04-23 Thread Sam Collett
On Apr 23, 4:51 pm, wls [EMAIL PROTECTED] wrote: I'm missing the blatantly obvious... jQuery can .addClass(), .removeClass(), and .toggleClass(). How does one tell if an element has a class, or alternatively, get a list of classes? -wls You can do: if( $(#mydiv).is(.myclass) ) alert(has

[jQuery] Re: IE cachine .ajax calls?

2007-04-26 Thread Sam Collett
On Apr 24, 8:11 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, On IE 7.0, I'm noticing the same data is repeatedly returned to me from this call var data = $.ajax({ type: GET, url: 'draw_modules.php',

[jQuery] Re: plugin sizes

2007-04-27 Thread Sam Collett
On Apr 27, 6:22 am, Ariel Jakobovits [EMAIL PROTECTED] wrote: Is anyone else concerned by the fact that the datepicker plugin, which I love and appreciate, is 32K? unpacked, of course, but that's half the size of jQuery itself. What figures are people shooting for for the size of their

[jQuery] Re: Replacing the contents of a div that uses newsticker plug-in

2007-04-27 Thread Sam Collett
On Apr 27, 3:57 pm, Fabyo Guimaraes [EMAIL PROTECTED] wrote: Use jquery = ) $(document).ready(function() { $(#news).newsTicker();} ); function showdiv() { $(#news).css(display, block); } function hidediv() { $(#news).css(display, none); } function replacecontents() {

[jQuery] newsticker plugin updated

2007-04-27 Thread Sam Collett
I've updated my news ticker plugin with some bug fixes and added a few more examples of how to use it: http://www.texotela.co.uk/code/jquery/newsticker/

[jQuery] Re: newsticker plugin updated

2007-04-30 Thread Sam Collett
image replacement as well (e.g. with jQIR http://www.texotela.co.uk/code/jquery/jQIR/) On Apr 27, 12:06 pm, Sam Collett [EMAIL PROTECTED] wrote: I've updated my news ticker plugin with some bug fixes and added a few more examples of how to use it:http://www.texotela.co.uk/code/jquery

[jQuery] Re: datePicker v2 beta

2007-04-30 Thread Sam Collett
On Apr 28, 9:39 am, R. Rajesh Jeba Anbiah [EMAIL PROTECTED] wrote: On Apr 24, 2:54 pm, Kelvin Luck [EMAIL PROTECTED] wrote: Hi, I'd like to announce the beta release of v2 of mydatePickerplugin for jQuery. This release is a complete rewrite which makes the date picker considerably more

[jQuery] Re: datePicker v2 beta

2007-04-30 Thread Sam Collett
On Apr 30, 12:25 pm, Sam Collett [EMAIL PROTECTED] wrote: On Apr 28, 9:39 am, R. Rajesh Jeba Anbiah [EMAIL PROTECTED] wrote: On Apr 24, 2:54 pm, Kelvin Luck [EMAIL PROTECTED] wrote: Hi, I'd like to announce the beta release of v2 of mydatePickerplugin for jQuery. This release

[jQuery] Corner plugin suggestion - rounded borders

2007-05-01 Thread Sam Collett
Currently the corner plugin (http://www.malsup.com/jquery/corner/) is only used for rounded corners, it would be good if it also did borders as well to replace the existing one (and automatically inherit the widths and colours defined via CSS). I am aware there are examples for doing this (under

[jQuery] Re: Corner plugin suggestion - rounded borders

2007-05-01 Thread Sam Collett
why that is happening? On 5/1/07, Sam Collett [EMAIL PROTECTED] wrote: Currently the corner plugin (http://www.malsup.com/jquery/corner/) is only used for rounded corners, it would be good if it also did borders as well to replace the existing one (and automatically inherit the widths

[jQuery] Re: datePicker v2 beta

2007-05-02 Thread Sam Collett
On Apr 30, 2:34 pm, Kelvin Luck [EMAIL PROTECTED] wrote: Hi, On Mon, April 30, 2007 12:25 pm, Sam Collett wrote: Several features in that picker that look like they would be handy in Kelvin's that aren't in yet are: Keyboard Navigation I've been thinking about this... It's

[jQuery] Re: Bug in jQuery implementation of EXT, works with other libraries.

2007-05-03 Thread Sam Collett
A bit off topic (apologies for hijacking the topic), but I've noticed that the jQuery version of the page actually has a greater download requirement than YUI (and only slightly less that Prototype). jQuery: 177 KB YUI: 164 KB Prototype+Scriptaculous: 178 KB This could be reduced a little if

[jQuery] Re: Bug in jQuery implementation of EXT, works with other libraries.

2007-05-03 Thread Sam Collett
On May 3, 11:08 am, Kush Murod [EMAIL PROTECTED] wrote: Sam, Don't know where you are getting numbers from but Core JQuery is ONLY 60kb (uncompressed) Common plugin such as 'form' 31kb (uncompressed) Even combined size is nowhere 100kb, size drops once you compress js --Kush The size I

[jQuery] Re: Dropdown select value help

2007-05-03 Thread Sam Collett
On May 3, 3:14 pm, Luc Pestille [EMAIL PROTECTED] wrote: Nope, it still won't automatically show the div. =/ Any other suggestions? I think it should be :selected not .selected if ($(select#mySelect).is(:selected)){

[jQuery] Re: ThickBox 3

2007-05-03 Thread Sam Collett
Will this effect the development of thickbox reloaded (http:// stilbuero.de/jquery/thickbox_reloaded/) which is designed to be used more like a plugin (i.e. $(#myimage).thickbox())? On May 3, 10:05 pm, Shelane Enos [EMAIL PROTECTED] wrote: Cody Lindley updated his ThickBox to version 3

[jQuery] Re: Getting the full class set of the current object

2007-05-04 Thread Sam Collett
$('.a')[0].className should work On May 4, 4:01 am, DaveG [EMAIL PROTECTED] wrote: Given: div class=a b/div Running: $('.a').attr('class') Returns: a I expected a b. How do I obtain the full class set applied to the current object? ~ ~ Dave

[jQuery] Re: ASP.net and jQuery...Imperfect Together?

2007-05-04 Thread Sam Collett
I've been using them both together for a while. I do generally stick to some of the simpler controls (like Repeaters, DropDownLists and Buttons) and never use DataGrid's. But I don't use the designer much and code mostly by hand. I just use postback's to add /edit / delete records and then

[jQuery] Re: ASP.net and jQuery...Imperfect Together?

2007-05-04 Thread Sam Collett
I've been using them both together for a while. I do generally stick to some of the simpler controls (like Repeaters, DropDownLists and Buttons) and never use DataGrid's. But I don't use the designer much and code mostly by hand. I just use postback's to add /edit / delete records and then

[jQuery] Re: New / Updated Plugin - Focus Fields

2007-05-08 Thread Sam Collett
On May 8, 3:12 pm, Sean O [EMAIL PROTECTED] wrote: Sam, The demos don't seem to work for me in either FF2 or IE6 (?) SEAN Ohttp://www.sean-o.com Did you click the text fields after clicking on one of the examples? There is only an outline when they have focus.

[jQuery] Re: New / Updated Plugin - Focus Fields

2007-05-08 Thread Sam Collett
On May 8, 4:32 pm, Bil Corry [EMAIL PROTECTED] wrote: Sean O wrote on 5/8/2007 7:12 AM: The demos don't seem to work for me in either FF2 or IE6 (?) Worked for me in FF2. For IE7 (not 6), it didn't appear to work, but it does work on a local test site. - Bil It worked for me when I

[jQuery] Re: New / Updated Plugin - Focus Fields

2007-05-08 Thread Sam Collett
On May 8, 4:57 pm, Sean O [EMAIL PROTECTED] wrote: Sam, That was it. Works in FF2 IE 6 here. I had thought there was a default initiation of focusFields() on page load of the demo... My eyes passed right over the click one of the examples above... SEAN O Actually I just

[jQuery] Re: jQuery svn browser broken. Some documentation unaccessible

2007-05-10 Thread Sam Collett
On May 9, 6:14 pm, John Resig [EMAIL PROTECTED] wrote: The jQuery subversion repository was moved to Google Code yesterday, so you can reference it there, at least:http://jqueryjs.googlecode.com/svn/ --John Is there a way to access it over https as I can't do checkouts over svn or even plain

[jQuery] Re: New / Updated Plugin - Focus Fields

2007-05-11 Thread Sam Collett
On May 11, 12:15 pm, Erik Beeson [EMAIL PROTECTED] wrote: The outline part doesn't show up in Safari, but that's because Safari already highlights the focused field. The background color part works though. Really, Safari's border is nicer than just a plain border. Your plugin is adding a

[jQuery] Re: Getting null when trying to retrieve textarea value

2007-05-11 Thread Sam Collett
On May 11, 5:46 pm, Bil Corry [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote on 5/11/2007 9:34 AM: I am trying to get the value of a textarea with the following code, however it is returning null all the time. var curText= $([EMAIL PROTECTED]).val(); This works: var

[jQuery] Re: Suggestion - A | B | C | - Navigation container

2007-05-13 Thread Sam Collett
On May 13, 2:10 am, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote: Thanks Mario, I put it up in the plugins directory of the svn.http://jqueryjs.googlecode.com/svn/trunk/plugins/letters/ Instead of html() perhaps text() would be better as it wouldn't work as expected when there is a list item like this:

[jQuery] Re: remove() callback

2007-05-15 Thread Sam Collett
On May 15, 6:08 am, Equand [EMAIL PROTECTED] wrote: but empty clears the element. and I need only to remove a particular element... if i use empty, i need to clear the parent. but there are some elements in parent which should not be removed... You could save a reference to its parent before

[jQuery] Re: remove() callback

2007-05-15 Thread Sam Collett
Missed a line ($this.remove()) On May 15, 11:10 am, Sam Collett [EMAIL PROTECTED] wrote: You could save a reference to its parent before hand, e.g. $(a.removeme).click( function(e) { e.preventDefault(); var $this = $(this), $parent

[jQuery] Re: kelvinluck - date-picker V2

2007-05-16 Thread Sam Collett
On May 15, 11:21 pm, Kelvin Luck [EMAIL PROTECTED] wrote: Hi, Sorry about the console.log statement - I should have removed that... I'm afraid I don't have IE7 here to test with... Can you confirm that you experience the problem on my demo page:

[jQuery] Using the history plugin for non-Ajax purposes

2007-05-16 Thread Sam Collett
I am wanting to use the history plugin for a situation where Ajax is not used. Like how it works for the tabs plugin. Here is what I have so far: http://www.texotela.co.uk/sandbox/historytest/ The example on the test page (http://stilbuero.de/jquery/history/ index.html) is only for remote pages,

[jQuery] Re: wrap span tags around the contents/text of a link

2007-05-16 Thread Sam Collett
You could try using wrapInner (not part of jQuery): jQuery.fn.wrapInner = function(html){ return this.each(function(){ jQuery(html).append(this.childNodes).appendTo(this); }); }; From http://groups.google.com/group/jquery-en/msg/476244ba168c57e0 On May 16, 12:41 pm, Marie du Toit

[jQuery] Re: Convert xml string to dom document

2007-05-16 Thread Sam Collett
You could try using the dataType option in $.ajax: $.ajax({ type: GET, url: mypage.php, data: id=1, dataType: xml success: function(msg){ // do something } }); The HTML should be valid XML as well (i.e. if you changed the extension to 'xml' you could open it in IE (or

[jQuery] Re: Using the history plugin for non-Ajax purposes

2007-05-17 Thread Sam Collett
to be pressed twice in IE: click Fieldset 2, then Fieldset 3 - you then need to press back 3 times to get back to Fieldset 1. On May 16, 2:06 pm, Sam Collett [EMAIL PROTECTED] wrote: I am wanting to use thehistoryplugin for a situation where Ajax is not used. Like how it works for the tabs plugin. Here

[jQuery] Re: history plugin examples

2007-05-18 Thread Sam Collett
I have a test page on using it in a way other than for AJAX: http://www.texotela.co.uk/sandbox/historytest/ However, it does not seem to go back properly in IE (you may have to go back twice instead of once to get to the previous page). On May 17, 7:20 pm, Benjamin Sterling [EMAIL PROTECTED]

[jQuery] Re: KelvinLuck - DatePicker V2 - another question..

2007-05-18 Thread Sam Collett
You could try using a loop: var Holidays = {} var startDate = new Date(2007, 9, 27), endDate = new Date(2007, 10, 8); for(var d = startDate; d = endDate; d = (new Date(startDate.setDate(startDate.getDate() + 1 { Holidays['d' + d.getTime()] = 'Toussaint'; } On May 18, 2:51 pm,

[jQuery] Re: Documentation mirror

2007-05-21 Thread Sam Collett
I have a list of a few: http://webdevel.blogspot.com/2007/01/jquery-documentation.html On May 21, 12:07 pm, Gordon [EMAIL PROTECTED] wrote: I can't get at the jAuery documentation at jquery.com because of some kind of database issue. Is there a mirror for the documentation?

[jQuery] Re: Google Code SVN Issue

2007-05-22 Thread Sam Collett
Have you tried using https? I don't think you can check in using normal http. On May 21, 7:20 pm, Rey Bango [EMAIL PROTECTED] wrote: Hi guys, When I try checkout using TortoiseSVN (latest) viahttp://jqueryjs.googlecode.com/svn/trunk/, I get the following error: Error: REPORT request

[jQuery] Re: Google Code SVN Issue

2007-05-22 Thread Sam Collett
anything. So HTTP is supposed to work for that. With HTTPS, I'm prompted for a login which I don't need at the moment. Rey... Sam Collett wrote: Have you tried using https? I don't think you can check in using normal http. On May 21, 7:20 pm, Rey Bango [EMAIL PROTECTED] wrote: Hi

[jQuery] Re: Graph plot

2007-05-24 Thread Sam Collett
On May 24, 3:20 pm, Benjamin Sterling [EMAIL PROTECTED] wrote: Jakob, Do a search of the group, someone was talking about graphs and/or pie charts a few months back. Did not see it right away, but I am sure is there. -- Benjamin Sterlinghttp://www.KenzoMedia.comhttp://www.KenzoHosting.com

[jQuery] Re: Loading before teh DOM is ready

2007-05-25 Thread Sam Collett
How about: html head titleMy page/title script type=text/javascript document.write(style type='text/css'#content { display: none } #loading { display: block } \/style); $( function() { $(#loading).hide(); $(#content).show(); }); /script /head body div id=loadingLoading.../div div id=content

[jQuery] Re: Improved timePicker, time/datePicker demo

2007-05-29 Thread Sam Collett
On May 28, 10:33 pm, Anders [EMAIL PROTECTED] wrote: Nice plugin, very useful. What exactly are the differences to Sam's orginal (without looking at the original...)? Thanks! Not 100% sure on these (Sam, correct me if I'm wrong), but should be mostly correct: * Scrolls to the entered

[jQuery] Re: good show/hide icon

2007-06-01 Thread Sam Collett
On May 30, 9:54 pm, Matt Stith [EMAIL PROTECTED] wrote: Search up 'Famfamfam', that site has an icon set called 'Silk' thats available for free, that has tons of icons, for pretty much anything you can imagine. Also you might wanna check out IconBuffet.com (if you sign up, let me know your

[jQuery] Re: update input name

2007-06-06 Thread Sam Collett
On Jun 6, 8:50 am, oscar esp [EMAIL PROTECTED] wrote: Thnaks... I have tryed: jQuery(#+inputID,addedItem).attr(id,newInputID); content1= jQuery(#+newInputID,addedItem)[0].outerHTML content1=content1.replace(inputID,newInputID) jQuery(#+newInputID,addedItem)[0].outerHTML = content1 But any

[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

[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: 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] 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: 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: 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: 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: 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: 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: .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: 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: 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: 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: 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] 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: 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] 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: 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: 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: 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: 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: 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] 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: 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] 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: 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] 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: 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

  1   2   >