[jQuery] Manipulating several independent elements at once

2007-03-01 Thread Bernd Matzner
Hi, is there a way to manipulate different selectors in one step? $('#a').show(); $('#b').show(); $('#e').show(); I.e. I don't want to replicate the show() part three times, but sort of group the #a, #b, #e selectors. Of course, this is an example, I need a general method of achieving this.

Re: [jQuery] Manipulating several independent elements at once

2007-03-01 Thread David Duymelinck
Bernd Matzner schreef: Hi, is there a way to manipulate different selectors in one step? $('#a').show(); $('#b').show(); $('#e').show(); I.e. I don't want to replicate the show() part three times, but sort of group the #a, #b, #e selectors. Of course, this is an example, I need a

Re: [jQuery] Manipulating several independent elements at once

2007-03-01 Thread Dmitrii 'Mamut' Dimandt
I guess that would be: $(#a, #b, #c).show(); Bernd Matzner wrote: Hi, is there a way to manipulate different selectors in one step? $('#a').show(); $('#b').show(); $('#e').show(); I.e. I don't want to replicate the show() part three times, but sort of group the #a, #b, #e selectors.

Re: [jQuery] Running a function when something changes...

2007-03-01 Thread Nicolas Hoizey
Untested, but reading the code I assume this would work: $(#something).ajaxSuccess(fn); function fn(r, s) { $(this).unbind(ajaxSuccess); // do what you want, then rebind $(this).ajaxSuccess(fn); } It seems unbind doesn't work on ajaxSuccess or ajaxStop... Still didn't find how to

[jQuery] sortable:how to with tables?

2007-03-01 Thread Stefan Kilp [sk-software]
hi, i tried to test interface sortables with a table structure which doesn't realy work. is there a chance to get it running with a tablestructure or are there any other solutions. i don't realy want to use div span span ... /div because i have to fix width of each

Re: [jQuery] ANNOUNCE: Thickbox Reloaded alpha

2007-03-01 Thread agent2026
I agree, but what bothers me about the loading more is that the entire Thickbox (other than the overlay) disappears while this is happening. It would be less disturbing if the 'ui' stayed - the border, margin/background, links/txt, etc. - and just the image changed. I like your idea for the

Re: [jQuery] nth-child selector

2007-03-01 Thread Dan Eastwell
Thanks chaps, great answers. Is :gt(n) a jQuery or CSS3 pseudo selector? PS Yehuda - The reason is that I'm not striping a table! Good answer nontheless! On 3/1/07, Yehuda Katz [EMAIL PROTECTED] wrote: Why do you want to ignore the first two items? A better solution might be to use thead to

Re: [jQuery] nth-child selector

2007-03-01 Thread Klaus Hartl
Klaus Hartl schrieb: Dan Eastwell schrieb: Thanks chaps, great answers. Is :gt(n) a jQuery or CSS3 pseudo selector? That's XPath! Forget that! It's jQuery, but an equivalent to XPath: [position() 2] becomes :gt(2) -- Klaus ___ jQuery mailing

Re: [jQuery] nth-child selector

2007-03-01 Thread Klaus Hartl
Dan Eastwell schrieb: Thanks chaps, great answers. Is :gt(n) a jQuery or CSS3 pseudo selector? That's XPath! -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

[jQuery] Another site using jQuery

2007-03-01 Thread Michael Price
Seems mobile networks and retailers rather like our script of choice :) Here's another one for the list if it isn't already there: http://www.dialaphone.co.uk/phone/Samsung_X830_White/ Spotted the tablesorter plugin and thickbox (I think?) Regards, Michael Price

Re: [jQuery] jQuery 1.1.2

2007-03-01 Thread Karl Rudd
I believe so. As I said an expando attribute is basically any non-standard attribute that gets added to an element (doesn't matter how). As Klaus notes, the memory leakage is only a problem in IE when the attribute references other DOM elements (directly, or indirectly via closures). Karl Rudd

Re: [jQuery] ANNOUNCE: Thickbox Reloaded alpha

2007-03-01 Thread [-Stash-]
Klaus Hartl wrote: [-Stash-] schrieb: A simple Cancel link would be superb - I think this is an essential addition! clicking on the overlay while loading will abort loading... that its not working is a bug on my side. is that sufficient? OK, I just tested with own hacked about version

Re: [jQuery] ANNOUNCE: Thickbox Reloaded alpha

2007-03-01 Thread Klaus Hartl
[-Stash-] schrieb: Klaus Hartl wrote: [-Stash-] schrieb: A simple Cancel link would be superb - I think this is an essential addition! clicking on the overlay while loading will abort loading... that its not working is a bug on my side. is that sufficient? OK, I just tested with own

Re: [jQuery] ANNOUNCE: Thickbox Reloaded alpha

2007-03-01 Thread Klaus Hartl
agent2026 schrieb: I agree, but what bothers me about the loading more is that the entire Thickbox (other than the overlay) disappears while this is happening. It would be less disturbing if the 'ui' stayed - the border, margin/background, links/txt, etc. - and just the image changed. I

[jQuery] problem with jquery and IE6.0

2007-03-01 Thread [EMAIL PROTECTED]
hi guys i have created a plugin for Jquery, this plugin interface Asterisk via AJAM, work perfectly with Firefox but no with IE. I dont understand where is the error or if this is a bug of the asterisk webserver the code is very simple i add a little example: var Response = $.ajax({

Re: [jQuery] how to make the function in forms + ajax?

2007-03-01 Thread amircx
guess no one knows ? :( amircx wrote: hey. im using the ajax form plugin of jroes, http://www.amir.cx/ajax/test3/stable.php till now i success to do the rules inside the tag, but where i can put inside that code a properties like rules: { firstname: { required: true },

Re: [jQuery] jQuery toXML

2007-03-01 Thread Mark Gibson
Jason Karns wrote: I saw your toXML plugin and the thread where you were discussing its creation. I've run into a situation where I need to serialize the page to XML. However, the majority of the page is form elements and I need the actual values of these elements serialized, and not the

Re: [jQuery] Form validator 0.2 causes problems in IE6

2007-03-01 Thread amircx
the link is now working... not sure if it was before ;) try now amircx wrote: hey, when i run form validator from http://bassistance.de/jquery-plugins/jquery-plugin-validation/ , after putting the uncompressed version, its working fine in ie 7 but in ie 6 its returns me error: (here is

Re: [jQuery] jQuery 1.1.2

2007-03-01 Thread Chris Ovenden
I'm confused. Are these expandos proprietory Microsoft attributes with a specific meaning, or can it also apply to a non-standard attribute that I may invent for a particular purpose (eg all collapsible elements on a page might have a custom attribute collapsible=true)? If it's the latter, I

Re: [jQuery] Announce: Unobtrusive JavaScript with jQuery andsymfony

2007-03-01 Thread François Zaninotto
David, What you ask is exactly what the plugin does. Take a look at the blog post explaining how you can use it to replace obtrusive javascript at: http://redotheweb.com/2007/02/28/unobtrusive-javascript-made-possible/ François -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL

Re: [jQuery] problem with edit in place on HTML coding.

2007-03-01 Thread Mika Tuupola
On 1 Mar 2007, at 02:15, Mark wrote: yea.. i was just thinking about the same.. i think i`m gonna give that a try.. 2007/2/28, Karl Rudd [EMAIL PROTECTED]: Unfortunately you can't just assign a function that runs on the server to JavaScript (running on the client). The best you could

Re: [jQuery] Announce: Unobtrusive JavaScript with jQuery andsymfony

2007-03-01 Thread David Duymelinck
François Zaninotto schreef: David, What you ask is exactly what the plugin does. Take a look at the blog post explaining how you can use it to replace obtrusive javascript at: http://redotheweb.com/2007/02/28/unobtrusive-javascript-made-possible/ It's my mistake, I got it now you can

Re: [jQuery] how to make the function in forms + ajax?

2007-03-01 Thread Mike Alsup
This looks like a question about the validator plugin. You may want to use that in the subject line. rules: { firstname: { required: true }, age: { number: true }, password: { min: 5, max: 32 } }, messages { password: Please enter a password between 5 and 32

Re: [jQuery] jqModal r7 release!

2007-03-01 Thread David Duymelinck
Brice Burgess schreef: Ladies and Gentleman of the jQuery, ...errr, more so the Gentleman... I am happy to bring you jqModal r7, codenamed listen. R7 is a major feature enhancer, and brings about some API changes and parameter reduction. I recommend upgrading porting your existing code

Re: [jQuery] jquery accordion plugin settings help

2007-03-01 Thread Schnuck
The hidespeed is measured in milliseconds, using the same units as jQuerys built-in animations. So the smaller the value, the faster the animation. Try to simply increase the value, that should give you a smooth animation. that indeed worked, however still odd, the same value was smooth

Re: [jQuery] problem with edit in place on HTML coding.

2007-03-01 Thread Mark
thanx for the suggestion. gonna try that 2007/3/1, Mika Tuupola [EMAIL PROTECTED]: On 1 Mar 2007, at 02:15, Mark wrote: yea.. i was just thinking about the same.. i think i`m gonna give that a try.. 2007/2/28, Karl Rudd [EMAIL PROTECTED]: Unfortunately you can't just assign a function

Re: [jQuery] Need some guidance...

2007-03-01 Thread Rick Faircloth
Thanks for the explanation and code, Daemach! As I study it, it begins to make more and more sense. (Not to say that I could write it, but at least I'm beginning to understanding how the parts relate...) I'll work with this code some and see what I can do. I'll check out the link to

Re: [jQuery] jQuery 1.1.2

2007-03-01 Thread Fil
@ [EMAIL PROTECTED] : Fil, did you ever get a definition of DOM 0 expandos... Now I got plenty, thanks :) -- Fil ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Need some guidance...

2007-03-01 Thread Christopher Jordan
Gotcha. I thought that might be the case. Good on ya. ;o) Daemach wrote: Yeah it's education - it's good for new folks to see that you can pass complex structures back and forth seamlessly.A simple value would be fine in this case. I like the loop over the inputs to create the object in

Re: [jQuery] Need some guidance...

2007-03-01 Thread Christopher Jordan
Hmm... I hadn't thought of that. So you're saying that you would eliminate the looping over the argument structure and just set my = arguments;? Would that make a *copy* of the arguments structure in the 'my' variable, or would 'my' be a *reference* to the arguments structure? Chris Daemach

[jQuery] Bug in interface highlight effect in IE7

2007-03-01 Thread Priest, James \(NIH/NIEHS\) [C]
I posted yesterday about an issue I was having with the highlight effect (from interface) firing twice... So after looking at my code again this AM - I went to the Interface site itself (http://interface.eyecon.ro/demos/ifx.html) and the highlight effect appears broken there as well. Works fine

Re: [jQuery] Need some guidance...

2007-03-01 Thread Christopher Jordan
Rick, what Daemach means by 'ser/deser' is serialize/deserialize. Serialization is taking a JavaScript object and formatting it into a proper wdx packet (or JSON string, or whatever). De-serialization then is the reverse of that process, taking the serialized data and turning it back into

[jQuery] Question about binding .click() (and other events) to parentless elements

2007-03-01 Thread Weaver, Scott
I noticed somewhat odd behavior when using .click() on newly created elements. If the .click() is assigned prior to the element being attached to the DOM, the element behaves as if there is no event bound to it. var removeLink = $(a href='#'Remove/a).click(function() {alert('hello');});

[jQuery] metadata by means of metaobjects

2007-03-01 Thread Andrea Ercolino
I was wondering if anyone is using my http://www.mondotondo.com/aercolino/noteslog/?page_id=105 Metaobjects plugin as a replacement for the metadata plugin. It's now at version 1.2 and I'm really proud of this simple tool. The best features of Metaobjects are: -- valid XHTML mark-up -- auto

Re: [jQuery] Question about binding .click() (and other events) to parentless elements

2007-03-01 Thread Abel Tamayo
This won't help your problem at all, but I would also like to add that I've found exceptions in IE6 when adding css attributes to an element that hasn't still been attached to the DOM, i.e: var elem = $(li).css(color, red); I don't know if these problems are still present in the new release

Re: [jQuery] interface imagebox

2007-03-01 Thread Benjamin Sterling
Klaus, Brice had given you credit for that on his jqModal site, so I figured I keep the ball rolling :) -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

[jQuery] Path problem with Imagebox

2007-03-01 Thread Janet Weber
Hi I use Joomla and it is installed in the root of my website. hence I don't use a \Joomla directory. I can't get ImageBox the work right in this configuration. When the box opens it doesn't display the loading graphic and when the box is open is doesn't display the close button at all. I have

Re: [jQuery] Question about binding .click() (and other events) to parentless elements

2007-03-01 Thread Andrea Ercolino
Quite expected behavior :-) You should always use jQuery( htmlSnippet ) and attach it to the dom as soon as possible. This also works fine, and is a typical chain: var removeLink = $( # Remove ) .appendTo( .portlet .handle ) .click( function() { alert( 'hello' ); } ); --Andrea Weaver,

Re: [jQuery] Path problem with Imagebox

2007-03-01 Thread Andrea Ercolino
Hi Janet. I didn't use ImageBox ever, but the docs here: http://interface.eyecon.ro/docs/imagebox give two options that I think refer exactly to your issue: textImage - String - mandatory - when a galalry it is build then the iteration is displayed textImageFrom - String - mandatory - when a

Re: [jQuery] Need some guidance...

2007-03-01 Thread Daemach
It's a reference, but in this case you're just trying to avoid having to type arguments so it works - I do the same thing. The only time you really need to do a deep copy is if you are planning to manipulate the second structure and need to keep the first intact for some reason. Christopher

[jQuery] jQuery - Timed Tabs

2007-03-01 Thread Bruce
I'm incorporating the jquery tabs for a client on his site, and he's asking if the tabs could be timed to change. Like at 7pm tab2 shows, 2am tab3 shows, etc?? I know any tab can be set to show by default, so it seems timer is possible? if someone can point me in the right sirection much

Re: [jQuery] Path problem with Imagebox

2007-03-01 Thread Andrea Ercolino
Sorry, disregard my previous message. Here is what you need: script type=text/javascript $(document).ready( function() { $.ImageBox.init( { loaderSRC: 'images/imagebox/loading.gif',

Re: [jQuery] Announce: Unobtrusive JavaScript with jQuery andsymfony

2007-03-01 Thread François Zaninotto
I'm not sure I get you... All the helpers described in the blog post are bundled with the plugin. Or do you mean something else? -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de David Duymelinck Envoyé : jeudi 1 mars 2007 13:06 À : jQuery Discussion.

Re: [jQuery] Path problem with Imagebox

2007-03-01 Thread Janet Weber
Hi Andrea I tried that, but I get an error message when I modify the index.php of the plugin. It says there is a T_string error in the script type=text/javascript line. Janet -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Andrea Ercolino Sent: Thursday,

Re: [jQuery] Path problem with Imagebox

2007-03-01 Thread Andrea Ercolino
I don't know... are you sure you replaced the square brackets? Janet Weber wrote: Hi Andrea I tried that, but I get an error message when I modify the index.php of the plugin. It says there is a T_string error in the script type=text/javascript line. Janet -Original

[jQuery] Load method help

2007-03-01 Thread Josh Nathanson
Hey all, I'm trying to bind a load method to a form element, so that it will assess the value of the element on page load (document ready), and do something accordingly. What I have is below, but it's not working...in fact I can't seem to get the load method to work in any context. Can

Re: [jQuery] Pjq Demo

2007-03-01 Thread Alex Cook
Gimmee some docs, I wanna play... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Richard Thomas Sent: Wednesday, February 28, 2007 5:42 PM To: jQuery Discussion. Subject: [jQuery] Pjq Demo I started working on this a while ago and had another demo up

Re: [jQuery] Load method help

2007-03-01 Thread Chris Domigan
Josh, Using .load() within the scope of $(document).ready() is redundant, since everything in that block is performed on page load anyway. Also (1) you can use the :checked selector, and (2) this.value will work just fine and saves the jquery call. Try this: $(document).ready(function() {

Re: [jQuery] jQuery - Timed Tabs

2007-03-01 Thread Klaus Hartl
Bruce schrieb: I'm incorporating the jquery tabs for a client on his site, and he's asking if the tabs could be timed to change. Like at 7pm tab2 shows, 2am tab3 shows, etc?? I know any tab can be set to show by default, so it seems timer is possible? if someone can point me in the right

Re: [jQuery] Load method help

2007-03-01 Thread Josh Nathanson
Thanks Chris, perfect, that works great. Curious about the each method, why is that necessary, if there will always only be one checked radio button with the name caltype? Is that because there has to be some method to operate on the element? Pardon my noobness... - Original Message

Re: [jQuery] Load method help

2007-03-01 Thread Klaus Hartl
Chris Domigan schrieb: Josh, Using .load() within the scope of $(document).ready() is redundant, since everything in that block is performed on page load anyway. Also (1) you can use the :checked selector, and (2) this.value will work just fine and saves the jquery call. I'd like to add,

Re: [jQuery] Load method help

2007-03-01 Thread Chris Domigan
$() effectively returns an pseudo-array of the elements that match the specified query. The .each() method applies a function to each element in that array. In your case the query matches only one element in the DOM, so there is only one element in the array, and .each() will be performed once.

Re: [jQuery] jQuery 1.1.2

2007-03-01 Thread Brian Cherne
Expandos are not proprietary to Microsoft. They are custom attributes. For instance: var oDiv = document.getElementById('myDiv'); oDiv.collapsible = true; // safe expando var oSpan = document.getElementById('mySpan'); oDiv.relatedSpan = oSpan; // potentially dangerous expando

Re: [jQuery] jQuery 1.1.2

2007-03-01 Thread Mike Alsup
Please correct me if I'm understanding this the wrong way. Strings are safe. Object references are not. That's correct. It's safe to store primitives in an expando because the aren't reference counted for garbage collection. But objects are trouble. An IE memory leak pattern is as simple as

Re: [jQuery] jqModal r7 release!

2007-03-01 Thread Brice Burgess
David Duymelinck wrote: It's aready r9 but the plugin stays the same :) I've been working on some IE6 fixes.. just haven't notified the list yet :) I finally got around to use the plugin but i had a problem with the (function($){})(jQuery); code, in firebug i got the error: is not a

Re: [jQuery] Path problem with Imagebox

2007-03-01 Thread Janet Weber
Hi Andrea The code causes a Parse error: syntax error, unexpected '' in /home/janet/public_html/mambots/content/mosthickbox.php on line 32 no matter where I out it in the file, Janet -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Andrea Ercolino Sent:

[jQuery] FF flicker with toggle

2007-03-01 Thread rolfsf
I'm getting a flicker in FF2 mac... almost like Firefox is performing toggle twice on this page: http://www.monkeypuzzle.net/testfiles/jquery/slidepanel/index3_alt.html click on the vertical gray bar to toggle the left panel open and closed It's seems to be smooth in Safari IE... I thought

[jQuery] IE Inconsistency - $.clone != clone

2007-03-01 Thread Brice Burgess
I've set up a simple test page demonstrating an Internet Explorer inconsistency with $.clone() -- I believe this is already known about, although have tried the latest in SVN it does not appear fixed. In short, under Internet Explorer, the scope of clones is the cloned element (donor), not

Re: [jQuery] :first selector perofmance question

2007-03-01 Thread Brice Burgess
John Resig wrote: Unfortunately, not in any way that is universally practical. The div:first query is obviously improvable, but when you get into queries like [EMAIL PROTECTED] it becomes a lot less clear. I'll think about improving TAG:first/last - as that seems like a common case, at

Re: [jQuery] IE Inconsistency - $.clone != clone

2007-03-01 Thread John Resig
Brice - You should file a bug concerning this (or re-open the one that was closed before): http://dev.jquery.com/ticket/921 And re-post this to the dev list. I suspect that we may have only fixed on particular case concerning this event/cloning bug. --John On 3/1/07, Brice Burgess [EMAIL

Re: [jQuery] :first selector perofmance question

2007-03-01 Thread Brice Burgess
Brice Burgess wrote: what would we need jQuery for then though? ;( Apologies to anyone offended by this. Besides the most excellent selectors, the real power of jQ lays in its extendibility, traversal/manipulation routines, animation stack, and ease of ajax! In my opinion at least ;) ~

Re: [jQuery] Path problem with Imagebox

2007-03-01 Thread Benjamin Sterling
Janet, I am just jumping in here, but those errors you are getting are php errors. So, if you need to add the javascript code to the page, you need to make sure you put it outside of the php tags. ?php ? script /script -- Benjamin Sterling http://www.KenzoMedia.com

Re: [jQuery] Path problem with Imagebox

2007-03-01 Thread Janet Weber
Hi Benjamin You where right about the php. All that I added to the file to fix the problem was to add ? and ?php between the style and mainframe tags: /style\n; ? ?php $mainframe-addCustomHeadTag($html); It works.Knock on wood Janet -Original Message- From: [EMAIL

[jQuery] Enhancements to Imagebox

2007-03-01 Thread Torbjorn Tornkvist
Hi, I've done some enhancements to Imagebox that may be of general interest. Added: + a stop() function that undo what init() does. + a closeHook option that is called when Imagebox is closed. + a nextImage2 and prevImage2 element that are placed to the left of closeHTML I'm not sure what the

Re: [jQuery] metadata by means of metaobjects

2007-03-01 Thread Erik Beeson
I'm curious to hear other people's thoughts on this approach. If it's a sound idea, why isn't it part of the official metadata plugin? --Erik On 3/1/07, Andrea Ercolino [EMAIL PROTECTED] wrote: I was wondering if anyone is using my http://www.mondotondo.com/aercolino/noteslog/?page_id=105

Re: [jQuery] metadata by means of metaobjects

2007-03-01 Thread Benjamin Sterling
I read thru the site and I must admit that I not exactly sure of the benefit. Are there real work examples? Can you explain the benefits? Thanks, -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com ___ jQuery mailing list

Re: [jQuery] jQuery toXML

2007-03-01 Thread Daemach
Another option for xml-compliant interlanguage data exchange is WDDX, which can be found at http://www.openwddx.org. Just download the SDK which contains prebuilt objects/code/functions in addition to substantial documentation for serializing and deserializing to and from most languages that are

Re: [jQuery] metadata by means of metaobjects

2007-03-01 Thread John Resig
The problem is that it's a fundamentally different way of dealing with Metadata. Metaobjects is much more pro-active, whereas the Metadata plugin is passive in nature. That's not a bad thing, it's just different. For example, with the Metaobjects plugin you can setup rules to have data bound to

[jQuery] Accordion Menu setting

2007-03-01 Thread itmanager
Hi everybody, Ive been testing the accordion menu (http://docs.jquery.com/Tutorials:Accordion_Menu_%28Screencast%29) I try several things on the code but didnt work. The accordion menu, by default, on click slide and show the items, but if I click again on the same item, the menu doesnt hide. I

Re: [jQuery] jqModal r7 release!

2007-03-01 Thread David Duymelinck
Brice Burgess schreef: Are you compressing (JS compressor, not gzip output) the combined javascript output? I've played with similar techniques, and found compressors and the capsulated function don't play well. No i didn't use any compression method but i do use it in an asp.net page