[jQuery] Re: plugin issues

2007-04-09 Thread Jonathan Sharp
Ariel, What version of jQuery are you using? Cheers, -Jonathan On 4/8/07, Ariel Jakobovits <[EMAIL PROTECTED]> wrote: I am working with jdMenu. It works great on FF, throws an "invalid argument" in IE. The example on the site (http://jdsharp.us/code/jQuery/plugins/jdMenu/) does not throw

[jQuery] Re: How to load picture after picture

2007-04-10 Thread Jonathan Sharp
Another approach would be to print out the images like: echo ""; Then the following jQuery code: $(function(){ $('img.photo:first').show(); $('img.next').bind('click', function() { $('img.photo:visible').hide().next().is('img.photo').show(); }); $('img.prev).bind('click', funct

[jQuery] Re: How to load picture after picture

2007-04-11 Thread Jonathan Sharp
On 4/11/07, wyo <[EMAIL PROTECTED]> wrote: On Apr 10, 11:58 pm, "Jonathan Sharp" <[EMAIL PROTECTED]> wrote: > Another approach would be to print out the images like: > echo " class=\"photo\">"; > Doesn't this load all the pictures righ

[jQuery] Re: How to load picture after picture

2007-04-12 Thread Jonathan Sharp
On 4/12/07, wyo <[EMAIL PROTECTED]> wrote: Sorry, was to fast with posting, here are more questions. On Apr 12, 12:25 am, "Jonathan Sharp" <[EMAIL PROTECTED]> wrote: > > You could do that too... here's another option: > > echo ""; > That

[jQuery] Re: Displaying a rotated image

2007-04-13 Thread Jonathan Sharp
You have to do that in image manipulation software. When your digital camera takes the photo, most store an orientation flag that programs like iPhoto are smart enough to read and rotate the image for you automatically. In the raw file though the image is still incorrectly stored. There isn't a w

[jQuery] jQuery 1.1.3a / 1.2 ?

2007-04-19 Thread Jonathan Sharp
What's the release status for 1.1.3a (or 1.2)? We're in need of support for expanded namespaces (eg. being able to select foo:bar via $('foo\\\:bar') ) Cheers, -Jonathan

[jQuery] Re: jQuery HTML Documentation Generator

2007-04-25 Thread Jonathan Sharp
I belive there's a java version of one in SVN that they use currently. Take a look at the ant docs target in the build.xml -js On 4/25/07, Matt Kruse <[EMAIL PROTECTED]> wrote: The "jQuery HTML Documentation Generator" at http://jquery.bassistance.de/docTool/docTool.html seems like a great t

[jQuery] Re: behaviors?

2007-04-26 Thread Jonathan Sharp
I think he may be talking about something different, think dynamic events in the sense that a new list item is added via an ajax call and the click event is bound to it. No need to re-call the bind to attach the event after the ajax content has loaded... $('li").behavior( "click", function() {

[jQuery] Re: behaviors?

2007-04-27 Thread Jonathan Sharp
Could you see this possibly being built directly into the browser or becoming part of the JavaScript/DOM standard? -js On 4/26/07, John Resig <[EMAIL PROTECTED]> wrote: .behavior() does not exist - but it could (without too much effort) the current solution with jQuery is shown in the previo

[jQuery] Re: Estimated 1.1.3 release date?

2007-04-27 Thread Jonathan Sharp
Typically X.Y.Z versioning follows the following: X = Major release (total rewrite, huge codebase changes, usually not backwards compatible) Y = Minor releases, some isolated backwards compatibility issues, new features release Z = Bug fix releases or "point releases". Typically no backwards comp

[jQuery] $(...).children() vs $().childNodes()

2007-04-27 Thread Jonathan Sharp
So we have a situation where we need to clone all of an elements childNodes (including whitespace & text nodes). The code below is an attempt to add a childNodes() function that behaves similar to children() except for it includes the childNodes. Comments/houghts/suggestions/feedback? $.fn.child

[jQuery] Re: Chaining methods

2007-05-02 Thread Jonathan Sharp
//plugin jQuery.fn.toggleText = function (evalText1, evalText2){ $(this).html(($(this).text() == evalText1)?evalText2:evalText1); } jQuery.fn.toggleText = function(txt1, txt2) { return this.each(function() { $(this).html( $(this).text() == txt1 ?

[jQuery] jQuery Site: EverBank.com

2007-05-03 Thread Jonathan Sharp
Spotted in the wild: http://everbank.com/ -js

[jQuery] Re: Pass objects to Ajax Success

2007-05-03 Thread Jonathan Sharp
Hi Jeff, You just need to use a closure. Outside your ajax call do $t = $(this); and then you can reference $t inside of your anonymous function. See below... Cheers, -js $(document).ready(function() { $("table > tbody > tr").hover(function(){$ (this).css("backgroundColor", "#de7121")}, f

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

2007-05-04 Thread Jonathan Sharp
Here's another one I've neglected to mention (I even built it!) It uses thickbox http://www.sharpequestrian.com -js P.S. There's a photo of me on the photos page with my horse Micah. On 5/4/07, Rey Bango <[EMAIL PROTECTED]> wrote: > > > Hi Kevin, > > One of the things that we're trying to do o

[jQuery] Re: Firebug shows Too Much Recursion errors after clicking OK in alert box

2007-07-25 Thread Jonathan Sharp
This could also be written as: $('a').click(function() { if ($(this).parents('#nav').size() == 0) { alert('...'); return false; } }); -js On 7/25/07, Erik Beeson <[EMAIL PROTECTED]> wrote: You don't need to wrap the parameter to not in $(...). Maybe try: $("a").not("#nav a

[jQuery] Re: switch between two class - Basic Issue

2007-07-25 Thread Jonathan Sharp
The issue lies in that you're trying to bind your click event to .collapsibleopen at document ready time. The .collapsibleopen class won't be available until the user clicks to have it added. I think below is more of what you're after... $('.collapsible .collapsed .collapsibleopen').bind('click',

[jQuery] Re: switch between two class - Basic Issue

2007-07-25 Thread Jonathan Sharp
in $(this) to apply this JQuery only in the real clicked "element"? I am trying some XPath Selectors. Could you help me? Cheers ;) Mario 2007/7/25, Jonathan Sharp <[EMAIL PROTECTED]>: > > The issue lies in that you're trying to bind your click event to > .collap

[jQuery] Re: Are there any particular ways to debug jQuery code?

2007-07-27 Thread Jonathan Sharp
Why simply write bug free code! -js On 7/26/07, cfdvlpr <[EMAIL PROTECTED]> wrote: > > > Firebug is awesome for debugging your Jquery code using firefox. But, > how do you debug problems that occur in IE and IE only? > >

[jQuery] Re: Two words for Jquery

2007-08-01 Thread Jonathan Sharp
super fly. On 8/1/07, Richard D. Worth <[EMAIL PROTECTED]> wrote: > > On 8/1/07, Mario Moura <[EMAIL PROTECTED]> wrote: > > > > BJ AJ > > > > > > (Before JQuery) (After JQuery) > > > Meet BJ :-( > > Meet AJ :-) > > - Richard > > >

[jQuery] Re: Check this, if you've got the time

2007-08-02 Thread Jonathan Sharp
I'd recommend "booglyboogly" since that's what happens when you click on the "X" -js On 8/2/07, Paul Caton <[EMAIL PROTECTED]> wrote: > > > That's neat! > > Now you need a good name for it. Come to think of it, it looks a bit > like table tennis - maybe you could call it "Ping-Pong", something l

[jQuery] Re: new Plugin every: jQuery-oriented setTimeout and setInterval

2007-08-14 Thread Jonathan Sharp
I'm going to throw my suggestion in: $(...).oneTime(); $(...).everyTime(); $(...).stopTime(); Cheers, -js P.S. I approved your account so there shouldn't be a delay anymore. On 8/14/07, Blair Mitchelmore <[EMAIL PROTECTED]> wrote: > > > Maybe it's just my jealousy of pattern matching and mult

[jQuery] Re: Do my emails make it to the list?

2007-08-15 Thread Jonathan Sharp
The reason there's a delay is that new members posts are moderated to fight spam. After x number of "valid" posts the moderation restriction is removed. I've removed this restriction for your account. Cheers, -js On 8/15/07, barophobia <[EMAIL PROTECTED]> wrote: > > > I can see my emails in the

[jQuery] Re: Do my emails make it to the list?

2007-08-15 Thread Jonathan Sharp
No, probably not. Your messages are posted, just not immediately. We're pretty good at moderating posts quickly. Sometimes googlegroups seems a little lagged. Cheers, -js On 8/15/07, Göran Törnquist <[EMAIL PROTECTED]> wrote: > > Is that the reason why I haven't had any responses to my post (an

[jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names

2007-08-16 Thread Jonathan Sharp
On 8/16/07, Stephan Beal <[EMAIL PROTECTED]> wrote: > > On Aug 16, 7:39 pm, Mitch <[EMAIL PROTECTED]> wrote: > *snip* > Simon Willison apparently has a > similar hang-up about jQuery. And, like i am in my hate-hate > relationship with Python, he's in the minority. Minor detail, it wasn't Sim

[jQuery] Re: Do my emails make it to the list?

2007-08-17 Thread Jonathan Sharp
nd caught a number of messages that would not fall into the family friendly nature of this group. So please be patient as we approve you as you start contributing. Cheers, -Jonathan On 8/17/07, Giovanni Battista Lenoci <[EMAIL PROTECTED]> wrote: > > > Jonathan Sharp ha scritto:

[jQuery] Re: Avoiding anonymous functions - enhancement suggestion

2007-08-17 Thread Jonathan Sharp
On 8/17/07, John Resig <[EMAIL PROTECTED]> wrote: > > > I've thought of this, as well. I also wanted to add a hook to allow: > > $(...).click(".toggle()") > > However, I'm currently leaning away from it (embedding code in strings > is messy) in favor of another solution that I'm working on: > > $(.

[jQuery] Re: Iterating over 1000 items - optimizing jquery

2007-08-21 Thread Jonathan Sharp
This can be reduced to this: $(document).ready(function() { function doPlusMinus(event) { qty_field = $(this).parent('td').find('[EMAIL PROTECTED]'); var num = $(qty_field).val(); $(qty_field).val( num + (event.data === true ? 1 : (num > 0 ? -1 : 0)) ); } // Fi

[jQuery] Re: Iterating over 1000 items - optimizing jquery

2007-08-21 Thread Jonathan Sharp
.after( // You may be able to substitue add (to select this element for this object) for this after call // Create your element and bind the event to it $('').bind('click', true, doPlusMinus) ) ) Cheers, -js On 8/21/07, Jonathan Sharp <[EMAIL

[jQuery] jQuery Spotted In The Wild: REI.com

2007-08-22 Thread Jonathan Sharp
http://www.rei.com/product/735607 Click on the product image for a larger view. -js

[jQuery] Re: auto scrool

2007-08-23 Thread Jonathan Sharp
While this isn't exactly what you're looking for it would give you a base to build upon if you were to write your own. It would have the calculations for scrolling as well as some timing events. http://jdsharp.us/jQuery/plugins/AutoScroll/ Cheers, -Jonathan On 8/23/07, rayfidelity <[EMAIL PROTE

[jQuery] Clear element's style in IE?

2007-08-23 Thread Jonathan Sharp
I'm using this to clear an element's style (as set by developer's) and it works great in FF but not IE. Any thoughts? $('[EMAIL PROTECTED]').attr('style', ''); Cheers, -js

[jQuery] Re: [NEWS] jQuery's Fearless Leader on Ajaxian

2007-08-24 Thread Jonathan Sharp
I'm confused! ...he's not 10ft tall? Is he a mere mortal? -js On 8/24/07, Rey Bango <[EMAIL PROTECTED]> wrote: > > > jQuery's fearless leader John Resig is in the news today on Ajaxian.com. > The post is about John's recent chat over at Google on "Best Practices > in Javascript Library Design".

[jQuery] PERFORMANCE TIP: removeClass()

2007-09-19 Thread Jonathan Sharp
*Do not do:* $(...).removeClass('a').removeClass('b').removeClass('c'); *Instead do:* $(...).removeClass('a b c'); Same applys to addClass() I had 15 classes I had to remove and Firefox was a champ at chained removeClass calls, IE was taking 760ms! -js

[jQuery] Re: PERFORMANCE TIP: removeClass()

2007-09-19 Thread Jonathan Sharp
> > > just curious how would that compare to > $(...).attr('class',''); > > > Jonathan Sharp-2 wrote: > > > > *Do not do:* > > $(...).removeClass('a').removeClass('b').removeClass('c'); > > > > *Instead d

[jQuery] Re: PERFORMANCE TIP: removeClass()

2007-09-19 Thread Jonathan Sharp
could be better spent optimizing your display code. > > > andy > > -- > *From:* jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] *On > Behalf Of *Jonathan Sharp > *Sent:* Wednesday, September 19, 2007 11:55 AM > *To:* jquery-en@googlegrou

[jQuery] Re: OT: Combining JS files for production releases

2007-09-20 Thread Jonathan Sharp
Hi Brook, Here's a layout of what we've developed at an enterprise level. Below is the relivant directory structure... ... /jquery jquery.properties dimensions.js jquery-1.1.4.js jquery-1.2.1.js hoverintent.js /src /component component.js component.css component.html /i

[jQuery] Re: jQuery camp: any closer to a location decision?

2007-09-24 Thread Jonathan Sharp
Are there any details in terms of times? I'm attempting to schedule a flight and need to know if I have time to catch on Saturday night. Cheers, -js On 9/15/07, John Resig <[EMAIL PROTECTED]> wrote: > > > It's very likely that this will be taking place at Harvard University, > thus, it'll be on

[jQuery] Ajax Experience Boston : jQuery Camp 2007 - Location & Times?

2007-09-24 Thread Jonathan Sharp
Have any details been nailed down in regards to the Sat. Oct 27th jQuery Camp following Ajax Experience? I need to finalize travel arrangements so a location and ending time would be most helpful. Looking forward to it! -js

[jQuery] Re: jdmenu and new dimensions issue?

2007-09-25 Thread Jonathan Sharp
Howdy, I'm jumping in late to the conversation here. As Brandon pointed out there were some updates to dimensions/jQuery core that need to be updated in the plugin. I have a rewrite nearing completion which I'm working hard at trying to have completed and published by Ajax Experience at the end of

[jQuery] Re: Quick question on image loading

2009-10-05 Thread Jonathan Sharp
Hi Eric, The browser will replace the image first before loading it. What you can do to preload the image is as follows: var newBackgroundImage = '/new/image/url.png'; $('') .attr('src', newBackgroundImage) .bind('load', function() { $('div').css('background-image', 'url(' + newBac

[jQuery] Re: format number

2009-10-05 Thread Jonathan Sharp
You can run a parseint on the number: var myInt = parseInt( '15,000', 10); Cheers, - Jonathan http://jqueryminute.com On Sun, Oct 4, 2009 at 7:49 AM, runrunforest wrote: > > cool, but that leads to another problem > > The computer now thinks 15,000 is just 15 instead of fifteen thousands

[jQuery] Re: Modify Dom Element using JQuery

2009-10-05 Thread Jonathan Sharp
Hi Nitin, Something similar to the following should work: $('div.modan > p > a').each(function() { $(this).parent().after( $('').find('li').append( this ).end() ).remove(); }); Cheers, - Jonathan On Mon, Oct 5, 2009 at 10:19 AM, Nitin Gautam wrote: > > I have following code > > > Center >

[jQuery] Re: selectors with xml cdata, parse html string

2009-10-05 Thread Jonathan Sharp
Hi Donnie & Pirco, You can use the .text() jQuery method to get at the CDATA. The error though is coming from how you're selecting the ID: Instead of: html = $.trim($(xml).find("html").text()); alert($("#mydiv", html).attr("id")); Try: // XML is already a XML Document object var cdata

[jQuery] Re: textContent attribute problem with ie

2009-10-05 Thread Jonathan Sharp
What are you trying to do? On Mon, Oct 5, 2009 at 11:37 AM, m.ugues wrote: > > HAllo all. > This piece of code works fine in FIrefox but does not work in IE. > > http://pastie.org/642444 > > The problem is on textContent attribute that in IE is undefined. > > Any workaround? > > Kind regards > >

[jQuery] Re: How to Add A Callback Function to a plugin

2009-10-05 Thread Jonathan Sharp
$.fn.myPlugin = function(options) {options $.extend({ callback: null }, options); // Your plugin if ( $.isFunction(options.callback) ) { options.callback.call(); } }; $('div').myPlugin({ callback: function() { // Your callback code } }); A better approach mig

[jQuery] Re: MooTools and jQuery

2009-10-06 Thread Jonathan Sharp
Hi Dennis, We had some issues with jqModal and unfortunately only the minified source is available so we ended up using the jQuery UI dialog component with great success. (Note the filesize listed on the jQuery UI page is for the entire zip file, the library itself is much smaller) http://jqueryu

[jQuery] Re: format number

2009-10-06 Thread Jonathan Sharp
Doh...thank you Karl for saving my behind. Parse Int won't work...coffee hadn't kicked in yet. Cheers, - Jonathan On Mon, Oct 5, 2009 at 6:58 PM, Karl Swedberg wrote: > > On Oct 5, 2009, at 11:43 AM, Jonathan Sharp wrote: > > You can run a parseint on the number: var myI

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

2007-10-04 Thread Jonathan Sharp
Maybe we can get John on Jay Lenno... -js On 10/4/07, Jake McGraw <[EMAIL PROTECTED]> wrote: > > > On 10/4/07, Karl Swedberg <[EMAIL PROTECTED]> wrote: > > I wonder, Why do I feel like a proud papa every time I see jQuery in the > > wild? It's silly -- I haven't contributed a single line of code

[jQuery] Re: Using multiple versions of jQuery on the same page

2007-10-15 Thread Jonathan Sharp
A URL would be helpful for debugging. -js On 10/15/07, airslim <[EMAIL PROTECTED]> wrote: > > > Actually it does make sense... but its not working, for my case : > var jq = jQuery.noConflict(true); > > throws an arror with firebug -> "jQuery is not a constructor". > >

[jQuery] Re: creating drop down menus with JQuery?

2007-10-16 Thread Jonathan Sharp
$('ul.jd_menu').jdMenu({ activateDelay: 100 }); Should work, here are the other options: showDelay: 150 hideDelay: 550 Sorry there isn't any documentation yet. -js On 10/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hey Chris, Thanks for this recommendation. One thing I'm noticing

[jQuery] Re: creating drop down menus with JQuery?

2007-10-16 Thread Jonathan Sharp
age of an arrow > > height="16" width="16" /> > > but when the user rolls over the image, I'd like the source of the > image to change to something else to indicate the menu is "active". > How do I do this with jdMenu? > > - Dave > &

[jQuery] Re: creating drop down menus with JQuery?

2007-10-17 Thread Jonathan Sharp
and bottom) of the > arrow. It does this for both PC IE and Firefox, although I can't tell > if the distances are the same. Any advice for relatively lining up > the menu directly beneath the image? > > Thanks, - Dave > > > On Oct 16, 3:56 pm,

[jQuery] Re: creating drop down menus with JQuery?

2007-10-17 Thread Jonathan Sharp
c). On your web site, you mention the > plug-in supports relative positioning. Is there an example somewhere > on the site? I can just model my code off the example. > > Thanks for your replies, - Dave > > On Oct 17, 9:29 am, "Jonathan Sharp" <[EMAIL PROTECTED]

[jQuery] Re: creating drop down menus with JQuery?

2007-10-17 Thread Jonathan Sharp
t; - Dave > > On Oct 17, 10:09 am, "Jonathan Sharp" <[EMAIL PROTECTED]> wrote: > > Do you have a URL of a sample page? > > > > -js > > > > On 10/17/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> > wrote: > > > > > > > > &g

[jQuery] Stopping event propagation on non-standard event types

2007-10-17 Thread Jonathan Sharp
$(window) .bind('testEvent', function(e) { alert('1'); e.stopPropagation(); e.preventDefault(); return false; }) .bind('testEvent', function() { alert('2'); }) .trigger('testEvent'); The above code doesn't stop the testEvent from triggering th

[jQuery] Re: continuous action while mouseover

2007-10-17 Thread Jonathan Sharp
helps some. Cheers, -js On 10/17/07, Karl Swedberg <[EMAIL PROTECTED]> wrote: > > Yikes, you'd never be able to tell from my post below that I used to teach > English. Sorry if it confused anyone. Here is what I meant to write (with > corrections inside the asterisks): &g

[jQuery] Re: How do I completely overwrite an event?

2007-10-17 Thread Jonathan Sharp
If you're using jquery-1.2+ you can do the following to just wipe out your events: $('#BLAH').bind('click.myfn', function() { ... }); $('#BLAH').unbind('click.myfn').bind('click.myfn', function() { ... }); This will only replace your event (myfn can be whatever you want) otherwise if you do unbin

[jQuery] Re: Stopping event propagation on non-standard event types

2007-10-17 Thread Jonathan Sharp
I'll take a shot at that as I've been using some custom events in components being built and it'd be a nice behavior to have. And allow for a decoupling of callbacks that we have with developers currently. Cheers, -js On 10/17/07, Jörn Zaefferer <[EMAIL PROTECTED]> wrote:

[jQuery] Re: creating drop down menus with JQuery?

2007-10-17 Thread Jonathan Sharp
lay: 20, >hideDelay: 20 >}); > > but it didn't seem to move the menu > > > http://groups.google.com/group/jquery-en/browse_thread/thread/4793fc4e34ebb5c1 > > - Dave > > On Oct 17, 1:22 pm, "Jonathan Sharp" <[EMA

[jQuery] Re: Stopping event propagation on non-standard event types

2007-10-17 Thread Jonathan Sharp
On 10/17/07, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: > > > Jonathan Sharp schrieb: > > I'll take a shot at that as I've been using some custom events in > > components being built and it'd be a nice behavior to have. And allow > > for a deco

[jQuery] Re: changing the adressbar with javascript

2007-10-18 Thread Jonathan Sharp
You can use hashes (url.php#hash) which won't reload the page. -js On 10/18/07, Simpel <[EMAIL PROTECTED]> wrote: > > > Hi > > I'm almost certain that this one is impossible but maybe someone out > there has a solution > > We just released a site with a lot of ajax functions and now people >

[jQuery] Re: Getting a div with scroll bar to stay scrolled down

2007-10-19 Thread Jonathan Sharp
I think that would be how prototype would do it. Here's how jQuery would: $('#divname').scrollTop( $('#divname')[0].scrollHeight ); Cheers, -js On 10/16/07, Eric <[EMAIL PROTECTED]> wrote: > > > Hi all, > > I have a div that will refresh itself and the scroll bar just won't > stay down. The sol

[jQuery] Re: Getting a div with scroll bar to stay scrolled down

2007-10-19 Thread Jonathan Sharp
On 10/19/07, Dave Methvin <[EMAIL PROTECTED]> wrote: > > > > $('#divname').scrollTop( $('#divname')[0].scrollHeight ); > > I think you meant: > > $('#divname')[0].scrollTop( $('#divname')[0].scrollHeight ); Nope, I was utilizing the scrollTop() method from dimensions. Here's another way that av

[jQuery] Re: jQuery does not work when included in another JS file

2007-10-29 Thread Jonathan Sharp
You're trying to include the file on an unstable DOM. Look at jQuery's "getScript" method. Unfortunately you'd have to have jQuery loaded to use it. Cheers, -js On 10/29/07, DMS <[EMAIL PROTECTED]> wrote: > > > I'm trying to include jQuery from within another javascript file, > using this.. > >

[jQuery] Re: My first plugin, criticisms please

2007-10-29 Thread Jonathan Sharp
It'd be best to post a link to the sample. Most people won't go through the time to copy and paste the above code to execute it. Cheers, -js On 10/29/07, Adrian Lynch <[EMAIL PROTECTED]> wrote: > > > I hope this is ok to do. I've just done my first plugin and I thought > I'd ask for anyone's opi

[jQuery] Re: googlyx.com going too boom nice webiste

2007-11-01 Thread Jonathan Sharp
SPAM -- please ignore this post, banning user... On 11/1/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > http://googlyx.com/ > > hi > i get this website and i joined here its realy cool give a look > http://googlyx.com/ > >

[jQuery] Re: LiveQuery (Discuss Please)

2007-11-02 Thread Jonathan Sharp
I'd cast my vote for leaving it out of core for now. The beauty of jQuery is the leaness of the core. I've had my eye on LiveQuery for quite some time but haven't had a chance to put it into practice for our enterprise toolkit. Performance is a major concern but of greater issue is the inconsistenc

[jQuery] Re: select text for LI

2007-11-02 Thread Jonathan Sharp
I'm sure there's a more elegant solution but you could do something like: // Untested var about = $( 'selector for the li' ).clone().find('> ul').remove().end().html(); Cheers, -Jonathan On 11/2/07, sawmac <[EMAIL PROTECTED]> wrote: > > > I'm trying to select text inside list items. I'm using >

[jQuery] Re: Find first matching previous element relative to (this)

2007-11-05 Thread Jonathan Sharp
.find() only searches down the tree (so child elements of .btn). You may need some combination of .parents() or .siblings(). Cheers, -Jonathan On 11/5/07, nemozob <[EMAIL PROTECTED]> wrote: > > > Hi, I'm trying to target the closets instance of an element with a > class name target but I'm havin

[jQuery] Re: Which child am I?

2007-11-26 Thread Jonathan Sharp
*Untested* Something similar to: var index = $(this).parent().find('> td').index(this); -js On 11/26/07, badtant <[EMAIL PROTECTED]> wrote: > > > Adding a psuedo attribute like "col" with an each function would work. > I was hoping there would be some smart jquery-function for this. > Keep sug

[jQuery] Re: jQuery putting logic in separate file

2007-11-30 Thread Jonathan Sharp
is not valid. I'm not sure if your email program did this but it should be: Cheers, -js On Nov 30, 2007 10:41 AM, bludog <[EMAIL PROTECTED]> wrote: > > I'm new to jQuery, so please bear with me. I'm putting the jQuery > logic in a separate file for the jQuery calendar: > > >

[jQuery] Re: What is the best way to remove an element from a jQuery array?

2007-12-10 Thread Jonathan Sharp
$myCollection = $myCollection.not( $myElem ); Cheers, -Jonathan On Dec 10, 2007 12:00 PM, George <[EMAIL PROTECTED]> wrote: > > Bit of a brain block today, maybe I'm being daft but... > > How do we remove the element referenced by $myElem from a list of > elements in $myElements ? > > Scenario:

[jQuery] Re: File download with jQuery.

2007-12-10 Thread Jonathan Sharp
Hi LT, I don't think you can force a file download with an Ajax request. You may be able to (not certain) with an embeded IFrame that has your url as it's source. Cheers, -Jonathan On Dec 10, 2007 4:06 AM, lagos.tout <[EMAIL PROTECTED]> wrote: > > Hi, > Anyone know how to force the browser to t

[jQuery] Re: Share my trick to Deserialized the response of JQuery Forms

2007-12-11 Thread Jonathan Sharp
Also you may want to namespace your elements (like ) as sometimes setting attributes for elements that have attributes can cause issues. Like setting a value attribute for a caused issues for us in IE 6 when the value was non-numeric -Jonathan On Dec 11, 2007 1:03 PM, Jörn Zaefferer <[EMAIL PRO

[jQuery] Re: [PLUGIN] JAddTo

2007-12-12 Thread Jonathan Sharp
http://www.jasons-toolbox.com/JavaScript/jquery-1.2.1.pack.js 404's..oops! -js On Dec 12, 2007 1:58 PM, Jason Levine <[EMAIL PROTECTED]> wrote: > > > This is my first JQuery plugin in awhile. I needed to put up a series of > "Add To Digg"-style links on the http://www.ShootingForACause.com/20

[jQuery] Re: Binding "this" inside anonymous functions

2007-12-18 Thread Jonathan Sharp
It's a best practice to use var a = this to avoid the scope leak that you mentioned. Cheers, -Jonathan On 12/18/07, Joel Stein <[EMAIL PROTECTED]> wrote: > > > > Also you might want to do "var a = this" so that it doesn't conflict > with any global variables. > > Thanks, Josh. That's what I sus

[jQuery] Re: Can't set CSS left for IE6

2007-12-20 Thread Jonathan Sharp
Hi Nathan, It's kind of hard to debug your example without knowing the context of the html and css. Do you have a sample url? Cheers, -Jonathan On 12/19/07, cfdvlpr <[EMAIL PROTECTED]> wrote: > > > if( $.browser.msie && (jQuery.browser.version < 7.) ) { > $('div##rightShoppingCartButton

[jQuery] Re: help with addClass

2008-01-07 Thread Jonathan Sharp
The problem is that you're binding the click event to the projectLink class on document ready but since no one has clicked the image yet the class isn't present so there are no elements that match the class selector and thus no events bound. You could do something like the code below. This will al

[jQuery] Re: Aspect Oriented Extension for jQuery

2008-01-07 Thread Jonathan Sharp
Also worth noting is that jQuery is not required for this library. It uses the jQuery namespace (jQuery.aop) but this could easily be changed to work with non-jQuery implementations. -js On 1/7/08, PragueExpat <[EMAIL PROTECTED]> wrote: > > > Surfing dzone.com this morning, I came across this pl

[jQuery] Re: Help With Odd ID Search

2008-01-07 Thread Jonathan Sharp
Try escaping the colon: $("#itemForm\\:standards select:last") Cheers, -Jonathan On 1/7/08, npetcu <[EMAIL PROTECTED]> wrote: > > > I'm updating some of the legacy software we have at my company and > changing much of the JavaScript to jQuery. I'm having a bit of > trouble with a few particular

[jQuery] Re: New plugin: simple character counter for textareas

2007-05-08 Thread Jonathan Sharp
On 5/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Per Chris's suggestion, I've made an update to the plugin. Now, you can specify that the container be an existing DOM element (e.g, "#myContainer") or an element type that will be created and inserted in the DOM directly after the textarea

[jQuery] Custom Events & Return Values

2007-05-21 Thread Jonathan Sharp
Most plugins utilize callbacks for providing integration points for end developers. What are people's thoughts in regards to augmenting the event framework to provide a "reverse callback" approach. This would decouple the callbacks and possibly provide a common interface for multiple plugins which

[jQuery] Re: dealing with spam on the jQuery list.

2007-05-21 Thread Jonathan Sharp
here here! -js On 5/21/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote: Gmail deals pretty well with spam, but it has to be told! I mark the spam messages as spam. Gmail gets the idea, and the abuser's mail is all marked spam. If enough people using gmail, just mark the spam as spam... every gmail user

[jQuery] Re: dealing with spam on the jQuery list.

2007-05-22 Thread Jonathan Sharp
Send me your mailing address and I'll send you a yummy spam cake. On 5/22/07, Benjamin Sterling <[EMAIL PROTECTED]> wrote: hmmm... I wonder if there would be a statue raised in my name. -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com <

[jQuery] Re: What is up with the Coach Wei slam of jQuery?

2007-05-24 Thread Jonathan Sharp
as friendly tongue and cheek though the facts and statements are true and are the personal views of Jonathan Sharp and do not necessarily represent Union Pacific or any of it's subsidiaries.] Kindest regards, -Jonathan

[jQuery] Re: off list RE: [jQuery] Re: What is up with the Coach Wei slam of jQuery?

2007-05-24 Thread Jonathan Sharp
On 5/24/07, Chris W. Parker <[EMAIL PROTECTED]> wrote: On Thursday, May 24, 2007 11:29 AM Jonathan Sharp <> said: > Sir, in regards to your comments about jQuery being a car as opposed > to a train I desire to set you straight! jQuery is definitely more > like a tra

[jQuery] Re: off list RE: [jQuery] Re: What is up with the Coach Wei slam of jQuery?

2007-05-24 Thread Jonathan Sharp
On 5/24/07, Jonathan Sharp <[EMAIL PROTECTED]> wrote: On 5/24/07, Chris W. Parker <[EMAIL PROTECTED]> wrote: > > On Thursday, May 24, 2007 11:29 AM Jonathan Sharp <> said: > > > Sir, in regards to your comments about jQuery being a car as opposed > >

[jQuery] Re: massive jquery memory leak in firefox 2.x: load() or empty()?

2007-05-29 Thread Jonathan Sharp
Can you provide an online example? The issue may be in your callback method. Cheers, -Jonathan On 5/29/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I assume this is a memory leak: $(#id).empty(); $(#id).load(url, params, callback) increases more and more the memory usage of firefox eve

[jQuery] Re: Automatic scrolling?

2007-05-29 Thread Jonathan Sharp
What is the HTML structure of your document? Yes, it is possible though. Cheers, -js On 5/29/07, SamCKayak <[EMAIL PROTECTED]> wrote: I have a web page with a user-selectable number of quiz questions. Each question is in a list element. Sometimes users select 250 quiz questions which is a

[jQuery] Re: Block UI when user submits a slow page

2007-05-29 Thread Jonathan Sharp
You can't block across requests. You may achieve your desired effect if your page is within an iframe and the blockui is in the parent document. In short you can block when the user clicks submit but at an arbitrary point in time the browser will clear the screen as it receives the response. So t

[jQuery] Re: Finding first text element

2007-05-29 Thread Jonathan Sharp
I believe it's something like $('div').text(); -js On 5/29/07, DaveG <[EMAIL PROTECTED]> wrote: How do I find the first text-node of a given DOM object? Input: here is some text Output: " some text" Input: Header 1 Output: "Header 1" ~ ~ Dave

[jQuery] Re: menuing recommendation?

2007-05-30 Thread Jonathan Sharp
Hi Jack, jdMenu does just about everything you're looking for. 1) The on/off images are all handled in CSS (unless I misunderstand what you're trying to achieve) The foreground images can be handled with a simple hover in jQuery. 2) There's no reason that this wouldn't work. Doesn't matter if i

[jQuery] Re: .attr( "type" ) returns 'undefined' for element

2007-05-30 Thread Jonathan Sharp
You can also do: $('#Province').is('select') -js On 5/30/07, Gordon <[EMAIL PROTECTED]> wrote: Selects don't have a type so returning undefined is the correct behaviour. I'm assuming you either want to get the value of the select or you want to identify the node type. If you want the value

[jQuery] Re: Still im looking for help

2007-05-30 Thread Jonathan Sharp
validate.js is being included via AJAX and not loaded in time for the document.ready(() call. -js On 5/30/07, Sebastián V. Würtz <[EMAIL PROTECTED]> wrote: Is the same question, can found the problem, if someone can pls helpme, thx too much -- I have a link, it call a wind

[jQuery] Re: Colon Operator

2007-05-31 Thread Jonathan Sharp
I can't speak for John, but I asked about this about a month ago and he was saying it was slated for the 1.2 release. -js On May 31, 2:46 pm, Klaus Hartl <[EMAIL PROTECTED]> wrote: > Rick Faircloth wrote: > > Let's hope so... I want him to be in business > > > when I need him... I'm getting up

[jQuery] Re: dynamic jdMenu help

2007-06-05 Thread Jonathan Sharp
Hi Christ, I hope I can clear up some of the confusion and frustration. jdMenu binds & unbinds it's events on each show/hide which allows for easy updating of a dynamic menu. The documentation is lacking quite a bit so I appologize. I realized that this works best for sub-menus as opposed to a t

[jQuery] Re: dynamic jdMenu help

2007-06-05 Thread Jonathan Sharp
On 6/5/07, Chris Jordan <[EMAIL PROTECTED]> wrote: On Jun 5, 8:53 am, "Jonathan Sharp" <[EMAIL PROTECTED]> wrote: > Hi Christ, Oh, and I am a great guy... but I don't walk on water, Jonathan... lol! :o) Oops! I don't think my coffee had kicked in yet

[jQuery] Re: dynamic jdMenu help

2007-06-05 Thread Jonathan Sharp
On 6/5/07, Chris Jordan <[EMAIL PROTECTED]> wrote: @Ben, Thanks man. I appreciate it. @Brian, I think you've hit the nail on the head, actually. Jonathan's post seems to bear that out. @Jonathan, Thanks I think that's what I was missing when I was doing this in 1.2.1. However, I'm having a

[jQuery] Re: mouseout seems to occur while still in div

2007-06-13 Thread Jonathan Sharp
(untested) You need to do: $('div.a').mouseout(function(e) { if (e.target == this) { $(this).children('span.b').hide(); } }); Cheers, -js On 6/13/07, wswilson <[EMAIL PROTECTED]> wrote: Here is my code: $(function() { $('div.a span.b').hide(); $('div.a h1').

  1   2   >