Re: [jQuery] More DOM Query Speed Tests

2006-12-19 Thread Christof Donat
Hi, ID should be uniqe over the page, so div#myid is redundant. No, it isn't. It should return an empty jQuery-Object in case the Element with the id myid is not a div. That is usefull when you produce your Content dynamically (e.g. with PHP). The same is true for .myclass#myid, or even

Re: [jQuery] Resetting a form/general floundering

2006-12-19 Thread Bruce MacKay
Thanks Blair, this was helpful. My major fault, it seems, was the .val, not .html issue. The elements were inserted correctly. I still cannot get $(#nLinkForm).reset(); to work, but by looping through the form elements and setting their value to an empty string or value to false: for

[jQuery] (no subject)

2006-12-19 Thread Kristaps Ancāns
Ok i'm a newbie in jquery and i'm trying to write function that will replace all span class=y!-- --/span element's content with current year. My function looks like this: $(function(){ $(.y).ready(function() { var today = new Date(); var year = today.getFullYear(); document.write(year); });

Re: [jQuery] (no subject)

2006-12-19 Thread Christof Donat
Hi $(function(){ $(.y).ready(function() { var today = new Date(); var year = today.getFullYear(); document.write(year); }); }); $(function() { $('.y').html((new Date()).getFullYear()); }); Christof ___ jQuery mailing list

Re: [jQuery] (no subject)

2006-12-19 Thread Michael Geary
Try this (untested): $(function() { $('.y').html( (new Date).getFullYear() ); }); -Mike p.s. Could we avoid profanity on the mailing list? Thanks. _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kristaps Ancans Sent: Tuesday, December 19, 2006 12:44 AM To:

Re: [jQuery] How to not select something?

2006-12-19 Thread GreyCells
Excellent, Dave. Your explanation is much appreciated. I'd tried something similar in my 'period of frustration', but didn't know about the []'s denoting descendents. dave.methvin wrote: What I'm trying to achieve is the element with id=save-search only gets hidden if it does not contain

[jQuery] Position.clone in jquery

2006-12-19 Thread Andreas Wahlin
I've recently moved from prototype to jquery, and wonder if there's something simmilar to Position.clone. That is, match an arbitrary elements position exactly, (with all the offsets and parents and so on, it's more to it than just match top and left attributes) I googled a bit and came up

Re: [jQuery] Hide div only if no child checkbox is selected

2006-12-19 Thread GreyCells
For anyone searching for similar answers, I've since learnt that this works too: $(#testDiv:not([input:checked])).hide(); The explanation (courtesy of Dave Methvin): #testDiv// select an element with id=testDiv :not( // as long as the following is not found:

Re: [jQuery] Position.clone in jquery

2006-12-19 Thread Paul Bakaus
Hi Andreas, yes there is something quite similar, if not even better working thing: It's the additional function offset() in the dimensions.js plugin, which you can get via SVN in the plugins directory. Just pick the element you want and do $(myelement).offset(), and you'll get a nice object

[jQuery] Finding child element with no class

2006-12-19 Thread digital spaghetti
Hi folks, I am trying to use the InnerFade plugin on a site I am developing using Drupal. In it, I have a block that lists up to the last 5 stories posted. Due to the way Views work in Drupal, I am not able to add a class to the UL element directly, the code looks like below: div

Re: [jQuery] Finding child element with no class

2006-12-19 Thread digital spaghetti
Bahh, ignore this email! It was my own typo, the selector should have been div.item-listul, not div.itemlistul as I had. Now it's working :) Tane On 12/19/06, digital spaghetti [EMAIL PROTECTED] wrote: Hi folks, I am trying to use the InnerFade plugin on a site I am developing using

Re: [jQuery] (no subject)

2006-12-19 Thread Dotan Dimet
You probably shouldn't use document.write() for anything; Dynamic HTML and the DOM have pretty much made is obsolete. document.write() will replace the whole document if you run it at any time except when the document is being loaded. So you can use it inline: span class=yscript var

[jQuery] oneclick working in Firefox but not IE

2006-12-19 Thread Adam Skinner
Hi, I'm binding an event with oneclick and it's working just fine in firefox, but the contents of the code actually fires itself in IE like an .each instead of binding it to the click event. Here's the context: I've got a page that will list an address, with a little add/remove button. When

Re: [jQuery] Position.clone in jquery

2006-12-19 Thread Andreas Wahlin
Sweet! Thank you, works completely as advertised (once I remember to show the element I actually want to look at hehe) Andreas On Dec 19, 2006, at 11:30 , Paul Bakaus wrote: Hi Andreas, yes there is something quite similar, if not even better working thing: It's the additional function

Re: [jQuery] plugin: fieldSelection

2006-12-19 Thread Brice Burgess
Alex Brem wrote: So.. am I moving it into the right direction? :) Certainly! You're laying the framework for a lot of things here -- I can see live spelling checks with suggested words on right click, WYSIWYG|M developer friendly API, pruning/filtering of textarea data so on. Keep it up

Re: [jQuery] How to not select something?

2006-12-19 Thread Mike Alsup
#save-search// select an element with id=save-search :not( // as long as the following is not found: [ // descendent elements containing div // a div .error-message// with class

Re: [jQuery] More DOM Query Speed Tests

2006-12-19 Thread Brian Miller
looking for an ID (which should be unique) after getting the tags is worthless. Should we re-write the case of tag#id to use elem.getElementBYId(), and then remove the element if it's not the right tag? - Brian ___ jQuery mailing list

[jQuery] Trouble Replacing class [Was: Re: (no subject)]

2006-12-19 Thread Christopher Jordan
Kristaps, Try something like, $(document).ready(function(){ var year = newDate().getFullYear(); $(.y).empty().append(year); }); Cheers, Chris Kristaps Ancāns wrote: Ok i'm a newbie in jquery and i'm trying to write function that will replace all span class=y!-- --/span element's

Re: [jQuery] Question about remove();

2006-12-19 Thread Christopher Jordan
Dave, I love the analogy! :o) My situation is more like: $(#Oven).find(.ChristmasPies).remove().appendTo(#CoolingRack); :o) Only, I didn't know that I had to use .find(). What I've *really* got is two unorderd lists, and I'm trying to move selected items from one list to the other. So, if I

Re: [jQuery] More DOM Query Speed Tests

2006-12-19 Thread Dragan Krstic
2006/12/19, Christof Donat [EMAIL PROTECTED]: Hi, ID should be uniqe over the page, so div#myid is redundant. No, it isn't. It should return an empty jQuery-Object in case the Element with the id myid is not a div. That is usefull when you produce your Content dynamically (e.g. with PHP).

Re: [jQuery] Question about remove();

2006-12-19 Thread Christopher Jordan
Dave, That worked brilliantly! Thanks so much! Cheers, Chris Dave Methvin wrote: I have the need of removing list items from List A and then adding them to List B. I'm using the .remove() function to remove the elements from the DOM. The API says very urgently that the remove() method doesn't

Re: [jQuery] More DOM Query Speed Tests

2006-12-19 Thread Dotan Dimet
If you want to keep performance, maybe it's better to do: if( $(#myid).is('div.myclass')) alert(YEAH, WE GOT IT); else alert(Ha, my ID is misused!!); Wow. When I started writing this reply, I thought of using tagName and className, but is() is so much more elegant. Christof Donat wrote: Hi,

Re: [jQuery] More DOM Query Speed Tests

2006-12-19 Thread Christof Donat
Hi, ID should be uniqe over the page, so div#myid is redundant. [...] I know that. My point is that there should not be two elements with same id on the page. At least, I'm developing like that. But that doesn't make the expression div#myid redundant. Of course the id should be unique,

Re: [jQuery] More DOM Query Speed Tests

2006-12-19 Thread Karl Swedberg
On Dec 19, 2006, at 1:09 AM, Aaron Heimlich wrote: If you want some more detail (and have Firefox with Firebug 1.0 Beta installed), you can head on over to http:// aheimlich.freepgs.com/tests/jquery/speed-test-firebug/ where I replicated Karl's tests using Firebug 1.0 Beta's script profiling

Re: [jQuery] More DOM Query Speed Tests

2006-12-19 Thread Christof Donat
Hi, I think what Christof is getting at is this: [...] Yes, exactly. Christof ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] More DOM Query Speed Tests

2006-12-19 Thread Christof Donat
Hi, If you want to keep performance, maybe it's better to do: if( $(#myid).is('div.myclass')) alert(YEAH, WE GOT IT); else alert(Ha, my ID is misused!!); Yes, of course. If I whant to use jQuery methods I could also use filter(): $('#myid').filter('div.myclass').addClass('hereWeGo'); But I

Re: [jQuery] More DOM Query Speed Tests

2006-12-19 Thread Stephen Woodbridge
OK, here is an interesting tidbit. I used the test below and and did the 7 click thing, and out of all my tests except one, the long delay happened in has() and once I got it in find(). has() is pretty simple and I wonder if this has less to do with the number of clicks versus the number of

Re: [jQuery] More DOM Query Speed Tests

2006-12-19 Thread Franck Marcia
Hi all, With the tests I ran (http://fmarcia.info/jquery/speedtest.html [1]), the quickest way to retrieve one element is $(document.getElementById(id)), even better than $('#id')! Off course, to get even better performance, one should cache queries every time it's possible! My 2 cents,

Re: [jQuery] More DOM Query Speed Tests

2006-12-19 Thread Dragan Krstic
Dragan, I think what Christof is getting at is this: on any given page, #myid could be uniquely assigned to a div or a paragraph or a span or an image or any other element. So, page 1 could have div id=myid/div and page 2 could have p id=myid/p If the same script is being included on multiple

[jQuery] plugins: writing methods vs. objects

2006-12-19 Thread Anaurag Gupta
When writing plugin, when is best to write simply methods, as opposed to an object with helper functions? Not sure when to use jQuery.foo versus jQuery.fn.foo Thanks. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection

Re: [jQuery] plugins: writing methods vs. objects

2006-12-19 Thread Kim Johnson
I've been curious about this myself for jquery in general... I love OO programming and tend to always try to use it (including sticking with PHP objects, etc) unless terribly unnecessary; is there a compelling reason to NOT use objects whenever possible in jquery, since objects provide such

Re: [jQuery] More DOM Query Speed Tests

2006-12-19 Thread Karl Swedberg
btw, I just added a text input so you can run whatever query you want on the page. just type in the selector -- without $() -- and press the Test! button. In case anyone wants to try but has lost the thread, here is the URL again: http://test.learningjquery.com/speed-test.htm On Dec 19,

[jQuery] Speed Tests

2006-12-19 Thread Yehuda Katz
In the vein of the discussion we've been having on this list (and, of course, heavily inspired by the first speed test), I've created a more extensive speed test that tests a bunch of similar cases. A word of warning: your browser will not be available for a good 30 seconds or so while the test

Re: [jQuery] plugins: writing methods vs. objects

2006-12-19 Thread Mike Alsup
Not sure when to use jQuery.foo versus jQuery.fn.foo jQuery.foo just creates a function on the jQuery object (technically, on the constructor function). jQuery.fn.foo creates a function on the prototype object of the jQuery object. If you want your function to be available to all jQuery object

Re: [jQuery] Writing Efficient Plugins

2006-12-19 Thread Mike Alsup
When writing plugins, in general, when should I use jquery functions over standard javascript? (Sorry that question expose my ignorance.) I wondering when I should use a this.each in favor of a standard loop statement, or when to use getElementById instead of the dollar function? My worry

[jQuery] NEWS: jQuery in Ajaxian

2006-12-19 Thread Rey Bango
I'm happy to announce the jQuery project has received some great press via Ajaxian. http://ajaxian.com/archives/jquery-updates-104-documentation-and-people Its awesome to see jQuery getting some great exposure on this top-notch Ajax news site. Rey

Re: [jQuery] Speed Tests

2006-12-19 Thread Dave Methvin
The first thing my code does is test how long it takes to run a $(.class) query, and bases the number of attempts for each test on the speed of that query (not a perfect system, but it should prevent crazy long loads on slow computers. Check the test out at:

[jQuery] $.getJSON - global scope

2006-12-19 Thread Jani Tarvainen
Hi, Just wondering whether it's possible to get the $.getJSON -generated object into local scope? Something along the lines of this: $(document).ready(function(){ createObject(); appendObject(); }); function createObject(){ $.getJSON('animal.js',function(json){

Re: [jQuery] Speed Tests

2006-12-19 Thread Andy Matthews
My results: $('body') 1.33ms 0.64ms 0.62ms $('body div') 34.38ms 34.38ms 34.06ms $('div', [jQuery('div'), jQuery('a')]) 69.06ms 68.12ms 67.82ms document.body.getElementsByTagName('div') 0ms 0ms 0ms $(jQuery.merge(document.getElementsByTagName('div'), [])) 23.12ms

Re: [jQuery] modalContent plugin is not modal

2006-12-19 Thread Jörn Zaefferer
Tim Saker schrieb: I've actually completed a solution to these problems prior to this post. The solution involves updates to both the modalContent plugin and it's dependency, dimensions.js. I just need to finish polishing the changes to conform to the plugin guidelines. Just release 'em

Re: [jQuery] Speed Tests

2006-12-19 Thread Karl Swedberg
On Dec 19, 2006, at 12:51 PM, Dave Methvin wrote: The first thing my code does is test how long it takes to run a $(.class) query, and bases the number of attempts for each test on the speed of that query (not a perfect system, but it should prevent crazy long loads on slow computers. Check

[jQuery] FF class manipulation--possible bug

2006-12-19 Thread bander
As I've mentioned here before, I'm working on a drag-and-drop file manager right now. In Firefox, I'm getting a lot of class=undefined (or class=droppable selectable name undefined) nodes in the DOM source after a few drag and drop operations. (They should be droppable selectable name, plus a

Re: [jQuery] Multiple Interface Slideshows on one page not showing up good in IE6, IE7

2006-12-19 Thread Jörn Zaefferer
snagt schrieb: Hello there! Just getting to know the wonderful world of Jquery and all the things written for it. I'm building my new website with my illustration portfolio and am able to implement and modify all the scripts I need, but now I've stumbled upon a problem I can't solve myself..

[jQuery] Cursor position inside of textfield / textarea?

2006-12-19 Thread Jonathan Sharp
Is it possible to get the current cursor offset in a text field? For example Hello world if the cursor is between the H and e could I somehow get the offset of 1? -js ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] FF class manipulation--possible bug

2006-12-19 Thread bander
I've narrowed it down more. Every droppable node has class=droppable selectable name undefined on load. Once it has had the hover class applied, whether or not the draggable is actually dropped, its class switches to either just undefined or empty. -- View this message in context:

Re: [jQuery] Cursor position inside of textfield / textarea?

2006-12-19 Thread Karl Swedberg
Hi Jonathan, Is this what you're looking for? Posted a few days ago... http://laboratorium.0xab.cd/jquery/fieldselection/ --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Dec 19, 2006, at 1:28 PM, Jonathan Sharp wrote: Is it possible to get the

[jQuery] JQuery driven site

2006-12-19 Thread Stefan Holmberg
fellows, Finally my first JQuery driven site has been released - http://www.findfreefonts.net . To start by presenting myself - I try to spread the word about JQuery in the ASP.NET world - through my site

Re: [jQuery] Cursor position inside of textfield / textarea?

2006-12-19 Thread Jonathan Sharp
Man, I just can't keep up with this list! Yeah, that's 90% of what I'm looking for, I need the ability for a setSelection which would just focus set the cursor/selection position in the field... I found some examples of this. Would you be interested in adding this to your plugin? Cheers,

Re: [jQuery] More DOM Query Speed Tests

2006-12-19 Thread Jörn Zaefferer
Stephen Woodbridge schrieb: OK, here is an interesting tidbit. I used the test below and and did the 7 click thing, and out of all my tests except one, the long delay happened in has() and once I got it in find(). has() is pretty simple and I wonder if this has less to do with the number

Re: [jQuery] JQuery driven site

2006-12-19 Thread jyl
Looks good. When I click on the tag cloud on the left hand side I get this error: Server Error in '/' Application. Runtime Error Description: An application error occurred on the server. The current custom error

Re: [jQuery] $.getJSON - global scope

2006-12-19 Thread Jörn Zaefferer
Jani Tarvainen schrieb: Hi, Just wondering whether it's possible to get the $.getJSON -generated object into local scope? Something along the lines of this: $(document).ready(function(){ createObject(); appendObject(); }); function createObject(){

Re: [jQuery] Cursor position inside of textfield / textarea?

2006-12-19 Thread Jörn Zaefferer
Jonathan Sharp schrieb: Man, I just can't keep up with this list! Yeah, that's 90% of what I'm looking for, I need the ability for a setSelection which would just focus set the cursor/selection position in the field... I found some examples of this. Would you be interested in adding this

Re: [jQuery] plugins: writing methods vs. objects

2006-12-19 Thread Andreas Wahlin
In general, I'd say go with jQuery.fn.foo, that's when you get the $(element).lots().of().nice().functionality(); jQuery.foo creates global functions, like $.getJSON() and the like, not usually what you want. Andreas On Dec 19, 2006, at 18:11, Mike Alsup wrote: Not sure when to use jQuery.foo

Re: [jQuery] Writing Efficient Plugins

2006-12-19 Thread Andreas Wahlin
One thing I've wondered quite a bit about, if one should pass in jquery objects to functions (generally internal ones in plugins) or dom pointers. Is there a standard here, or is it on a per usage basis what seems to be best at the moment? Andreas

Re: [jQuery] JQuery driven site

2006-12-19 Thread Andy Matthews
Not bad Stefan... The site works fine, but you have some UI issues that you might want to deal with. For example, the search form takes up fully half of the vertical width of the screen. I have to scroll to see ANY of the fonts that come back in my search. May I suggest putting the search inside

Re: [jQuery] Cursor position inside of textfield / textarea?

2006-12-19 Thread Jonathan Sharp
Oh, yeah I've been looking at code too long today. Sorry Alex, didn't mean to imply that Karl wrote it. My ALU was a little lagging... -js On 12/19/06, Karl Swedberg [EMAIL PROTECTED] wrote: On Dec 19, 2006, at 2:06 PM, Jonathan Sharp wrote: Would you be interested in adding this to your

Re: [jQuery] JQuery driven site

2006-12-19 Thread Stefan Holmberg
Oh man, of course it doesn't happen for me, neither with FF or IE. Will look into the log. Thanks for your time! On 12/19/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Looks good. When I click on the tag cloud on the left hand side I get this error: Server Error in '/' Application.

Re: [jQuery] JQuery driven site

2006-12-19 Thread Jörn Zaefferer
Stefan Holmberg schrieb: Am using the cssRadio/cssCheckbox plugin, cookie plugin, hovertip etc. I know it doesn't look all right in Firefox etc, but hey, I need something to do waiting for Santa... Just wanted to thank you - and if you look at the site and find some abvious errors/stupid

Re: [jQuery] Fix: ExternalInterface breaks jQuery in firefox 2

2006-12-19 Thread joehewitt
As I just said in another post on this thread, since the first beta I have fixed a lot of bugs in Firebug that broke some websites. It would be really helpful if you could test with the latest beta, and if it still breaks your site, send me a URL I can test with. Other beta users have done this

Re: [jQuery] JQuery driven site

2006-12-19 Thread Stephen Woodbridge
Very nice. I tried (check all) and Sort by Most Downloaded then Search and got Bad Request (Invalid URL) FF2 on WinNT I like the nice style and use of effects. -Steve Stefan Holmberg wrote: fellows, Finally my first JQuery driven site has been released - http://www.findfreefonts.net .

[jQuery] jquery session handling versus PHP

2006-12-19 Thread Kim Johnson
Currently I use PHP's built in session functions to handle ensuring users are logged in, etc. It doesn't work correctly a small percentage of the time, but is robust as far as being able to use the $_SESSION array and other such things. Now that I'm starting to use a bunch of jquery stuff, I'm

Re: [jQuery] jquery session handling versus PHP

2006-12-19 Thread Stephen Woodbridge
Kim Johnson wrote: Currently I use PHP's built in session functions to handle ensuring users are logged in, etc. It doesn't work correctly a small percentage of the time, but is robust as far as being able to use the $_SESSION array and other such things. Now that I'm starting to use a bunch

Re: [jQuery] More DOM Query Speed Tests

2006-12-19 Thread joehewitt
Oh man, that is totally awesome. Just the kind of thing I was hoping people would do with Firebug. The jQuery community rocks! :) - Joe If you want some more detail (and have Firefox with Firebug 1.0 Beta installed), you can head on over to

Re: [jQuery] JQuery driven site

2006-12-19 Thread Rey Bango
Great work Stefan. Some feedback: - Add a title to your pages. It currently reads Untitled Page - Add the ability to remove a saved font from within the My Saved Fonts page - Modify the top right nav so that each option is clearly delineated. Also, what did you use to show the popup of each

Re: [jQuery] More DOM Query Speed Tests

2006-12-19 Thread Rey Bango
Thanks for stopping by Joe. Firebug rocks man and we're VERY appreciative of your efforts. Thanks for making this amazing tool for us developers. Rey joehewitt wrote: Oh man, that is totally awesome. Just the kind of thing I was hoping people would do with Firebug. The jQuery community

Re: [jQuery] JQuery driven site

2006-12-19 Thread Giuliano Marcangelo
Stefan, if you wish to keep the same html for the checkbox area, and give it some layout, just a tiny bit of css, will sort out your checkboxes ..(just one way of doing it) div.action nobr {float:left;width:120px} div.action br {clear:left;}

Re: [jQuery] More DOM Query Speed Tests

2006-12-19 Thread Aaron Heimlich
On 12/19/06, joehewitt [EMAIL PROTECTED] wrote: Oh man, that is totally awesome. Just the kind of thing I was hoping people would do with Firebug. The jQuery community rocks! :) - Joe Thanks Joe! I know you've probably been hearing this alot lately, but Firebug (particulary 1.0 beta)

Re: [jQuery] jquery session handling versus PHP

2006-12-19 Thread Andy Matthews
I'd vote for letting PHP do the session management. That way all of that load is on the server (which is made for handling it). Then you can, at any time, reference a session with AJAX. It's what I do on my cookbook site. !//-- andy matthews web developer certified advanced

Re: [jQuery] jquery session handling versus PHP

2006-12-19 Thread David
Kim Johnson schreef: Currently I use PHP's built in session functions to handle ensuring users are logged in, etc. It doesn't work correctly a small percentage of the time, but is robust as far as being able to use the $_SESSION array and other such things. Now that I'm starting to use a

Re: [jQuery] FF class manipulation--possible bug

2006-12-19 Thread bander
I'm sorry for cluttering up the list with a niche issue but I've found a workaround for both parts of the problem: although the Interface documentation lists the Droppable activeclass attribute as optional, leaving it unset causes class corruption. I figure it's harmless to supply one, even if

[jQuery] xml response with $.get()

2006-12-19 Thread insq
Hello there, This may sound like a dumb question, but somehow I can't figure it out: Let's say we have a basic xml file and a simple piece of code: ?xml version=1.0? foo titleThis was loaded from an external XML file./title /foo $.get(ajax-test.xml,function(xml){ alert(

Re: [jQuery] xml response with $.get()

2006-12-19 Thread Abdur-Rahman Advany
Hi, What is your jquery version and browser (version)? Abdul insq wrote: Hello there, This may sound like a dumb question, but somehow I can't figure it out: Let's say we have a basic xml file and a simple piece of code: ?xml version=1.0? foo titleThis was loaded from an external XML

Re: [jQuery] Question about remove();

2006-12-19 Thread Alex Cook
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Methvin Subject: Re: [jQuery] Question about remove(); If you append to multiple targets (e.g., .stockings selects multiple elements) , the original elements are cloned before being appended to each target so the original

Re: [jQuery] xml response with $.get()

2006-12-19 Thread Matt Stith
Im not sure, but try this: $.get(ajax-test.xml,function(xml){ alert( $(title,xml).html() ); }); Untested, blah blah blah. On 12/19/06, insq [EMAIL PROTECTED] wrote: Hello there, This may sound like a dumb question, but somehow I can't figure it out: Let's say we have a basic xml file and

[jQuery] New design on jquery.com

2006-12-19 Thread Alex Cook
Good to see some changes being made to the jquery.com site. Links on the top, oh my! -ALEX ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Resetting a form/general floundering

2006-12-19 Thread Blair McKenzie
$(#sQuestion).resetInput(). Most plugins create new methods that you can run on a jQuery selection. I haven't actually had to reset an entire form before, but I would expect that you would have to do $(#nLinkForm)[0].reset(). i.e. $(#nLinkForm) // select the form [0] // access the DOM element

Re: [jQuery] Writing Efficient Plugins

2006-12-19 Thread Ⓙⓐⓚⓔ
When I pass a dom obj, it shows I want it as a dom obj... when I pass a jq obj it shows I want a jq obj... both are cool, it all depends on what you are going to do with it! On 12/19/06, Andreas Wahlin [EMAIL PROTECTED] wrote: One thing I've wondered quite a bit about, if one should pass in

[jQuery] Help with arrow key navigation

2006-12-19 Thread blemming
hello all, definately need to start this post off with the I'm a jquery newbie statement. I'm trying to put together a quick search function that alllows for keyboard navigation. Here is an example: http://brilliantretail.com/cases/filter/qs.php Search Example (Try searching for

Re: [jQuery] New design on jquery.com

2006-12-19 Thread Clodelio Delfino
Thanks to the design/web team, at last...I don't have to scroll down at the bottom just to click the PLUGINS section everytime I visit the site... Cheers, cdelfino Alex Cook wrote: Good to see some changes being made to the jquery.com site. Links on the top, oh my! -ALEX

Re: [jQuery] Extrange problem with .click()

2006-12-19 Thread bander
Two HTML elements cannot share the same ID. If you want to use the same description of two elements, use class, and search with $('.CLASSNAME'). Wonder if we could have a sticky for this forum explaining that. RoadRat wrote: Well I really do not know whats wrong in my code. I have two

Re: [jQuery] Extrange problem with .click()

2006-12-19 Thread Matt Stith
Nope, this is a mailing list. Theres no way to sticky something in a mailing list ;) On 12/19/06, bander [EMAIL PROTECTED] wrote: Two HTML elements cannot share the same ID. If you want to use the same description of two elements, use class, and search with $('.CLASSNAME'). Wonder if we

[jQuery] performance issues in IE

2006-12-19 Thread Todd Menier
Hello, I'm writing a function in a global script that will apply focus to the first visible enabled form field on a page. I'm using the following jQuery expression to find the control: $('#mainContent :input:visible:not(:checkbox):not(:button):not(:submit):not(:image):not([EMAIL

Re: [jQuery] New design on jquery.com

2006-12-19 Thread John Resig
Actually, that was just me. I'm made some minor tweaks to the design to help tide us over until the new design is ready-to-go. Are there any other critical aspects that need attention until the new official one is ready? --John On 12/19/06, Clodelio Delfino [EMAIL PROTECTED] wrote: Thanks to

Re: [jQuery] jquery session handling versus PHP

2006-12-19 Thread Olivier Percebois-Garve
If you auto-fill form fields using php session and want to convert it to a cookie-based storage then its a good choice because you will offload your server. Kim Johnson wrote: Currently I use PHP's built in session functions to handle ensuring users are logged in, etc. It doesn't work

[jQuery] xmlExec - sanitized output

2006-12-19 Thread youngwax
This is probably a noob question. I am using jquery, with the form plugin to submit information, and the xmlExec plugin to handle responses. As far as I can tell, the form plugin works, and the xmlExec receives and deals with an xml file. It all seems to work, but what gets displayed on my

Re: [jQuery] jquery session handling versus PHP

2006-12-19 Thread Kim Johnson
Thanks to all three of you for the responses :) To explain a bit more about the extent of how I use the sessions, the majority of why I use them is to restrict access to certain areas. I have varying levels of permissions on each user account, and do the usual check if they are logged in on each

Re: [jQuery] Insist: Extrange problem with .click()

2006-12-19 Thread blemming
you are missing a ' after the remlink class name, and I think you want to change your select statements to this format: $(#ShowLinks .taglink).click( function () RoadRat wrote: Ok, lets forget the id question. The problem persist: div id='ShowLinks' -- One row: div id='450' a

Re: [jQuery] performance issues in IE

2006-12-19 Thread Aaron Heimlich
Try this (completely untested): $(#mainContent :input:enabled:visible:first) .filter([textarea,select,[EMAIL PROTECTED]'text']]) .each(function() { this.focus(); }); On 12/19/06, Todd Menier [EMAIL PROTECTED] wrote: Hello, I'm writing a function in a global

Re: [jQuery] New design on jquery.com

2006-12-19 Thread Aaron Heimlich
On 12/19/06, John Resig [EMAIL PROTECTED] wrote: Are there any other critical aspects that need attention until the new official one is ready? The header looks really screwed up in IE. Everything seems to have been pushed down real far and the top is cut of a bit. -- Aaron Heimlich Web

Re: [jQuery] xmlExec - sanitized output

2006-12-19 Thread Ⓙⓐⓚⓔ
It's supposed to be that way! if you slip that lt; stuff into your page it should appear as ! Since the xml is correct xml and you are concerned about things like the carriage returns, you have properly encoded them. Since there is no DTD or schema for the xml you can also write it all without

Re: [jQuery] xmlExec - sanitized output

2006-12-19 Thread Mike Alsup
Hi youngwax, Like Blair said, you don't need the CDATA if you're sending back valid XHTML. That said, br is not valid XHTML. Switch that to br / and try it w/o the CDATA. Also, it's great form to post a link to a sample page if at all possible! Mike

Re: [jQuery] jquery session handling versus PHP

2006-12-19 Thread Brice Burgess
Kim Johnson wrote: Given those exact things, do you three (or anyone else) have an opinion on which would be better in php or jquery? The auth, at least, will need to be almost everywhere. thanks, -kim Kim, Keep your authentication state server side (via PHP's session). If you do it

Re: [jQuery] jQuery Methods, a new plugin?

2006-12-19 Thread Alan Gutierrez
That was my gut reaction, but, I think that it's an example of explicit use of a new Iterator interface, a way to make any object work with for in . But, I didn't read it that closely. It took 6-8 years to get to get JavaScript and DOM stable enough for our current applications. I'm not holding

Re: [jQuery] New design on jquery.com

2006-12-19 Thread Erik Beeson
That's an awesome quote on the main page. I expect a jQuery IDE soon that actually WILL read my mind. I start typing: $('span').filter('.links').cli And a little red devo hat pops up with a little speech bubble and taps on my screen: Excuse me, it looks like you're trying to add a click

Re: [jQuery] performance issues in IE

2006-12-19 Thread Todd Menier
Thanks Aaron. That unfortunately didn't make it any faster. Plus I don't think you'd want to apply that filter expression after you've applied the :first qualifier in the initial expression - that could leave you with nothing even when there's a match somewhere on the page. Anyway, I had the

[jQuery] jQ spotted in some HAWT Mailing List Software

2006-12-19 Thread Brice Burgess
jQuerians, This past month I have focused on rewriting the entirety of poMMo (GPL PHP Mailing List Software). jQuery has become the base library for template files, and a unique interface has been born. This would never have been possible without jQuery, the great minds of this forum (err

Re: [jQuery] xmlExec - sanitized output

2006-12-19 Thread youngwax
hey, I am thrilled to get several replies so quickly. The xml file contains greater-signs and less-signs. I had hoped to add markup to my page. It works if I add markup and content with jquery, but with xmlExec, it gets sanitized - I can only add plain content. It seems fairly limiting,

Re: [jQuery] xmlExec - sanitized output

2006-12-19 Thread youngwax
I seem to get the same appearance with all combinations of br, br /, [CDATA], or not [CDATA]. I still don't get functional markup. Thanks -- View this message in context: http://www.nabble.com/xmlExec---sanitized-output-tf2857111.html#a7984379 Sent from the jQuery Plugins mailing list archive

Re: [jQuery] Cursor position inside of textfield / textarea?

2006-12-19 Thread Alex Brem
Hello Jonathan, as Karl and Jörn already pointed out, at the time I'm coding a plugin which handles all the selection stuff inside an input field / a textarea. The latest Version also includes setSelection. More information can be found in this thread:

Re: [jQuery] xmlExec - sanitized output

2006-12-19 Thread Mike Alsup
I seem to get the same appearance with all combinations of br, br /, [CDATA], or not [CDATA]. I still don't get functional markup. Can you post a sample page somewhere? That would help us track it down. ___ jQuery mailing list discuss@jquery.com

  1   2   >