[jQuery] $(document).ready( ) ... tricky ajax problem

2007-04-25 Thread sam
at has been inserted into the DOM? If I rerun the entire $ (document).ready() function, the original "alerter"s will have the click function bound twice. Anybody know a way around this? Thanks, -sam

[jQuery] Re: $(document).ready( ) ... tricky ajax problem

2007-04-25 Thread sam
rter", parent).click( function(){ alert('you clicked me.'); } ); } ); Then, after AJAX occurs, invoke the $(document).ready method, passing it the result to be used as the parent node. Is this possible? Thanks for your input, -sam On Apr 25, 12:22 pm, "Sean Catchpole"

[jQuery] Re: $(document).ready( ) ... tricky ajax problem

2007-04-25 Thread sam
This is better... But the goal really is to have $(document).ready() code to execute only within a specific node. -sam

[jQuery] Superfish + Interface conflict

2007-09-16 Thread Sam
ing I can do to solve the issue? I'm using the latest version of both plugins and I'm using jQuery 1.1.3.1 (Superfish doesn't work in the most recent version yet). Thanks, Sam

[jQuery] Binding a unique single and double click command

2009-09-29 Thread Sam
I'm trying to write some jQuery to do the following: If a user clicks once on an object, do X. If a user clicks twice on an object, do Y, but not X. I've been having some trouble with this as, obviously, a double-click will trigger the single-click twice. Here is a failed attempt: $('.todo

[jQuery] Re: Binding a unique single and double click command

2009-10-07 Thread Sam
Thanks for the help! I nailed it with the following: $('.todo_item h2').live('click', function() { clicks++; x = $(this); if (clicks == 1) singleClick = setTimeout(function() { clicks = 0; showExtra(x); }, 300); if (clicks == 2) { clearTimeout(singleClick); clicks

[jQuery] (validate) No-URL

2009-07-06 Thread Sam
I used the URL checker in the Plugins/Validation, to create a no-url checker. This can be useful to prevent some spam from coming through in a form. nourl: function(value, element) { return this.optional(element) || !(/^(https?|ftp):\/\/[a-z]| \d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF

[jQuery] Re: Only one of two fields is required. How to implement this logic in Jquery form validation?

2009-10-13 Thread Sam
>>How to change the default position of an error message in Jquey form >>validation plugin? This is easy to do. Just create a label element where you want the error message to appear. If the field you are validating is called "foo" your label would look like: This field is required You must pu

[jQuery] Validating Australian ABN numbers

2009-10-15 Thread Sam
ABN - Australian Business Numbers I knew they had to be numeric and 11 digits. Then i found this: http://www.ato.gov.au/businesses/content.asp?doc=/content/13187.htm&pc=001/003/021/002/001&mnu=610&mfp=001/003&st=&cy=1 Which explains quite nicely how to validate a number. So I thought I would sha

[jQuery] Why no color animation built in?

2009-10-16 Thread Sam
I was just wondering, why doesn't jQuery have color animations built- in to the library? JavaScript has hexadecimal number literals (0xaabbcc), so it could be the way to define colors in the params argument object. An array literal could also be used to set colors. Why is it that jQuery hasn't im

[jQuery] Re: Why no color animation built in?

2009-10-16 Thread Sam
Well why don't they bundle this in with the jQuery standard library? On Oct 16, 11:21 am, Charlie wrote: > jQueryUi has color animationshttp://jqueryui.com/demos/animate/ > Sam wrote:I was just wondering, why doesn't jQuery have color animations > built- in to the libr

[jQuery] Re: images show before jquery and cycle plugin work their magic

2009-10-21 Thread Sam
then have it build the carousel as it loads? Cheers, Sam On Oct 20, 6:35 pm, Karl Swedberg wrote: > If you have large images, they would take longer to load. No way   > around that. One thing you can do to avoid having the images "span   > down the page" is to add a style decl

[jQuery] Re: images show before jquery and cycle plugin work their magic

2009-10-21 Thread Sam
I'm not entirely sure that some of these fixes apply to my situation as I'm not using cycle plugin. I am having the same issue as the original poster however, please see for yourself. http://samgabellshoots.com/ Any pointers on how to fix or at least 'hide' the issue until after load would be g

[jQuery] Re: images show before jquery and cycle plugin work their magic

2009-10-22 Thread Sam
and carousel wrapper > set height, width and overflow : hidden > this is done by the script also but until script fully fires your css should > make up for it > Sam wrote:I'm not entirely sure that some of these fixes apply to my > situation as I'm not using cycle plugin

[jQuery] [Superfish] Left side dropdown menu

2009-12-05 Thread Sam
Hi, I have 3 level menu. I want the sub menus to be open in left direction instead of right. Because the menu is in top right corner of the website, and when submenu are displayed. They goes outside the website window and browser shows the scroll bar, which doesnt look nice. I hope, u guys underst

[jQuery] How return value in jQuery ajax

2008-11-24 Thread sam
i have function jQuery.ajax({ type: "GET", url: url, data: queryString + '&btnSubmit=1', success: function(msg) { if(msg=0){ if(msg) { $("#errorid").val(""); }

[jQuery] SuperFish - Load sub menu with Ajax

2008-12-08 Thread sam
Hello. I put the superfish menu on my page and using the OnBeforeShow method, I am fetching menu items via ajax and placing the LI's in the current UL. I also see if there are children for the newly refreshed sub items and I nest a new UL sort of like this: if(item.subPageCnt > 0){

[jQuery] $(window).bind('resize', fn) not working in IE

2009-01-13 Thread sam
Can anyone verify that $(window).bind('resize', fn) doesn't work in IE? $(window).bind('scroll', fn) works fine for me, but not resize. I'm using 1.2.6. Thanks.

[jQuery] Re: Capture a click outside of a specific object?

2009-01-13 Thread sam
if (target.is("#foo")){ //its foo! } }); More info on event delegation: http://docs.jquery.com/Events/jQuery.Event -sam On Jan 13, 2:32 pm, riotbrrd wrote: > Hi all, > > Is there a simple way to capture a click event in a window/document > and then determine whether the clic

[jQuery] Re: createElement, get its value

2009-01-13 Thread sam
$('#grabMe') will search the document for an element with ID "grabMe" Have you added grabMe to the document? On Jan 13, 6:00 pm, CrustyDOD wrote: > Hey! > > I've created one div with FlyDOM plugin which uses createElement > function to add stuff to DOM. Now the problem is that once i add the >

[jQuery] Re: Can't figure out how to traverse the DOM to these values...

2009-01-13 Thread sam
tring has. .val() should work just fine for form inputs. .next() returns the next SIBLING elements to each . If you're looking for elements inside then use .find(). Hope this helps. -sam On Jan 13, 7:29 pm, "Rick Faircloth" wrote: > Starting from the input with the class "

[jQuery] Re: $(window).bind('resize', fn) not working in IE

2009-01-14 Thread sam
TI'm injecting jQuery into any webpage (via a bookmarklet). This works fine, but for some strange reason $(window).bind("resize") doesn't work with IE. No errors, just doesn't fire the event. To see this, execute this code while on any webpage (using Firebug Javascript Console): //load jQuery

[jQuery] Re: $(window).bind('resize', fn) not working in IE

2009-01-14 Thread sam
I believe I found the bug. Seems like that if you set window.onresize in IE before the document is completely loaded, it won't work. Whatever.

[jQuery] jquery.listnav

2009-02-18 Thread Sam
I have an index page with 1270 list items being processed by listnav, and loading the page takes about 15 seconds. Without listnav turned on, the page loads in less than a second. Is there a way to speed up the indexing through caching? Or a setting that would use pre-populated LI classes?

[jQuery] Re: jquery.listnav

2009-02-18 Thread Sam
letter. If I set the options to includeAll, but don't specify a letter, FF loads faster initially, but the first letter click shows the delay. - Sam

[jQuery] [autocomplete] hasFocus is bugged in certain cases in IE

2009-03-09 Thread Sam
Hello, I've observed this behaviour in IE7. Using Jörn Zaefferer autocomplete plugin. If you reload/refresh the page and the focus is automagically (a function of the browser) given to the autocomplete field the focus event doesn't fire. Hence hasFocus is zero and if you start typing the results

[jQuery] [validate] ASP.Net style validation group

2009-03-16 Thread Sam
Hi folks, I couldn't find any solutions to this. I needed the validate plugin to have validation group like functionality for use on asp.net webforms (because asp.net only allows one form). I'm not much a javascript programmer but I had a crack at it anyway. After stumbling in the dark for a bit

[jQuery] Re: Keeping jquery codes up to date - best practise?

2009-03-23 Thread Sam
The risk with linking to a "latest" build is that something will break when the linked-to version of jquery changes. Imagine for instance that you made heavy use of @selectors, and were running live with these when the change was made from 1.2 to 1.3. Your site would break. Such eventualities as t

[jQuery] Closing Ajax Requests

2009-04-03 Thread Sam
I couldn't find anything on this in the jQuery documentation. Is there a way to close all jQuery ajax requests? I've built a bit of comet- like long polling ajax script, but it seems as though Internet Explorer is keeping these long polling requests open when I refresh or redirect to another page.

[jQuery] JSON in jQuery

2008-08-25 Thread Sam
I am creating a widget where someone can post a note about the page (feedback). I am currently using AJAX to pass the information to my server, but I want to now use JSON, so that I can put it on one of my other domains and still send the info to my original domain. This is the function I curren

[jQuery] Re: JSON in jQuery

2008-08-25 Thread Sam
ayload with the > results of your request. > >     $.getJSON( >         'http://example.com/feedback?callback=?&feedback='+ >             encodeURIComponent(feedback), >         function( response ) { >             ... >         } >     ); > > -Mike >

[jQuery] Re: JSON in jQuery

2008-08-25 Thread Sam
ayload with the > results of your request. > >     $.getJSON( >         'http://example.com/feedback?callback=?&feedback='+ >             encodeURIComponent(feedback), >         function( response ) { >             ... >         } >     ); > > -Mike >

[jQuery] Re: Doc's site down?

2008-08-28 Thread Sam
For jQuery reference, I use Visual jQuery almost exclusively, unless using a new plugin: http://remysharp.com/visual-jquery/ Seems to be a better option than the docs site.

[jQuery] Docs down...really no mirror?

2008-09-05 Thread Sam
The docs seem to be down again (and last night as far as I can remember). Is there really no mirror?

[jQuery] jquery keydown and keyup at (window) level do not fire in IE

2008-06-29 Thread Sam
Anyone else noticing this? Here is an example code, works fine in firefox but fails in IE. $(window).keydown(function(event){ alert(event.keyCode); });

[jQuery] Using tabs - how do I get tabs to load on a nested page?

2008-06-29 Thread Sam
The tabs work fine on the first page, but I need a second group of tabs on the "by Season" tab. The code is there, but the tabs don't generate on document ready. front page: http://www.texas-asl.com/ladder/ladder.php by Seasons tab page: http://www.texas-asl.com/ladder/seasons.php

[jQuery] Re: Using tabs - how do I get tabs to load on a nested page?

2008-06-30 Thread Sam
quot;add", './newReport.php', 'Add New Result'); $(".selector").tabs("add", './last200.php', 'Last 200'); $(".selector").tabs("add", './showPie.php', 'by City'); $(".selector").tabs("ad

[jQuery] Re: Using tabs - how do I get tabs to load on a nested page?

2008-07-01 Thread Sam
ue, >         load: function(e, ui) { >             $("#seasons > ul").tabs(); >             for (var year = 2008; year >= 1996; year--) >                 $(".seasonSelector").tabs("add", "./season.php? > season=" + year, year + " Season"); &

[jQuery] Want slide over effect for forms

2008-07-18 Thread Sam
out of the way and pulls in the second screen. I've never used jQuery before and would appreciate some pointers in creating this effect. Thanks, Sam

[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"

[jQuery] Re: OT: How to request something from the google groups folks?

2007-04-23 Thread Sam Collett
On Apr 23, 1:22 am, Chris Jordan <[EMAIL PROTECTED]> wrote: > Does anyone know if you can request a feature for GoogleGroups? > > Just in case someone from Google is monitoring (... they *do* do that > don't they?) here's my request: > I've got a request for the web based interface. I'd like to se

[jQuery] Re: datePicker v2 beta

2007-04-25 Thread Sam Collett
On Apr 24, 10:54 am, "Kelvin Luck" <[EMAIL PROTECTED]> wrote: > Hi, > > I'd like to announce the beta release of v2 of my datePicker plugin for > jQuery. This release is a complete rewrite which makes the date picker > considerably more powerful and flexible than it previously was. Check out the

[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: datePicker v2 beta

2007-04-26 Thread Sam Collett
On Apr 25, 3:47 pm, "Kelvin Luck" <[EMAIL PROTECTED]> wrote: > I only just received this email even though it looks like it was sent > yesterday... Is anyone else still having issues with the list lagging? > > > > > Looking good. Lots of examples - although it would be nice to have > > some CSS s

[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 the

[jQuery] Re: datePicker v2 beta

2007-04-27 Thread Sam Collett
On Apr 26, 5:25 pm, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: > Sam Collett schrieb:> Positioning may be done with my other plugin (http:// > >www.texotela.co.uk/code/jquery/below/), which has a bug that I can't > > seem to fix - zoom affects positioning if you don&

[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"); > >

[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
On Apr 29, 6:06 pm, millionmonkey <[EMAIL PROTECTED]> wrote: > Sam, thanks for the update. Just in the nick of time for me as > well. > > Newsticker Example:http://www.levelfield.com/newsticker1.html > You example also shows how it can also be used for things other than ne

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

2007-04-30 Thread Sam Collett
On Apr 28, 2:38 pm, "Sean Catchpole" <[EMAIL PROTECTED]> wrote: > Looking at the code for newticker, you might/should be able to just > recall $("ul").newsticker() and it should reset the ul. If for some > reason it doesn't work, then this might be the change that the plugin > needs: > stopTicke

[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 > > co

[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

[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
On May 1, 12:09 pm, "Mike Alsup" <[EMAIL PROTECTED]> wrote: > Hi Sam, > > That's a nice addition to the corner plugin! Regarding the issues you > found, the corner plugin inserts divs to achieve the cornering effect > so it can only be used on block level

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

[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 the

[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 100k

[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 yeste

[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: > > 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 redirec

[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 redirec

[jQuery] Re: jquery.com - hacked?

2007-05-07 Thread Sam Collett
As SVN is also down, perhaps you could switch to a provider like SourceForge? As well as providing a lot of functionality (including https access - which for me would mean I could do proper checkouts behind our restrictive proxies), it may possibly bring in a lot more users. You also don't have to

[jQuery] Re: ANN: jQuery-Powered Sites: The List Continues to Grow

2007-05-07 Thread Sam Sherlock
I have just seen this on CSS Beauty - looks great too and using jQuery http://www.stonebriar.org/ - S On 06/05/07, westamastaflash <[EMAIL PROTECTED]> wrote: I used jQuery for http://westphotoinc.com I really liked the interface plugin's slider bar, it works great and looks the same on all

[jQuery] New / Updated Plugin - Focus Fields

2007-05-08 Thread Sam Collett
Haven't updated outlineTextInput's for a while (due to having issues with IE) - which is a plugin for adding outlines to text fields when they are given focus. Done a new version which does seem to work: http://www.texotela.co.uk/code/jquery/focusfields/ Only done very basic testing on Firefox an

[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

[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 exam

[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 l

[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 wro

[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 cache

[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 te

[jQuery] Re: ANNOUNCE: jTagEditor 1.0 beta

2007-07-27 Thread Sam Collett
On Jul 27, 11:04 am, Sam Collett <[EMAIL PROTECTED]> wrote: > Also, in wiki perhaps it should prompt you (like in the others) when > no text is selected? That should be 'it should prompt you for link text and url when you insert a link and nothing is selected' as it just adds one/two [ or ]'s

[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

[jQuery] prototype.js and jquery.js conflict problems? (Lightbox and Thickbox) simple?

2007-08-01 Thread Sam England
I will try to be as specific as possible in describing the issue. I am running both lightbox (which uses prototype and scriptalicious) and thickbox (which uses jquery.js) on my site. lightbox 2 works fine. Lightbox 2: huddletogether.com/projects/lightbox2/ thickbox is installed but works fine.

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

[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) { this.find("tr").eq(index).

[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 i

[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 lik

[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 a

[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 try

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

2007-08-07 Thread Sam Collett
tems. I updated the demo to reflect this as > well, for example: > > $("h2").each(function(){ > $(this).nextUntil("h1, h2").wrapAll(""); > > }); > > --John > > On 8/2/07, DaveG <[EMAIL PROTECTED]> wrote: > > > > >

[jQuery] Re: Announcement: Spoilers plugin

2007-08-08 Thread Sam Collett
You like developing plugins don't you? ;) How about an option to show the spoilers when you click on a link 'show spoilers'. I've seen a few forums (can't think of the exact URL's off the top of my head though) that have this. e.g. $ ('.jqSpoiler').initSpoilers("click") or $ ('.jqSpoiler').initSp

[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

[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: &

[jQuery] Partial Accordion Possible?

2007-08-10 Thread Sam Collett
I've been looking at Jörn's Accordion plugin (http://bassistance.de/ jquery-plugins/jquery-plugin-accordion/) but not found any way to do a partial accordion (i.e. only apply it to part of a list). I have the structure: Home Header 1 Sub 1.1 Sub 1.2 Sub 1.3 No sub items here

[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 http://www.pinkblack.org/itblog/?p

[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'

[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

[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 ma

[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 > > $('

[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. > > $('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 s

[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,

[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 o

[jQuery] Re: pnGFix Plugin with Jquery 1.1.4

2007-08-27 Thread Sam Sherlock
AFAIK there are two pngFix plugins for jquery. http://khurshid.com/jquery/iepnghack/ Is the one I am using, it works (as far as I have tested) with latest jQuery, you can't repeat the image using background repeat. On 27/08/2007, voltron <[EMAIL PROTECTED]> wrote: > > > Hi all, > > has anyone g

[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 PR

[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 (

  1   2   3   4   >