Re: [jQuery] Sorting items in jQuery pseudo-array

2007-03-27 Thread Chinmay Kulkarni
Eric, I need to implement a simliar funcnality, and was looking at the trac. What throws me offis that thetatus of the Bug was set to 'review' a few hours ago. Any *more* magical way to do this coming up? Erik Beeson wrote: > > Even easier than that: > > jQuery.fn.sort = function() { > re

Re: [jQuery] Disable enter button submitting form

2007-03-27 Thread Klaus Hartl
Shelane Enos schrieb: > The reason being that when I have an autocomplete field the user will start > type something in the field and can arrow down and hit enter when on the > selected item. However, if they have "outtyped" the field and there is no > option select (none returned in the autocompl

Re: [jQuery] winding - my first experiment

2007-03-27 Thread Abel Tamayo
Looks great, but it's not jQuery, is it? But as a business, I think it has a future. On 3/26/07, Sean O <[EMAIL PROTECTED]> wrote: mmm... very WinLike... like :) http://www.winlike.net/ And potentially nicer! (especially w/jQuery hooks) _ SEAN O http://www.sean-o.com Roman Borisog

[jQuery] Star Rating Plugin Tutorial?

2007-03-27 Thread Will
Hi, Is there a star rating plugin tutorial around? I have it all working fine in test docs but I have questions about production implementation that I'm hoping are already answered in a tutorial so I don't need clog the list with it. :) Thanks, Will

Re: [jQuery] Sorting items in jQuery pseudo-array

2007-03-27 Thread Chinmay Kulkarni
I tried using the code, as suggested by Eric, but it doesn't work. In my case, I'm trying to sort a bunch of divs based on the value of a span inside each. However, the sorting is completely random! I don't know what I'm doing wrong! jQuery.noConflict(); $j = jQuery; riggit = { /*...*/

[jQuery] Move to an anchor

2007-03-27 Thread Peter Bengtsson
Can I move to an anchor with jQuery? I.e. the equivalent of what the browser does with: footer -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/di

Re: [jQuery] Sorting items in jQuery pseudo-array

2007-03-27 Thread Erik Beeson
Completely random sorting usually means there's something wrong with your comparing function. Try adding some debugging output in your comparing function and make sure you're comparing the correct values and get the expected result there. If you actually have null values in that first if statement

[jQuery] Help with the contextMenu plugin

2007-03-27 Thread Torbjorn Tornkvist
Hi, I'm using the great contextmenu plugin and wonder how I can update/re-init it on the fly ? I'm not sure if the code below makes any sense but basically, what I want to do is to get a new menu value from a input-text field, add it to the context-ul-menu and then re-init the contextMenu plugin.

Re: [jQuery] utf-8 and jquery

2007-03-27 Thread amircx
when i do submit , ive pasted the action headers from firebug Response Headers DateTue, 27 Mar 2007 18:02:01 GMT Server Apache/2.0.52 (CentOS) Expires Thu, 19 Nov 1981 08:52:00 GMT Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma no-cache Content-Encodin

Re: [jQuery] Move to an anchor

2007-03-27 Thread Erik Beeson
You want ScrollTo or ScrollToAnchors from Interface: http://interface.eyecon.ro/ --Erik On 3/21/07, Peter Bengtsson <[EMAIL PROTECTED]> wrote: > Can I move to an anchor with jQuery? > I.e. the equivalent of what the browser does with: > footer > -- > Peter Bengtsson, > work www.fry-it.com > home

[jQuery] jquery.com site problems?

2007-03-27 Thread Rob Desbois
Is it just me or has jquery.com been struggling a little lately? Just received this: *Fatal error*: Call to a member function selectRow() on a non-object in * /home/jqdocs/public_html/includes/User.php* on line *829 *Also seems to be having frequent database issues and occasionally not respond

Re: [jQuery] jquery.com site problems?

2007-03-27 Thread Erik Beeson
> Perhaps too popular for its own good ;-) I believe that's exactly the problem. The powers that be are working to improve the situation. Everybody can help out by making liberal use of the donate button :) --Erik ___ jQuery mailing list discuss@jquery

[jQuery] IE6 Performance Profiling?

2007-03-27 Thread Remy Sharp
Does anyone know how and with what I can performance profile in IE6? Firefox and IE7 are fine, it's just IE6 takes well over 10 seconds to load a heavily jQuery'ed page, and I need to dig around and find where the performance bottlenecks are. Obvious things I'm starting with is removing any clas

[jQuery] Accrodian - background image changing on select (one working, other's are not)

2007-03-27 Thread pjhawksr
I'm trying to get an accordian to work so that when the toggle link is selected the background image changes. I have it working on the first item in the accordian, but the remaining 3 do not change their background image. Any ideas? P.S. How do I get the accordian to stay open and only close when

[jQuery] JQuery vs prototype

2007-03-27 Thread Denis
can you help me? what benefits of JQuery vs prototype?(http://www.prototypejs.org/) ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Accrodian - background image changing on select (one working, other's are not)

2007-03-27 Thread pjhawksr
Duh! My background images were not changed on the other 3 :) Sometimes writing the question helps you figure out your own problem. However, my second question is how do I get the accordian to stay open and only close when the toggle link is click (not automatically closing when another item in t

[jQuery] PEAR using jQuery...

2007-03-27 Thread Clodelio C. Delfino
Just wanted to share... c",) knock..knock, Rey kindly add to the site list in case not yet included. excerpt: Anyways, the first point I wanted to make in this post was: - http://pear.php.net is now using jQuery for some sections of the administration area in order to view user notes/comments and

[jQuery] Field Has no Properties

2007-03-27 Thread Abdallah
I have a question about autocomplete (interface)... and ajax form binding when I load a form (which has an autocomplete input) using Ajax ($.get), I get the error: field has no properties. the weird thing, when I 'inspect' the field using firebug, it works So I guess until the form is "inspected"

Re: [jQuery] JQuery vs prototype

2007-03-27 Thread Brandon Aaron
Hi Denis, Best thing you can do is experiment with both and even throw in some of the others (YUI, Dojo, Mochi, mootools) and see which style fits you best. The benefits of using one over the other are going to vary differently for different people and different projects. Once you play around wit

Re: [jQuery] JQuery vs prototype

2007-03-27 Thread Rob Wilkerson
I was a long time prototype user and have been taking jQuery for a spin recently. I wrote a little about what I think at http://musetracks.instantspot.com/blog/index.cfm/2007/3/22/jQuery-isSmooth. On 3/27/07, Brandon Aaron <[EMAIL PROTECTED]> wrote: Hi Denis, Best thing you can do is experime

Re: [jQuery] Any regular expression gurus here?

2007-03-27 Thread Geoffrey Knutzen
"(I really need to get a regex book to read)" Does anyone have a recommendation for a good regex book? I could really use a good reference Thanks _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kenneth Sent: Monday, March 26, 2007 7:25 PM To: jQuery Discussion Sub

Re: [jQuery] JQuery vs prototype

2007-03-27 Thread Matt Kruse
> what benefits of JQuery vs prototype?(http://www.prototypejs.org/) In reality, most js frameworks offer similar core functionality. What you're usually comparing is syntax and general coding approach, which vary quite a bit based on personal preferences. All frameworks are going to let you add a

Re: [jQuery] JQuery vs prototype

2007-03-27 Thread Klaus Hartl
Matt Kruse schrieb: > 3) Prototype is tied closely to the Ruby on Rails community. If you use Ruby > on > Rails, definitely choose Prototype. We're currently using Rails together with jQuery and I can't second that. Although you loose some of the super-easy to implement helpers (which produce o

Re: [jQuery] JQuery vs prototype

2007-03-27 Thread Karl Swedberg
On Mar 27, 2007, at 10:47 AM, Matt Kruse wrote: 3) Prototype is tied closely to the Ruby on Rails community. If you use Ruby on Rails, definitely choose Prototype. Outside of that community I see no reason to choose Prototype over other frameworks like jQuery or even Moo. If you must have a

Re: [jQuery] Any regular expression gurus here?

2007-03-27 Thread Jake McGraw
For learning how and why regular expressions work and how to use Regular Expressions with grep, Perl, Java, .NET and PHP: Mastering Regular Expressions 3rd Ed. by J. Friedl For learning JavaScript Regex: JavaScript: The Definitive Guide, Fifth Edition By David Flanagan Both have proved quite us

Re: [jQuery] Problem with text() and html() in IE6

2007-03-27 Thread Smith, Allex
Sorry to bug folks... but does anyone have a suggestion for me on this one or a hint as to where to look? I'm a wee bit lost. Thanks Allex -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Smith, Allex Sent: Monday, March 26, 2007 3

Re: [jQuery] Problem with text() and html() in IE6

2007-03-27 Thread Mike Alsup
What exactly is failing? It works fine for me in ie6. What is the value of your 'value' variable? Mike On 3/27/07, Smith, Allex <[EMAIL PROTECTED]> wrote: > > > Sorry to bug folks... but does anyone have a suggestion for me on this one > or a hint as to where to look? > I'm a wee bit lost. > >

Re: [jQuery] Problem with text() and html() in IE6

2007-03-27 Thread Smith, Allex
Thanks for the quick reply Mike. You confirm that I'm completely nuts. I stripped out all the other code and found that it does indeed work in IE6. It appears that I have some issues with other code involved with the function I am running, issues that do not appear in FF, but crop of in IE. Tha

Re: [jQuery] Sorting items in jQuery pseudo-array

2007-03-27 Thread Chinmay Kulkarni
Eric, Right as always. Had to add some sprucing code to the html() returned. Some values gave a NaN when parseInt-ed. Thanks again for the help. Liking jQuery more by the day! Regards, Chinmay Erik Beeson wrote: > > Completely random sorting usually means there's something wrong with > your

Re: [jQuery] Problem with text() and html() in IE6

2007-03-27 Thread Mike Alsup
> You confirm that I'm completely nuts. IE6 does that to all of us. :-) > BTW Your Taconite plugin makes me very happy. Glad to hear it! ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] jquery.com site problems?

2007-03-27 Thread Richard Thomas
How much bandwidth a month/what type of box is it on now? Just wondering, maybe I can donate some services. On 3/27/07, Erik Beeson <[EMAIL PROTECTED]> wrote: > > Perhaps too popular for its own good ;-) > > I believe that's exactly the problem. The powers that be are working > to improve the sit

Re: [jQuery] IE6 Performance Profiling?

2007-03-27 Thread Yansky
These jQuery speed test pages might help: http://test.learningjquery.com/speed-test.htm http://john.jquery.com/speed/ Remy Sharp wrote: > > Does anyone know how and with what I can performance profile in IE6? > > Firefox and IE7 are fine, it's just IE6 takes well over 10 seconds to load > a he

Re: [jQuery] IE6 Performance Profiling?

2007-03-27 Thread Mike Alsup
Remy, you can use firebug lite to do timings (but not profiling). Mike On 3/27/07, Remy Sharp <[EMAIL PROTECTED]> wrote: > > Does anyone know how and with what I can performance profile in IE6? > > Firefox and IE7 are fine, it's just IE6 takes well over 10 seconds to load a > heavily jQuery'ed pa

Re: [jQuery] Release: Validation plugin beta 2

2007-03-27 Thread Jörn Zaefferer
Aaron Heimlich schrieb: > Jorn, > > Great stuff so far! > > I wonder, though, if it would be possible to have settings.rules and > settings.messages be organized by element name instead of element ID. > > If I'm trying export server-side validation rules to your plugin (as > JSON and then convert

Re: [jQuery] Beta Testers needed for Form Plugin file upload support

2007-03-27 Thread Mike Alsup
Thanks again for the feedback, Roger. That's a bummer about Safari's handling of the xml datatype. Good to know that the latest webkit builds handle it well though. There's hope for the future! I've got some thoughts on a workaround but it requires cooperation from the server. I'll post more l

Re: [jQuery] Quality control for plugins

2007-03-27 Thread Jörn Zaefferer
Brian Cherne schrieb: > On 3/26/07, *Jörn Zaefferer* <[EMAIL PROTECTED] > > wrote: > > Unfortuanetely, Javadoc is a bit limited for documenting jQuery > plugins. > For example, most plugins offer "options", that is, they accept a > object > whose prope

Re: [jQuery] Release: Validation plugin beta 2

2007-03-27 Thread Aaron Heimlich
On 3/27/07, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: I'd really like to take a look at your code that produces the validation rules from serverbased stuff. The project is at http://aheimlich.freepgs.com/projects/php/hvalidator, but my host is giving me trouble right now (I'm moving to Dreamh

Re: [jQuery] Accrodian - background image changing on select (one working, other's are not)

2007-03-27 Thread Jörn Zaefferer
pjhawksr schrieb: > However, my second question is how do I get the accordian to stay open and > only close when the toggle link is click (not automatically closing when > another item in the accordian is clicked)? > That isn't possible currently, but considering the requests, I'll add it as so

Re: [jQuery] utf-8 and jquery

2007-03-27 Thread Ⓙⓐⓚⓔ
the headers look good, it must be the data! PHP is clobbering the UTF... htmlentities sounds cute but they aren't available in XML. more like hex entities or decimal entities or just proper utf! a hex entity * *; a decimal entity   an html entity they don't normally work in xml On 3/27/

Re: [jQuery] Release: Validation plugin beta 2

2007-03-27 Thread Aaron Heimlich
On 3/27/07, Aaron Heimlich <[EMAIL PROTECTED]> wrote: The project is at http://aheimlich.freepgs.com/projects/php/hvalidator , but my host is giving me trouble right now Luckily, the demo is still accessible (which includes a download link): http://aheimlich.freepgs.com/wp-content/portfolio/

Re: [jQuery] JQuery vs prototype

2007-03-27 Thread Jörn Zaefferer
Denis schrieb: > can you help me? > what benefits of JQuery vs prototype?(http://www.prototypejs.org/) > You may find jQuery's community very, very active, friendly and helpful. Something I haven't seen or experienced in this form in any other open source project. Something that may weigh muc

[jQuery] Replace values in a string of text with content from form fields

2007-03-27 Thread Andy Matthews
I've been tasked with building a Meta-Tags creator tool for my company. The user will be able to type in a few pieces of information and have Meta tag information created for them. The user will be able to choose from multiple generic paragraphs, all set up roughly like this: [dealerName] in [cit

Re: [jQuery] Release: Validation plugin beta 2

2007-03-27 Thread Jörn Zaefferer
Aaron Heimlich schrieb: > On 3/27/07, *Jörn Zaefferer* <[EMAIL PROTECTED] > > wrote: > > I'd really like to take a look at your code that > produces the validation rules from serverbased stuff. > > > The project is at http://aheimlich.freepgs.com/projects/php/hval

Re: [jQuery] Release: Validation plugin beta 2

2007-03-27 Thread Aaron Heimlich
On 3/27/07, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: Ok, thanks. Let me know when you got that JSON export ready, that seems to be the most interesting part. I'll be sure to let you know when that part's done. -- Aaron Heimlich Web Developer [EMAIL PROTECTED] http://aheimlich.freepgs.com __

Re: [jQuery] Accrodian - background image changing on select (one working, other's are not)

2007-03-27 Thread Jörn Zaefferer
Jörn Zaefferer schrieb: > pjhawksr schrieb: > >> However, my second question is how do I get the accordian to stay open and >> only close when the toggle link is click (not automatically closing when >> another item in the accordian is clicked)? >> >> > That isn't possible currently, but

[jQuery] jQpie 0.2 released

2007-03-27 Thread Richard Thomas
http://projects.cyberlot.net/trac/jqpie Just minor updates, now supports the pear json library if loaded and moved the page lists outside of the sortable table to make it easier for custom placement. ___ jQuery mailing list discuss@jquery.com http://jqu

Re: [jQuery] Quality control for plugins

2007-03-27 Thread Brian Cherne
Jörn, if everyone wrote as coherently as you babble, I think all threads would benefit. :) I agree that a low barrier to entry is beneficial. I remember writing my first lines of jQuery code (back in January). From download to tutorial to production-ready functionality, it was about 1hr... for so

Re: [jQuery] JQuery vs prototype

2007-03-27 Thread Michel Brouckaert
well, I am on an internship, and i had a couple of weeks to learn how ajax worked, implement it in code and then take it to a production level. I first tried a couple of prototype based libary's and I have to say that if you need to be programming quiet fast and have properly written code. you sh

[jQuery] bind two events to same function

2007-03-27 Thread Josh Nathanson
What is the syntax to bind two events to the same function? I want to do something like $("[EMAIL PROTECTED]").bind("mouseover,mouseout", function() { stuff here }); But it doesn't work. TIA -- Josh ___ jQuery mailing list discuss@jquery.com http:/

Re: [jQuery] bind two events to same function

2007-03-27 Thread Aaron Heimlich
function doSuperCoolStuff(evt) { // do super cool stuff... } $('[EMAIL PROTECTED]"submit"]').bind("mouseover", doSuperCoolStuff).bind("mouseout", doSuperCoolStuff); On 3/27/07, Josh Nathanson <[EMAIL PROTECTED]> wrote: What is the syntax to bind two events to the same function? I want to d

Re: [jQuery] bind two events to same function

2007-03-27 Thread David Dexter
Have a look at the hover() function it does exactly what you are looking for. David Dexter | brilliantlemming.com | Brentwood, CA | 310.414.0949 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Josh Nathanson Sent: Tuesday, March 27, 2007 2:41 PM To

Re: [jQuery] bind two events to same function

2007-03-27 Thread Blair Mitchelmore
Or if you wanted to hack jQuery a bit for some syntactic sugar: jQuery.fn._bind = jQuery.fn.bind; jQuery.fn.bind = function(names,action) { var self = this; jQuery.each(names.split(/\s*,\s*/),function() { self.bind(this,action); }; return this; }; That code might not work

Re: [jQuery] bind two events to same function

2007-03-27 Thread Josh Nathanson
Yup, Aaron's got it...it worked. Thanks! -- Josh - Original Message - From: Aaron Heimlich To: jQuery Discussion Sent: Tuesday, March 27, 2007 3:02 PM Subject: Re: [jQuery] bind two events to same function On 3/27/07, David Dexter <[EMAIL PROTECTED]> wrote: Have a loo

Re: [jQuery] bind two events to same function

2007-03-27 Thread Aaron Heimlich
On 3/27/07, David Dexter <[EMAIL PROTECTED]> wrote: Have a look at the hover() function it does exactly what you are looking for. Actually, it doesn't. hover() expects two different functions. From the API docs: "Whenever the mouse cursor is moved over a matched element, the first specified

Re: [jQuery] bind two events to same function

2007-03-27 Thread Aaron Heimlich
I'm pretty sure your code would cause an infinite loop. It should probably be (untested): jQuery.fn._bind = jQuery.fn.bind; jQuery.fn.bind = function(names,action) { var self = this; jQuery.each(names.split(/\s*,\s*/),function() { self._bind(this,action); // self._bind(), not self.

Re: [jQuery] bind two events to same function

2007-03-27 Thread Blair Mitchelmore
You're right, thanks for catching that. -blair Aaron Heimlich wrote: > I'm pretty sure your code would cause an infinite loop. > > It should probably be (untested): > > jQuery.fn._bind = jQuery.fn.bind; > jQuery.fn.bind = function(names,action) { > var self = this; > jQuery.each (names.sp

Re: [jQuery] bind two events to same function

2007-03-27 Thread David Dexter
I have my dunce cap. which corner do I go sit in? David Dexter | brilliantlemming.com | Brentwood, CA | 310.414.0949 _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Heimlich Sent: Tuesday, March 27, 2007 3:02 PM To: jQuery Discussion Subject: Re: [jQuery]

Re: [jQuery] bind two events to same function

2007-03-27 Thread Josh Nathanson
Actually I did end up using hover(), it works better for what I'm trying to do...so hand over the dunce cap! But now I also know how to bind the same function to multiple events if I ever want to do that... -- Josh - Original Message - From: David Dexter To: 'jQuery Discussion'

Re: [jQuery] bind two events to same function

2007-03-27 Thread Mike
> > Have a look at the hover() function it does exactly what you are looking > > for. > > Actually, it doesn't. hover() expects two different functions. From the API I think David meant look at the actual implementation. ___ jQuery mailing list discuss

Re: [jQuery] JQuery vs prototype

2007-03-27 Thread Jörn Zaefferer
Michel Brouckaert schrieb: > If you have more time and the project would be a really big one, i > would advice you to rather use Prototype. Class based designs mostly > only pay off in huge projects because of reusability. So at the end of > the line I think it depends... I think reusing jQuery

Re: [jQuery] Accrodian - background image changing on select (one working, other's are not)

2007-03-27 Thread pjhawksr
Sounds like a great plug-in! Thank you for your work. Jörn Zaefferer wrote: > > Jörn Zaefferer schrieb: >> pjhawksr schrieb: >> >>> However, my second question is how do I get the accordian to stay open >>> and >>> only close when the toggle link is click (not automatically closing when >>>

[jQuery] Error in Jorn Form Validation Plugin

2007-03-27 Thread Web Specialist
Until yesterday my form with Jorn Form Validation Plugin worked fine only submitting after all required fields filled. Today I insert Dan G Switzer example to display error message in red colour. And my form dies! ;-) After click in submit button appear an error in this part of jquery.validate.js

[jQuery] hoverIntent r5 = plug-in ready to be plugged-in

2007-03-27 Thread Brian Cherne
I'm happy to announce that my first plug-in, hoverIntent, is ready for general use. < http://cherne.net/brian/resources/jquery.hoverIntent.html > hoverIntent is a function that attempts to determine the user's intent onMouseOver. It works like, was derived from and is interchangeable with jQuery

Re: [jQuery] hoverIntent r5 = plug-in ready to be plugged-in

2007-03-27 Thread John Resig
> P.S. How does one get their plug-in linked to from the jQuery plug-ins page? It's simply a wiki page - click "Edit Page" at the top of the page and you'll be directed to create an account. Do so, then see how the other plugins are formatted - it should be pretty straight forward to add your own.

Re: [jQuery] bind two events to same function

2007-03-27 Thread Klaus Hartl
David Dexter schrieb: > I have my dunce cap… which corner do I go sit in? Hm, actually why shouldn't one be able to use the same function in hover? -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/