Re: [jQuery] jquery session handling versus PHP

2006-12-19 Thread David Duymelinck
Kim Johnson schreef: > 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 "ch

Re: [jQuery] events on cloned objects?

2006-12-19 Thread Khurshid MUROD
no events are not cloned, I've had the same problem, as Erik says you gotta reapply events -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Erik Beeson Sent: Wednesday, 20 December 2006 3:33 PM To: jQuery Discussion. Subject: Re: [jQuery] events on cloned

Re: [jQuery] modalContent plugin is not modal

2006-12-19 Thread Tim Saker
Jörn Zaefferer wrote: > > 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 t

Re: [jQuery] performance issues in IE

2006-12-19 Thread Aaron Heimlich
On 12/19/06, dave.methvin <[EMAIL PROTECTED]> wrote: $('textarea,select,[EMAIL PROTECTED]').select(':not([EMAIL PROTECTED]):first') Did you perhaps mean filter() instead of select()? The only select() that's listed in the API docs an event handler shortcut. -- Aaron Heimlich Web Developer [E

Re: [jQuery] performance issues in IE

2006-12-19 Thread dave.methvin
Todd Menier wrote: > > Hello, > I'm writing a function in a global script that will apply focus to the > first > visible enabled form field on a page. ... > $('#mainContent > :input:visible:not(:checkbox):not(:button):not(:submit):not(:image):not([EMAIL > PROTECTED]):first') > > I had assumed

Re: [jQuery] events on cloned objects?

2006-12-19 Thread Erik Beeson
I think, by design, events aren't cloned. Just reapply the click event handler when you do the cloning: $(...).clone().click(click_handler).appendTo(...); The docs should probably clarify this behavior. --Erik On 12/19/06, Shahbaz <[EMAIL PROTECTED]> wrote: I have a table with several rows b

[jQuery] events on cloned objects?

2006-12-19 Thread Shahbaz
I have a table with several rows but a single column, each cell in this column has a class "X". One of the cells (the last row) has a "click" event, when clicked, it just prints a log statement (confirmation that it received the event). In my $(document).ready... function, I clone the single colum

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

2006-12-19 Thread Brandon Aaron
Good catch ... you could log the issue to make sure it gets fixed. http://jquery.com/dev/bugs/new/ -- Brandon Aaron On 12/19/06, bander <[EMAIL PROTECTED]> wrote: > > 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

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 h

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: http://www.nabble.com/plugin%3A-fieldSelect

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] 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, like

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

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 ini

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 handler

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 my

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

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, is not valid XHTML. Switch that to 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 ___ j

Re: [jQuery] xmlExec - sanitized output

2006-12-19 Thread Ⓙⓐⓚⓔ
It's supposed to be that way! if you slip that < stuff into your page it should appear as wrote: 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 x

Re: [jQuery] xmlExec - sanitized output

2006-12-19 Thread Blair McKenzie
Have you tried removing the CDATA bits from the XML? Blair On 12/20/06, youngwax <[EMAIL PROTECTED]> wrote: 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 work

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 Dev

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 gl

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: > > > -- One row: > > a class='taglink' href="blah

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

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

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 corr

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

2006-12-19 Thread Olivier Percebois-Garve
Also, this is no jquery issue, just css... Matt Stith wrote: 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

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

[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 PROTECTED]):firs

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

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 t

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

[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 "dext

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

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 eleme

[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] 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 fil

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 elemen

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: > > > > This was loaded from an external XML file. > > > > $

[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: This was loaded from an external XML file. $.get("ajax-test.xml",function(xml){ alert( $("title",xml).text() ); }); This only works w

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 y

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] 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. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECT

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) rea

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 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 ro

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 l

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 http://aheimlich.freepgs.com/tests/jquery/speed-test

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 >

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

Re: [jQuery] JQuery driven site

2006-12-19 Thread Marshall Salinger
That is a great way to learn jQuery. Create an actual web app that has could be useful. I look forward to any updates or improvements as you continue developing. Thanks for sharing. -Marshall -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stefan Holm

Re: [jQuery] JQuery driven site

2006-12-19 Thread Christopher Jordan
ROFL!! :o) Mike Alsup wrote: My kids must be put to sleep... That seems a bit harsh. What did they do to deserve that? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQ

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

Re: [jQuery] JQuery driven site

2006-12-19 Thread Mike Alsup
> My kids must be put to sleep... That seems a bit harsh. What did they do to deserve that? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] JQuery driven site

2006-12-19 Thread Stefan Holmberg
andy and jörn, thank you for taking your time. My kids must be put to sleep so I'll try to be short: andy - you have not discouraged me :) I should maybe have pointed out that this started out pretty much as a "experimental site" - more for me to learn JQuery in conjunction with ASP.NET than to

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

2006-12-19 Thread Karl Swedberg
Wow, the man himself! Thanks for the reply, Joe. You're right, an update did the trick. Works with FCKEditor, no problem now. Firefox didn't know that there was an update to be had. I guess the update manager doesn't check beta revisions? Please excuse the gushing, but your extension is AMA

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

2006-12-19 Thread joehewitt
The very first Firebug beta broke FCKEditor, but that bug has been fixed. I'd stringly recommend installing the latest Firebug beta, it has come a long way and doesn't interfere with sites anymore (as far as I know, still waiting for more feedback). - Joe Karl Swedberg-2 wrote: > > On Dec 14,

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 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 th

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] 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 p

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

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 add

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(){ > $.g

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 set

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

2006-12-19 Thread Karl Swedberg
On Dec 19, 2006, at 2:06 PM, Jonathan Sharp wrote: Would you be interested in adding this to your plugin? Actually, that question should be directed toward Alex Brem, the plugin's creator. Sorry if I gave the impression that the plugin was mine. Alex, what do you think? --Karl On Dec

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 nu

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, -Jo

[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 http://www.aspcode.net/articles/l_en-US/t_default/ASP.NET/ASP.NET2.0/Ajax/category_61.aspx

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 current

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: http://www

[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] 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 mys

[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

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

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

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 23.1

[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 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: > http://yehuda.jquery.com

[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] 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 w

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

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

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, 2

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 mar

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

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 and page 2 could have If the same script is being included on multiple pages, it might be necessar

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, Franck.

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 reg

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'

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 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, > > > 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

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:

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 r

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, 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,

[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 element's content with current year.

  1   2   >