[jQuery] Re: book learning jquery appendix C,closure question

2007-07-14 Thread Jonathan Chaffer
rivate.html for why innerFun2() can be considered a "private" variable of globVar. What you're missing here is the return statement of the outer function. A reference to the inner function is returned, so it can be called by the outside code. -- Jonathan Chaffer Technology Officer, Structure Interactive

[jQuery] Re: book learning jquery appendix C,closure question

2007-07-14 Thread Jonathan Chaffer
nerFun(); // Alerts "4" var globVar2 = outerFun(); globVar2.innerFun(); // Alerts "1" globVar2.innerFun2(); // Alerts "3" globVar2.innerFun(); // Alerts "4" -- Jonathan Chaffer Technology Officer, Structure Interactive

[jQuery] Re: Interested in porting another DOM creation plugin?

2007-07-12 Thread Jonathan Sharp
Turns out he works for the same company I do... I'll see what I can do... -js On 7/12/07, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: This looks really interesting: http://www.zachleat.com/web/2007/07/07/domdom-easy-dom-element-creation/ Of course his proposal for porting doesn't quite work o

[jQuery] Re: Setting DOM values (non-attributes)

2007-07-12 Thread Jonathan Sharp
Take a look at the dimensions plugin. (www.visualjquery.com -> Plugins -> Dimensions) -js On 7/12/07, John Farrar <[EMAIL PROTECTED]> wrote: I want to achieve this with jQuery. document.getElementById('postedText').scrollTop = document.getElementById('postedText').scrollHeight - document.ge

[jQuery] Re: jquery book

2007-07-11 Thread Jonathan Chaffer
rote: 2. jQuery Reference Guide is a 250+ page complete reference to the jQuery API and selector expressions (up to v1.1.2), plus individual chapters on the Dimensions plugin, Form plugin, and creating your own plugin (and 3 appendices). This one should be available beginning of August. --

[jQuery] Re: Fwd: [jQuery] Re: allow no more than 3 checkboxes checked

2007-07-10 Thread Jonathan Sharp
You're missing your return statement in this revised version (for the noob's: which is needed to cancel the event) -js On 7/10/07, Sean Catchpole <[EMAIL PROTECTED]> wrote: On 7/10/07, cfdvlpr <[EMAIL PROTECTED]> wrote: > That works very well. Could you also grey out the unchecked > checkbox

[jQuery] Re: Syntactic sugar for checking whether an element exists

2007-07-10 Thread Jonathan Chaffer
out planning for it), and as a bonus creates a little namespace in the function where you can declare local variables. -- Jonathan Chaffer Technology Officer, Structure Interactive

[jQuery] Re: "Really" removing items from the DOM

2007-07-09 Thread Jonathan Chaffer
the object still has access to the element. It is removed from the DOM, though, so a later call to: $('#myElement') will match no elements. It will be an empty jQuery object. -- Jonathan Chaffer Technology Officer, Structure Interactive

[jQuery] Re: Some fun with jQuery

2007-07-06 Thread Jonathan Sharp
I absolutely love it! That is so slick! -js On 7/6/07, Remy Sharp <[EMAIL PROTECTED]> wrote: Since it's Friday - here's something I made for fun with jQuery: Have you ever looked at a picture on the Internet, say on Flickr or Facebook, and thought it would look great with a speech bubble wi

[jQuery] Re: [off-topic] how do you guys organize your project folders?

2007-06-20 Thread Jonathan Sharp
I use svn for everything and typically am domain centric with two projects, one for the site itself and one for stuff related to the project (PSD, documentation, etc). So my two svn projects are named as such: example.com branches tags trunk example.com_Project As

[jQuery] Re: Selectors & Context

2007-06-20 Thread Jonathan Sharp
On 6/20/07, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: Jonathan Sharp wrote: > On 6/20/07, *Jörn Zaefferer* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> > wrote: > > > Jonathan Sharp wrote: > > I have the following: > > > &

[jQuery] Re: Selectors & Context

2007-06-20 Thread Jonathan Sharp
On 6/20/07, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: Jonathan Sharp wrote: > I have the following: > > $('').find('.foo').doSomething(); Why not simply this? Well, the actual implementation is a little more complex. But basically it can be expande

[jQuery] Selectors & Context

2007-06-20 Thread Jonathan Sharp
I have the following: $('').find('.foo').doSomething(); This only works if I wrap my element in another div: $('').find('.foo').doSomething(); I've tried: $([]).add('').find('.foo').doSomething(); Thoughts? -js

[jQuery] Re: jQuery book status?

2007-06-20 Thread Jonathan Chaffer
cause we're actually ahead of schedule. :-) Jonathan and I are reviewing the final proofs now and are hoping to be finished by the end of this week. The publisher estimates that the hard-copy book will take 3 weeks to produce once we have our final edits in (so that puts the release dat

[jQuery] Re: Tablesorter woes

2007-06-15 Thread Jonathan Freeman
ere right now and it didn't work. > > -Original Message- > From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Jonathan Freeman > Sent: Friday, June 15, 2007 8:47 AM > To: jquery-en@googlegroups.com > Subject: [jQuery] Re: Tablesorter woes &

[jQuery] Re: Tablesorter woes

2007-06-15 Thread Jonathan Freeman
? --- Andy Matthews <[EMAIL PROTECTED]> wrote: > I've used tableSorter successfully in another project but for some > reason > it's defeating me in this one. I've got some code to display, but I > can't > put a working version up as it's for an admin section. Here's the > portions > of the cod

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

[jQuery] Re: Macrumors running live udpates of WWDC

2007-06-11 Thread Jonathan Freeman
Actually, since Safari was introduced 3.5 years ago and Apple ships around 5 million Macs/year now, 18 million Safari uses doesn't sound too far off. What's really going to be interesting is Apple has just expanded Safari to two new platforms, Windows and iPhone. This should expand Safari market

[jQuery] Re: The .ready() event

2007-06-08 Thread Jonathan Chaffer
t fires. The .ready() method of jQuery registers code that will run when the DOM is ready, which could well be quite a bit before the "onload" event occurs for the page. It is possible to attach an onload handler to an individual element (e.g. image) though, which can be useful. -- Jonathan Chaffer Technology Officer, Structure Interactive

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

[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
osed to a top level menu so what you'll need to do is call $(...).jdMenu() at the end of your ajax call after you've appended your MenuLists. Cheers, -Jonathan On 6/4/07, Chris Jordan <[EMAIL PROTECTED]> wrote: Hi folks, I'm in need of some help using jdMenu. I've g

[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: 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: .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: menuing recommendation?

2007-05-30 Thread Jonathan Sharp
k. Doesn't matter if it's text or images in the top level. 3) This is also addressed and fixed in jdMenu. Cheers, -Jonathan On 5/29/07, Jack Killpatrick <[EMAIL PROTECTED]> wrote: Hi All, I'm looking for a jquery based menuing plugin ala: http://jdsharp.us/jQuery/plu

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

[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: 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: 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: 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: 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] 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: 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] Re: jquery.com - hacked?

2007-05-06 Thread Jonathan Chong
shrules.com www.learningjquery.com On May 6, 2007, at 4:42 PM, Matt Stith wrote: for some reason im leaning toward dreamhost, they have a bad rep when it comes to these things -- Jonathan Chong http://jonathanchong.com/ http://arsenal-mania.com/

[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: 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] jQuery Site: EverBank.com

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

[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] $(...).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: 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] 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: behaviors?

2007-04-26 Thread Jonathan Sharp
lick", function() { $(this).load("menu.html"); }); Cheers, -Jonathan On 4/26/07, Jonathan Chaffer <[EMAIL PROTECTED]> wrote: On Apr 26, 2007, at 17:18 , Starbow wrote: > I was just watching the video of John Resig at Yahoo, and in one slide > he talked about behaviors,

[jQuery] Re: behaviors?

2007-04-26 Thread Jonathan Chaffer
On Apr 26, 2007, at 17:18 , Starbow wrote: I was just watching the video of John Resig at Yahoo, and in one slide he talked about behaviors, as jquery bindings that act like css rules and apply themselves to html fragments asynchronously loaded into the page. The code sample looked like this:

[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] 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: 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] 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: 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-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: table paging and sorting together

2007-04-10 Thread Jonathan Chaffer
On Apr 10, 2007, at 16:05 , Paul Malan wrote: Jonathan, thanks for taking time to reply with an excerpt from the book. I have to assume that for potentially large recordsets my best bet is to hand off to the server for sorting/paging rather than storing thousands of rows browser-side. Would

[jQuery] Re: table paging and sorting together

2007-04-09 Thread Jonathan Chaffer
owser. -- Jonathan Chaffer Technology Officer, Structure Interactive

[jQuery] Re: ANNOUNCE: New jQuery Book Available for Pre-Order!!

2007-04-09 Thread Jonathan Chaffer
ferings. Here's one with the same cover price: http://www.packtpub.com/drupal/book They tend to offer the eBook either separately or bundled with the print edition at a reduced cost. -- Jonathan Chaffer Technology Officer, Structure Interactive

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

<    1   2   3   4