Re: [jQuery] Getting a development team to use jQuery

2007-03-07 Thread Jonathan Freeman
Hi Jake,

I went through almost the exact same thing this January. My current
project is a very large J2EE financial services project. We have a couple
hundred developers world-wide on the project and when I came aboard we had
no User Interface architect or UI engineer (which, IMHO, almost always
seems to be an after thought in most IT projects).

I was tasked to clean up the interface and bring a common framework for
the html/css/javascript (dom/presentation/behaviors). There was so much
CSS classes and inline javascript events, it was really nuts. HTML tables
within tables within nested tables, yuck. I spent the month of December
creating a DOM API document targeted towards developers and completely
refactored an entire section of the application.

In January, we gathered most of the front-end developers together for an
hour session on the new framework. When I should how they would 'inherit'
presentation and behaviors when simply applying a single CSS class, they
we almost speechless. They had so many questions about the new DOM API and
how I was doing so much with so little code. It was a great session!

I would recommend to refactor a section of your code base, that your
developer know well and show the difference. And I would also provide a
reference DOM API document that would describe your special classes/ids
and its resulting behaviors.

Cheers and good luck!
-jf

--- Jake McGraw <[EMAIL PROTECTED]> wrote:

> Hi all, first let me say I've had an absolutely wonderful time utilizing
> jQuery for all of my javascript tasks. So wonderful, that I've convinced
> my
> boss that we should throw out every one (we're using about 4 or 5) of
> the
> javascript frameworks and random scripts we're currently using and
> consolidate all of our web applications under jQuery. This is a library
> of
> about 60 web applications that have to be re-examined and partially
> rewritten. This Monday, I'm scheduled to give a 30 minute presentation
> to
> the development team about JavaScript and jQuery, essentially a couple
> of
> short tutorials / propaganda session to get them hyped about this
> technology. I'm sending out this email to see if anyone has done
> something
> like this yet, what their experience was like and maybe garner a couple
> of
> pointers or things I should bring up in my presentation.
> 
> Thanks,
> 
> - jake
> > ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 



 

No need to miss a message. Get email on-the-go 
with Yahoo! Mail for Mobile. Get started.
http://mobile.yahoo.com/mail 

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Understanding .index(subject)

2007-02-28 Thread Jonathan Freeman
I'm trying to get my head around this method and I'm getting results
unexpected results. I'm trying to get the index number of the th's that
have the '.asc' class. Any ideas why the second one is returning -1 ?
Thank you! :)





$(document).ready(function() {
$("table.simple").each(function() {
var x = $('th',this).index($('.asc')[0]);
alert(x); 
//first returns 2, as expected
//second returns -1, should it be 0?
});
});







Column 1
Column 2
Column 3




Data 1
Data 2
Data 3
   





Column 1
Column 2
Column 3




Data 1
Data 2
Data 3
   







 

Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html 

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Odd include ordering bug w/ Tablesorter and WrapInner

2007-02-28 Thread Jonathan Freeman
Hmmm, makes sense now with the wrapinner implementation within
tablesorter. Sorry for the confusion, maybe this is better ...

Wrap Inner works:



Wrap Inner does not work:




--- Christian Bach <[EMAIL PROTECTED]> wrote:

> 2007/2/26, Jonathan Freeman <[EMAIL PROTECTED]>:
> >
> > Haven't had the time to debug this but if you include the
> > jquery-plugin-wrapinner.js before the jquery.tablesorter.js (see
> below)
> > then the wrapinner will not work. However, reverse the two and both
> work
> > successfully.
> 
> 
> This is a bit unclear, but the tablesorter plugin provides it's own
> implementation of wrapInner.
> 
> This will be removed  in the next update.
> 
> Best regards
> Christian Bach
> > ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 



 

Sucker-punch spam with award-winning protection. 
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Odd include ordering bug w/ Tablesorter and WrapInner

2007-02-26 Thread Jonathan Freeman
Haven't had the time to debug this but if you include the
jquery-plugin-wrapinner.js before the jquery.tablesorter.js (see below)
then the wrapinner will not work. However, reverse the two and both work
successfully.

Latest sources, same results in ie6/ff2
 






$(document).ready(function() {
$(".message").wrapInner("Hello World.");
$("#sortable").tableSorter({
sortColumn: null,
sortClassAsc: 'headerSortUp',
sortClassDesc: 'headerSortDown',
headerClass: 'header',
stripingRowClass: ['even','odd'],
stripRowsOnStartUp: true
}); 
});







Last Name
First Name
Title




John
Doe
Big guy


Jane
Smith
Boss









 

Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
http://answers.yahoo.com/dir/?link=list&sid=396546091

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Introduction and Masked Input Plugin

2007-02-21 Thread Jonathan Freeman
Very slick plugin, I will for sure use this on my next application. An
enhancement might be to provide a elegant way of handling non fixed length
numbers, such as currency inputs. So I guess its not so much masking, but
pattern matching.

$("#amount").maskedinput("999,999.99");

Nice job!



--- mrcarxpert <[EMAIL PROTECTED]> wrote:

> 
> So I'm reading that FF, Opera, and Safari support the
> DOMCharacterDataModified event.  I'll try to look into this further to
> produce something to handle pastes.  I've never messed with this event
> before, so I'm just shooting the dark here.  Any direction from the
> crowd?
> 
> Josh
> 
> 
> John Resig wrote:
> > 
> > This is so awesome. I love how the backspace key forces you into the
> > correct
> > space.
> > 
> > The tricky bit, that I found, is that if you paste in a block of text
> > (either correct, or incorrect) or if the browser's autocomplete fills
> in
> > an
> > incorrect value it doesn't "correct" it until you hit another key
> inside
> > the
> > field.
> > 
> > Offhand, I think the best way to "solve" this is to have a
> > setInterval(...)
> > check the fields at a specified rate (a couple times a second? or
> whatever
> > seems reasonable). This should solve both issues.
> > 
> > Again, this is really really great, I'll be putting this into place,
> like,
> > tomorrow.
> > 
> > --John
> > 
> > On 2/13/07, mrcarxpert <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >> Hello everyone.  I just wanted to take this opportunity to introduce
> >> myself
> >> and start giving back to the community.
> >>
> >> I've been using jQuery for about 6 months now, and in the process
> I've
> >> produced a few plugins.  As I clean up the code in these I will be
> >> releasing
> >> them.  The first of which is a masked input plugin for
> dates,SSNs,phone
> >> numbers, etc.
> >>
> >> I've made the source code and examples for this project available at
> >> http://digitalbush.com/projects/masked-input-plugin
> >> http://digitalbush.com/projects/masked-input-plugin .
> >>
> >> I've tested this in Firefox and IE7 with the latest jQuery library. 
> If
> >> you
> >> don't mind I'd like to get some feedback on the plugin and how I can
> make
> >> it
> >> better.  I'd also like to know if there are any problems on other
> >> platforms.
> >>
> >> Since this is my first plugin I'm sure I'm missing a few things, but
> I
> >> tried
> >> to follow the patterns from some other plugins on the jQuery site. 
> One
> >> thing I know I'm missing is, what's the best way to ensure that this
> >> masking
> >> is only applied to a text input?  Right now my code returns
> this.each(
> >> /*code*/), but I'm guessing I might want to
> >> this.find("[EMAIL PROTECTED]'text']").each(/*code*/).  What is the most
> >> elegant
> >> way to do this?
> >>
> >> Anyway, I look forward to some feedback.  I'll consider myself
> formally
> >> introduced. :)
> >>
> >> Josh
> >> --
> >> View this message in context:
> >>
>
http://www.nabble.com/Introduction-and-Masked-Input-Plugin-tf3224850.html#a8957581
> >> Sent from the JQuery mailing list archive at Nabble.com.
> >>
> >>
> >> ___
> >> jQuery mailing list
> >> discuss@jquery.com
> >> http://jquery.com/discuss/
> >>
> > 
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> > 
> > 
> 
> -- 
> View this message in context:
>
http://www.nabble.com/Introduction-and-Masked-Input-Plugin-tf3224850.html#a8970941
> Sent from the JQuery mailing list archive at Nabble.com.
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 



 

Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Latest Tablesorter SVN not sorting w/ IE6/7 ?

2007-02-06 Thread Jonathan Freeman
Yes, thank you, much clearer. I will look into writing a custom parser,
since sticking to one data type is not an option. I'm assuming writing
parsers are pretty straight forward.

What confused me, was FF was not throwing any errors. And we do have very
similar tables with numbers and text blocks where IE doesn't throw the
error but render it as expected. 

Thanks for the great plugin, you have no idea how much this has saved on
our server performance. 

Best,
-Jonathan



--- Christian Bach <[EMAIL PROTECTED]> wrote:

> Since there is no documentation regarding the plugin, understanding it
> may
> not be easiest task in the world.
> 
> The plugins tries to automatically understand your column structure by
> just
> looking at the first column of the tbody.
> 
> In this case it thinks hell yes in this column there will only be
> numbers,
> whoopee lets apply the numeric parser for this one mate.
> 
> The error you are getting is when the numeric parser encounters a text
> block
> in that same column.
> 
> So to get it to work stick to just one type of data per column, or write
> a
> custom parser.
> 
> Any clearer?
> 
> /christian
> 
> 
> On 2/6/07, Jonathan Freeman <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > I've been racking my brain on this for hours, and am somewhat
> embarrassed
> > to ask so is there anything in this HTML, I'm doing that should be
> > done differently? IE6/7 throws an error: Number expected. For the life
> of
> > me, I can't see what I'm doing wrong ...
> >
> > Thanks and its a great plugin,
> > -Jonathan
> >
> >
> >
> >
> >
> >
>

> > Need Mail bonding?
> > Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
> > http://answers.yahoo.com/dir/?link=list&sid=396546091
> >
> >   Key Description   123 <#110979aa5acd0956_> Simple Numbers 
> ABC<#110979aa5acd0956_> Simple
> > Letters
> >
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
> >
> > ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 



 

Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives.
http://tools.search.yahoo.com/toolbar/features/mail/

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Latest Tablesorter SVN not sorting w/ IE6/7 ?

2007-02-06 Thread Jonathan Freeman
Hi, 

I've been racking my brain on this for hours, and am somewhat embarrassed
to ask so is there anything in this HTML, I'm doing that should be
done differently? IE6/7 throws an error: Number expected. For the life of
me, I can't see what I'm doing wrong ...

Thanks and its a great plugin,
-Jonathan



 

Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
http://answers.yahoo.com/dir/?link=list&sid=396546091



	
		
			
Key
Description
			
		
		
			

	123

Simple Numbers
			
			

	ABC

Simple Letters
			
		
	


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/