[jQuery] Re: Can jQuery do it again and again?

2008-09-27 Thread Jonathan
If you used each then it should repeat for each DIV with the class of box on the page. $(document).ready(function(){ $("div.box").each(function() { $("div.box> *").wrapAll(''); $("div.box").append(''+''+''+''); }); }); What exactly are you trying to achieve though?

[jQuery] Re: New Google Browser announced

2008-09-03 Thread Jonathan
For those interested in more information on Chrome, checkout their comic book here: http://www.google.com/googlebooks/chrome/ It does a nice job of explaining some of the thinking behind Chrome. I have been playing around with it since yesterday and it's great! Super fast and super simple.

[jQuery] Re: combining results

2008-08-25 Thread Jonathan C. Dietrich
Aug 25, 2008, at 12:14 PM, Karl Swedberg wrote: > > > Hi Jonathan, > > > Try this: > > > var x = $('span'); > > var y = $('div'); > > var z = x.add(y); > > > z.each(function(){alert('yo');}) > > > --Karl > > > _

[jQuery] combining results

2008-08-25 Thread Jonathan C. Dietrich
What is the easiest way to combine the results from multiple jquery objects. for instance if i want to do an operation with each span and div tag x = $('span'); y = $('div'); x.each(function(){alert('yo');}) y.each(function(){alert('yo');}) is there a way that i can combine x and y in z so tha

[jQuery] autocomplete - trigger function on data retrieval?

2008-07-21 Thread Jonathan Vanasco
does anyone know if it is possible to trigger a function on an autocomplete retrieval ( using this autocomplete library http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/ ) example: i'm currently using result() to store the id of a currently selected item in a hidden field when a u

[jQuery] [autocomplete] trigger function on data retrieval?

2008-07-17 Thread Jonathan Vanasco
I tried posting this yesterday, and it didn't seem to post. Apologies if two messages appear. I need to catch the data retreival - even on null sets - from autocomplete. In my example: I am using autocomplete to fetch items from a database. When an option is selected, a result() function sets

[jQuery] [autocomplete] trigger function on data retrieval?

2008-07-16 Thread Jonathan Vanasco
does anyone know if it is possible to trigger a function on an autocomplete retrieval ( using this autocomplete library http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/ ) example: i'm currently using result() to store the id of a currently selected item in a hidden field when a u

[jQuery] Re: Finding position among siblings

2008-07-15 Thread Jonathan Sharp
$('div').click(function() { // Will give you the index out of just the DIV tags var index = $(this).parent().find('> ' + this.tagName).index(this); // Will give you the index out of all siblings var index = $(this).parent().find('> *').index(th

[jQuery] Re: AJAX not working

2008-07-11 Thread Jonathan Sharp
Hi jbhat, Can you post a URL? It's nearly impossible to debug or provide any feedback from reading the code below. Cheers, -Jonathan On Fri, Jul 11, 2008 at 2:51 PM, jbhat <[EMAIL PROTECTED]> wrote: > > I am having trouble with AJAX: > > In document ready i hav

[jQuery] Re: internship with a programmer - wanna work for free to learn

2008-07-11 Thread Jonathan Sharp
agree that the four years seems like a long time but you have to ask yourself the question, "in four years would I rather be an MD or working in the technology field". There will be moments of doubt along the way (I turned in 2 weeks notice and walked out that day thinking "WHAT THE HECK HAVE I DONE!") but you have to remind your self at that point what you're working towards. So good luck! Cheers, -Jonathan

[jQuery] Re: internship with a programmer - wanna work for free to learn

2008-07-10 Thread Jonathan Sharp
ng. I'd seriously look at an academic approach as those fields tend to be heavily research based and technically intense by means of hardware / software experience. Cheers, -Jonathan On Thu, Jul 10, 2008 at 1:34 PM, joomlafreak <[EMAIL PROTECTED]> wrote: > > Hi > > I am tryi

[jQuery] Re: Running a loop for array numbers

2008-07-10 Thread Jonathan Sharp
Hi Johnee, Here's one approach (untested): var $e = $('.equipment'); $.each(['1', '2', '5', 'x'], function(i, k) { $e.find('a.i-right' + k) .filter(function(i) { return ( i > 0 && i < 9 );

[jQuery] Re: Running a loop for array numbers

2008-07-08 Thread Jonathan Sharp
Hi Johnee, Another approach would be: $('.equipment a.i-right1').each(function(i) { if ( i > 0 && i < 9 ) { $(this).hide(); } }); or this would work too: $('.equipment a.i-right1').filter(function(i) { return ( i > 0 && i < 9

[jQuery] Form Plugin - Feature Request

2008-06-14 Thread Jonathan Vanasco
The Form Plugin is pretty rad... however I tried to patch some functionality in it, and failed. All I'm trying to do is make the options persist into the success callback - just like they do in the beforeSubmit callback. This way some information can be stashed on dynamically generated javascri

[jQuery] Re: innerFade and delay? or Cycle and drupal 5.x ?

2008-05-28 Thread jonathan
On May 29, 9:20 am, "Mr.Morton" <[EMAIL PROTECTED]> wrote: > Does anybody have Cycle running with Drupal/Jquery ? I've got Jquery cycle working on Drupal 5.7, using: Drupal 5.7 Jquery Update module 5.x-1.0 jquery.cycle 2.20 It's working fine using the Fade transition and paging on Firefox and Sa

[jQuery] Re: jQuery TShirt

2008-05-09 Thread Jonathan Sharp
Isn't it more like? alert( $('people:female').find('girlfriend').length == 0 ? 'l33t' : 'normal' ) -js On Fri, May 9, 2008 at 11:11 AM, Brandon Aaron <[EMAIL PROTECTED]> wrote: > Something like: > > $('people:female').find('girlfriend') => [] > > -- > Brandon Aaron > > > On Fri, May 9, 2008 at

[jQuery] Re: jQuery Conference

2008-05-07 Thread Jonathan Sharp
Just throwing this out there, but I'm guessing it may be similar to the one day jQuery Camp '07 that was in Boston, MA following The Ajax Experience East conference (http://theajaxexperience.com). TAE is scheduled for Sept/Oct of this year. Cheers, -Jonathan On Wed, May 7, 2008 at 2:

[jQuery] Re: Finding a matching class to a variable

2008-02-22 Thread Jonathan Sharp
Hi Philip, I'm not sure if you're attempting a partial match but you may also find the following works: $('div.' + $i) Cheers, -Jonathan On Fri, Feb 22, 2008 at 8:40 PM, Karl Swedberg <[EMAIL PROTECTED]> wrote: > > Hi Philip, > > What you need to do in

[jQuery] Re: window resize event causes IE6 & IE7 to hang

2008-02-21 Thread Jonathan Sharp
Hi Sean, I'm guessing what's happening is as you resize the div to the height of the window - 270 it expands the document height which triggers another resize. Do you have a URL to this page? Cheers, -Jonathan On 2/21/08, SeanR <[EMAIL PROTECTED]> wrote: > > > Hi al

[jQuery] Re: .is() behaviour

2008-02-21 Thread Jonathan Sharp
hould do what you're looking for Cheers, -Jonathan On 2/20/08, hartshorne <[EMAIL PROTECTED]> wrote: > > > Hi, I'm new to jQuery, and found something unexpected. With something > like this: > > >Exit >Open > > >

[jQuery] How do I remove/delete a function?

2008-02-14 Thread Jonathan
Maybe I'm missing something, but how would I remove a jQuery function after it's no longer in use? I'm using an ajax driven site, so the page never is reloaded, so do all the jQuery functions I define just stay there? Does this cause memory issues? Is there a way to remove it after it's not longer

[jQuery] Re: copy values to an array

2008-02-04 Thread Jonathan Sharp
Hi Paul, This should do the trick: $('li').each(function(i){ array1[ Math.floor( i / 3 ) ] = $(this).html(); }); Cheers, -Jonathan On 2/4/08, Paul Jones <[EMAIL PROTECTED]> wrote: > > > I know the following would work if I wanted to copy the values of *each*

[jQuery] Re: Another jdMenu problem... IE specific...

2008-02-04 Thread Jonathan Sharp
Gah! That doesn't sound like much fun! Get better! (I hear reading a jQuery book or two does wonders for the recovery!) Cheers, -Jonathan On 2/4/08, Chris Jordan <[EMAIL PROTECTED]> wrote: > > Jonathan, > > Thanks for the update! Sorry I didn't see it until now.

[jQuery] Re: Err The Blog on jQuery

2008-02-01 Thread Jonathan Sharp
Minor typo: $('class').bind('click', function(){//whatever}); should be .class -js On 2/1/08, Alexandre Plennevaux <[EMAIL PROTECTED]> wrote: > > > A good read _ There was a very useful comment about a less known feature > of jquery: namespacing events. > > I've updated the wiki with it: >

[jQuery] Re: Another jdMenu problem... IE specific...

2008-01-31 Thread Jonathan Sharp
Hi Chris, Just wanted to give you a heads up, I've released jdMenu 1.4.0 at http://jdsharp.us/jQuery/plugins/jdMenu/1.4.0 (though I haven't posted notice of this yet) It's been updated to work with jQuery 1.2.2 and the latest dimensions plugin. Cheers, -Jonathan On 1/24/0

[jQuery] Re: [SITE SUBMISSION] Sapitot Creative

2008-01-30 Thread Jonathan Sharp
Love it! On 1/30/08, motob <[EMAIL PROTECTED]> wrote: > > > Sapitot Creative is a Design firm that recently redesigned their > website. jQuery is being used to enhance page transitions and to give > a little flair to the print and web portfolio sections. What is real > interesting is the unconvent

[jQuery] Re: •.¸¸.•´´¯`••._.•> <((((º> How To Create Wealth????

2008-01-30 Thread Jonathan Sharp
User is banned. -js On 1/30/08, ++ Corn Square ++ <[EMAIL PROTECTED]> wrote: > > > Most Forex traders loose money, don't be one of them > Forex made easy is as simple as you would want it to be. ... > Forex can be made easier for beginners to understand it and here's how:- > > http://tiniuri

[jQuery] Re: Another jdMenu problem... IE specific...

2008-01-24 Thread Jonathan Sharp
jQuery releases. Cheers, -Jonathan On 1/24/08, Chris Jordan <[EMAIL PROTECTED]> wrote: > > Karl, > > I ran the site through the validator you linked to (thanks for that), but > my problem still remains. I should note that there are still 43 errors, but > they're thi

[jQuery] Re: ups shipping quotes - sometimes a 5 -10 second delay and timing out

2008-01-24 Thread Jonathan Sharp
Hi Nathan, Is this related to jQuery? Cheers, -Jonathan On 1/24/08, cfdvlpr <[EMAIL PROTECTED]> wrote: > > > How do you get shipping quotes from ups? Do you ever have issues with > ups never returning a shipping rate? If so, what did you do to > workaround this? >

[jQuery] Re: Feb 12 IE6 Forced Update

2008-01-24 Thread Jonathan Sharp
Do you have a link to this handy? Cheers, -Jonathan On 1/23/08, cfdvlpr <[EMAIL PROTECTED]> wrote: > > > Does anyone know about how many IE6 users this will affect? After Feb > 12, 2008 is it likely that your IE 6 users will drop much? If you > have an ecommerce site tha

[jQuery] Re: Using parent within img toggle

2008-01-24 Thread Jonathan Sharp
Hi Mang, For your reading pleasure: http://jqueryminute.com/blog/jquery-parent-vs-parents/ Cheers, -Jonathan On 1/23/08, Mang <[EMAIL PROTECTED]> wrote: > > > Thanks, worked great - I can tell I've got some learnin' to do. I > don't understand how you knew

[jQuery] Re: sum of table rows

2008-01-23 Thread Jonathan Sharp
Thanks, updated the entry with a link to that post! Cheers, -Jonathan On 1/23/08, Dan G. Switzer, II <[EMAIL PROTECTED]> wrote: > > > Jonathan, > > >Hey Dan, > > > >Great plugin! http://jqueryminute.com/blog/jquery-calculate-plugin/ > > Thanks! I a

[jQuery] Re: Using parent within img toggle

2008-01-23 Thread Jonathan Sharp
Try: $(this).parents('tr:eq(0)').css('background-color', 'white'); Cheers, -Jonathan On 1/23/08, Mang <[EMAIL PROTECTED]> wrote: > > > I have a fairly simple app: > > > > ... > > > tr> > tr> > tr>

[jQuery] Re: how to make page onload quicker

2008-01-23 Thread Jonathan Sharp
you can change .merchantClass to the tag.class like div.merchantClass it will be faster. If you know that .merchantClass is within a div in your row $('> div > div.merchantClass', this) would be even faster yet. Hope this helps! -Jonathan On 1/23/08, Potluri <[EMAIL PROTECT

[jQuery] Re: sum of table rows

2008-01-23 Thread Jonathan Sharp
Hey Dan, Great plugin! http://jqueryminute.com/blog/jquery-calculate-plugin/ Cheers, -Jonathan On 1/23/08, Dan G. Switzer, II <[EMAIL PROTECTED]> wrote: > > > >I just realized the description text on the page is completely wrong! > It's > >for another plug-in an

[jQuery] Re: Inserting element into jQuery object

2008-01-10 Thread Jonathan Sharp
Hi Josh, Most likely you'll have to create a new jQuery object. Take a look at the slice method to grab your elements: var divs = $('selector'); // [div1, div2] var divs = $( [ divs.slice(0, 1), newdiv, divs.slice(1, 2) ] ); // divs = [div1, newdiv, div2] Cheers, -Jonathan O

[jQuery] Re: why not get value using $('#wrapper').attr('offsetHeight') in firefox?

2008-01-09 Thread Jonathan Sharp
Try $('#wrapper').height() Also please note the difference in your ID's. With the jQuery code you're referencing 'wrapper' and with the DOM methods you're referencing 'Wrapper'. Cheers, -Jonathan On 1/9/08, nightelf <[EMAIL PROTECTED]> wrote:

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

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

2008-01-07 Thread Jonathan Sharp
tr("src", "images/"+img+"_down.png"); $("#"+img+"_up2").attr("src", "images/"+img+"_down2.png"); $(this).parent().addClass('linkActive'); // Cancel our event so it doesn't trigger

[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.versio

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

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

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

[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

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

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

[jQuery] Re: LiveQuery (Discuss Please)

2007-11-02 Thread Jonathan Sharp
but the browser limitations and the sheer size of data we internally have to deal with on a single page. I would theorize that the majority of jQuery users have onReady event binding. For those that have dom manipulation it's probably pretty light and thus the benefit of LiveQuery isn't realized.

[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: 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: 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: 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: 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: 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: 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: 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
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: 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: 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] 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: 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] 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
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-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-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: 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: [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: 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] 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: 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] 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: 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: 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] 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: confusing children() behavior

2007-09-10 Thread Jonathan Chaffer
esults. Because only the string "Google" is in the anchor, this is what is returned. -- Jonathan Chaffer Technology Officer, Structure Interactive

[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] 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: 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, rayfideli

[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: 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] 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: 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: 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: 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-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: 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: 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: :eq vs :nth?

2007-08-04 Thread Jonathan Chaffer
- thus they will be "deprecated". Is that not correct jQuery gurus? They'll be deprecated in 1.1.4, removed in 1.2. And really easy to re-add via a plug-in! -- Jonathan Chaffer Technology Officer, Structure Interactive

[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: 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: Help with book example - alternating row colors

2007-07-30 Thread Jonathan Chaffer
ndex % 2 == 1){ $(this).addClass('bottom-border'); }; That will add the "bottom-border" class to the second (last) item of each group. You could insert this clause right after the existing .addClass() line. -- Jonathan Chaffer Technology Officer, Structure Interactive

[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: switch between two class - Basic Issue

2007-07-25 Thread Jonathan Sharp
Do you have a url to a sample page we could look at? -js On 7/25/07, Mario Moura <[EMAIL PROTECTED]> wrote: Thanks Jonathan Almost but still not working $('.collapsible .collapsed').bind('click', function() { $(this).toggleClass('collapsible').

[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: 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: Find missing HTML tags

2007-07-19 Thread Jonathan Sharp
I think you're going to have to attack that server side as the html is interperted browserside into the dom tree which automatically closes tags as necessairy. -js On 7/19/07, sozzi <[EMAIL PROTECTED]> wrote: I have a rather odd problem where I am looking for potentially missing html tags du

[jQuery] Re: AJAX download progress

2007-07-18 Thread Jonathan Sharp
Gordon, That's really slick! -js On 7/18/07, Gordon <[EMAIL PROTECTED]> wrote: Finally got my net access on my dev machine back. :) Here's my code. var myTrigger; var progressElem = $('#progressCounter'); $.ajax ({ type: 'GET', dataType: 'xml', ur

<    1   2   3   4   >