[jQuery] First day of week -- date picker plugin

2006-11-15 Thread Toño Capuleto
Hi to all.. Is there any way to change the first day of week in the datepicker plugin? I've been trying with no success.. Any one can help? thanx.. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] jQuery 1.1 by the end of Nov

2006-11-15 Thread Corey Jewett
Just throwing a little fuel on the fire. If anybody cares give this a whirl -- build your own custom jQuery. Maybe I'll figure out how to do plugins if anyone is interested. http://corey.jquery.com/cgi-bin/make.cgi Corey On Nov 14, 2006, at 9:32 PM, John Resig wrote: I definitely agree.

Re: [jQuery] window plugin: update

2006-11-15 Thread Dan Atkinson
Gilles, Is there any new information about this? Webunity | Gilles van den Hoven wrote: Hi Guys, You've probaly seen the Ajaxian post on the YUI dialog. Well i am happy to report that i've almost completed my plugin (after i released cssHover i did a complete rewrite) and it offers

Re: [jQuery] 3D Carousel

2006-11-15 Thread Dan Atkinson
Nice! Almost Flash-like! Greased Lightbox... Nice! For those who want more info about it, and its Greasemonkey script, go here: http://shiftingpixel.com/lightbox/ Stefan, Excellent work yet again! Stefan Petre wrote: http://interface.eyecon.ro/development/demos/carousel.html

Re: [jQuery] Draggable Notepad

2006-11-15 Thread Dan Atkinson
Brujah wrote: I am trying to write a draggable notepad. I use a textarea where the user can enter data. It basically works, but while I move the box the text is not displayed. What could be the problem here? The code is small:

Re: [jQuery] Which CMS / Wiki jQuery.com is using

2006-11-15 Thread digital spaghetti
If you are looking for a CMS that is powered by jQuery, Drupal version 5 (currently in Beta) is using jQuery as it's core JS library, and is integrating it into the main API. For example, to add a jQuery function you use the drupal_add_js hook in Drupal: ?php drupal_add_js (

Re: [jQuery] Is this a typo in the API, or am I being dense?

2006-11-15 Thread Jörn Zaefferer
I was looking at the toggleClass method in the API, and it says this: jQuerytoggleClass( String class ) Adds the specified class if it is present, removes it if it is not present. [...] Is this a genuine typo or am I missing something? :o) It looks very much like a typo.

Re: [jQuery] jQuery 1.1 by the end of Nov

2006-11-15 Thread Mika Tuupola
On Nov 14, 2006, at 23:46, [EMAIL PROTECTED] wrote: Perhaps a download configuration tool similar to what is offered with the interface plug-in? Allowing the user to choose the modules he/she needs, thus creating their customized baseline JQuery file on the fly, would be great! IMO a

Re: [jQuery] jQuery 1.1 by the end of Nov

2006-11-15 Thread Jörn Zaefferer
I'm personally not sure that the entire ajax.js should be part of the core. jQuery to me is about DOM searching and manipulation. Its Ajax features are excellent, but I wouldn't cry at all if I had to include the ajax plugin or official extension or whatever you'd like to call it, only when

Re: [jQuery] jQuery 1.1 by the end of Nov

2006-11-15 Thread Oliver Boermans
Strip the redundancy - excellent idea. On 15/11/06, John Resig [EMAIL PROTECTED] wrote: 1) Strip out all helper functions into an external plugin. 2) Change the official (in SVN) plugins to no longer use the helpers. 3) Change all docs to no longer use the helpers. Towards the top of this

Re: [jQuery] Bug #267 is now fixed

2006-11-15 Thread Jörn Zaefferer
This seemed to be a bug that affected several apps so I wanted to let the list know I just posted a fix to SVN. http://jquery.com/dev/bugs/bug/276/ Please test if you can because 1.0.4 is coming soon and we don't want to introduce bugs or cause problems with any existing plugins. Good work

Re: [jQuery] jQuery 1.1 by the end of Nov

2006-11-15 Thread Jörn Zaefferer
I was just thinking the same thing. Would this be possible? The file names would need to be consistent so that a plug in could require jquery+ajax+forms.js or something like that. Version numbers could get tricky. Another point: It would be nice to see from the filename if the content is

Re: [jQuery] jQuery 1.1 by the end of Nov

2006-11-15 Thread Jörn Zaefferer
Original-Nachricht Datum: Tue, 14 Nov 2006 16:24:12 -0500 Von: Rey Bango [EMAIL PROTECTED] An: jQuery Discussion. discuss@jquery.com Betreff: Re: [jQuery] jQuery 1.1 by the end of Nov The main suggestion I would have is that if you remove something, make it available in

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

2006-11-15 Thread Jörn Zaefferer
I recently had the wish for extended functions on arrays, hashs and objects like Prototype provides with extending the Array() object. I often used features like without() and truncate(). I am really thinking of rewriting/porting a lot of stuff for jQuery and call it jQuery Methods, but I

Re: [jQuery] Prototype compatibility - a different approach

2006-11-15 Thread Sam Collett
On 13/11/06, henrah [EMAIL PROTECTED] wrote: Hi Sam. That sounds like a good compromise. I've never seen that method to get the current scripts file name. Does it work in most browsers (inc IE 5.5+)? Actually, after a quick trawl through MSDN, I don't think the fileName property on

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

2006-11-15 Thread Paul Bakaus
Jörn,you're true about that, but there are many who actually do it this way, and I don't want to write a plugin for us geeks only :-)As I am trying out now, $A([1,2,3,4,5]).without(1) seems to work quite well. Even chaining does work then. 2006/11/15, Jörn Zaefferer [EMAIL PROTECTED]: I recently

Re: [jQuery] jQuery 1.1 by the end of Nov

2006-11-15 Thread Jörn Zaefferer
This just seems likely to generate a lot of extra support problems on the mailing list. Can't we just leave it up to people to build their own if they really want to cut it down below 20K? Good idea! Provide the full package, including DOM, event, FX and AJAX, as default, and give a

Re: [jQuery] new jQuery API draft

2006-11-15 Thread Jörn Zaefferer
It would be really nice if there was a search box. Perhaps as we type only the results that start with the string we type will remain, thus making it a lot faster to find what we are looking for. Scrolling can take a while, typing is fast. Just me 2 cents. The more money, the better! That

Re: [jQuery] jQuery 1.1 by the end of Nov

2006-11-15 Thread Jörn Zaefferer
Right now, the jQuery compressed build is teetering around 18-19KB, I really want to try and cut this down. Any thoughts on particular features that should be extracted into a plugin? I know the macros don't account for _that_ much core code but they do complicate the documentation

Re: [jQuery] $.val() limited in functionality?

2006-11-15 Thread Jörn Zaefferer
I often times just need to know the value of one form element and sometimes that could be a group of radio buttons, a select, a multiple select or just a regular input. The current $.val() method is limited only to inputs. I was curious if anyone else needed this funtionality and if it

Re: [jQuery] $.val() limited in functionality?

2006-11-15 Thread Klaus Hartl
For radios/checkboxes: Can we rely on searching for siblings? Or do we need to search for the name inside the current form? No, we can't! There may be labels around it or divs/lis whatever in between... It should search for the name in the document! -- Klaus

Re: [jQuery] jQuery 1.1 by the end of Nov

2006-11-15 Thread Klaus Hartl
Dunno how to handle the current oneEvents like oneclick: Extending bind with an additonal parameter for the number of events to handle before the handler should be removed would be one way, another to add a bindAmount() or binds(). Allowing a number of events to be defined before handler is

Re: [jQuery] Which CMS / Wiki jQuery.com is using

2006-11-15 Thread Fil
If you are looking for a CMS that is powered by jQuery, Drupal version 5 (currently in Beta) is using jQuery as it's core JS library, and is integrating it into the main API. Same story for SPIP : the next version will be fully jquery-aware. -- Fil

Re: [jQuery] $.val() limited in functionality?

2006-11-15 Thread Jörn Zaefferer
For radios/checkboxes: Can we rely on searching for siblings? Or do we need to search for the name inside the current form? No, we can't! There may be labels around it or divs/lis whatever in between... It should search for the name in the document! But the document may contain other

[jQuery] Opening popup window using jQuery to a.href?

2006-11-15 Thread digital spaghetti
Hi Folks, Ok, I am being stupid and can't work this out and it's probably so simple. What I want to do is keep my site XHTML valid, so I don't want target= params in any of my links, I want to use jQuery to take the href param from any clicked link with rel=nofollow which only my external links

Re: [jQuery] jQuery 1.1 by the end of Nov

2006-11-15 Thread Jörn Zaefferer
Dunno how to handle the current oneEvents like oneclick: Extending bind with an additonal parameter for the number of events to handle before the handler should be removed would be one way, another to add a bindAmount() or binds(). Allowing a number of events to be defined before handler

Re: [jQuery] Opening popup window using jQuery to a.href?

2006-11-15 Thread Dragan Krstic
Quick shot (not tested):$(document).ready( function(){$([EMAIL PROTECTED]).click( function() { window.open(this.href) }); });Use this to refer to clicked a element. 2006/11/15, digital spaghetti [EMAIL PROTECTED]: Hi Folks,Ok, I am being stupid and can't work this out and it's probably

Re: [jQuery] Opening popup window using jQuery to a.href?

2006-11-15 Thread Sam Collett
On 15/11/06, digital spaghetti [EMAIL PROTECTED] wrote: Hi Folks, Ok, I am being stupid and can't work this out and it's probably so simple. What I want to do is keep my site XHTML valid, so I don't want target= params in any of my links, I want to use jQuery to take the href param from any

Re: [jQuery] jQuery 1.1 by the end of Nov

2006-11-15 Thread Kolman Nándor
What about using an object instead of an array? bind(click, handler, 1, {x: 1}); bind(click, handler, {x: 1}); ... Nandi -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jörn Zaefferer Sent: Wednesday, November 15, 2006 1:22 PM To: jQuery Discussion.

[jQuery] aborting an ajax request

2006-11-15 Thread Renato Formato
Hi, i was searching for a way to abort an existing ajax request, not on timeout but explicitly and i did not find anyone. I propose to let the ajax function return the XMLHttpRequest object. This light change would allow to abort the request. To have this feature working for all ajax request,

Re: [jQuery] Opening popup window using jQuery to a.href?

2006-11-15 Thread digital spaghetti
Thanks guys, I forgot to mention I had also tried this.href, but it didn't work either, but I had it in so thats probably why. I knew I got the basic idea, it was just me being stupid :) Thanks again. Tane On 11/15/06, Dragan Krstic [EMAIL PROTECTED] wrote: $(document).ready(

Re: [jQuery] jQuery 1.1 by the end of Nov

2006-11-15 Thread Blair Mitchelmore
Since this has come up again, I thought I'd mention - despite my distate for plugin pimping - my own event++ system ( http://jquery.offput.ca/event++ ) I wrote which could be used as the new system. It can handle additional arguments sent to the event simply by adding arguments to the event

Re: [jQuery] jQuery 1.1 by the end of Nov

2006-11-15 Thread Blair Mitchelmore
I actually probably should have explicitly showed the syntax for my event number handling technique. I used an optional first argument which defined that. If the first argument isn't a number then it doesn't need to worry about that and just goes through with a regular event bind.

Re: [jQuery] jQuery 1.1 by the end of Nov

2006-11-15 Thread Jörn Zaefferer
Hi Blair! Since this has come up again, I thought I'd mention - despite my distate for plugin pimping - my own event++ system ( http://jquery.offput.ca/event++ ) I wrote which could be used as the new system. It can handle additional arguments sent to the event simply by adding arguments

Re: [jQuery] Opening popup window using jQuery to a.href?

2006-11-15 Thread Dragan Krstic
Once, when this.href didn't worked for me, I got url by innerHTML, but all links was a href="">2006/11/15, digital spaghetti [EMAIL PROTECTED]:Thanks guys, I forgot to mention I had also tried this.href, but itdidn't work either, but I had it in so thats probably why.I knewI got the basic idea,

Re: [jQuery] jQuery 1.1 by the end of Nov

2006-11-15 Thread Blair Mitchelmore
Well hello right back Jörn! Jörn Zaefferer wrote: Hi Blair! Since this has come up again, I thought I'd mention - despite my distate for plugin pimping - my own event++ system ( http://jquery.offput.ca/event++ ) I wrote which could be used as the new system. It can handle additional

Re: [jQuery] jQuery 1.1 by the end of Nov

2006-11-15 Thread Blair Mitchelmore
And to correct myself, my system didn't do that and it will not do that. In fact the arguments sent into the trigger call have precedence and in retrospect that makes some semblance of sense to me. So my below trigger example actually does this: $().trigger('click',arg5,arg6); // fn1 runs with

[jQuery] More event object strangeness

2006-11-15 Thread Klaus Hartl
Hi all, here's a problem I don't understand. I'm currentlx fixing my history/remote plugin for IE and what I need to do is adding to history only if a true click ocurred and not a triggered one. That works quite good by checking e.clientX. But in IE I found some strange behaviour, or I just

Re: [jQuery] $.val() limited in functionality?

2006-11-15 Thread Klaus Hartl
Jörn Zaefferer schrieb: For radios/checkboxes: Can we rely on searching for siblings? Or do we need to search for the name inside the current form? No, we can't! There may be labels around it or divs/lis whatever in between... It should search for the name in the document! But the

Re: [jQuery] jQuery 1.1 by the end of Nov

2006-11-15 Thread Jörn Zaefferer
The way I coded the trigger and handle functions in my system it worked like this (or at least it should. This is untested but theoretically sound and the way I intended for it to work). $().click(fn1,arg1,arg2); $().click(fn2,arg3,arg4); // someone clicks there // fn1 runs with

Re: [jQuery] More event object strangeness

2006-11-15 Thread Klaus Hartl
Forget about that immediatly! I checked for e in the callback of a load() function which causes that strange behaviour... Seems to be a closure problem: The parameter of the outer function gets not into the scope of the inner closure, which I thought it would do: $(this).click(function(e) {

Re: [jQuery] $.val() limited in functionality?

2006-11-15 Thread Dave Methvin
Currently val() is only a shortcut, but doesn't encapsulate anything useful. It would be nice to have it handling some more stuff. I wouldn't like to have it in an external plugin, that makes it difficult to access or find it when you actually need that functionality. Right now val() is a

Re: [jQuery] More event object strangeness

2006-11-15 Thread Jörn Zaefferer
Forget about that immediatly! I checked for e in the callback of a load() function which causes that strange behaviour... Seems to be a closure problem: The parameter of the outer function gets not into the scope of the inner closure, which I thought it would do:

[jQuery] jQuery support for namespace attributes

2006-11-15 Thread Tony Collins
Klaus Hartlwrote: I think, the correct way to select namespaced elements in CSS is this: table[my|data-url] So in jQuery I guess it would be: $('table[my|@data-url]') There is another recent thread discussing support for namespaces... I understand the CSS selector and have read the

Re: [jQuery] Bug #267 is now fixed

2006-11-15 Thread Brandon Aaron
On 11/15/06, Jörn Zaefferer [EMAIL PROTECTED] wrote: This seemed to be a bug that affected several apps so I wanted to let the list know I just posted a fix to SVN. http://jquery.com/dev/bugs/bug/276/ Please test if you can because 1.0.4 is coming soon and we don't want to introduce

Re: [jQuery] $.val() limited in functionality?

2006-11-15 Thread Jörn Zaefferer
Hi Dave! Currently val() is only a shortcut, but doesn't encapsulate anything useful. It would be nice to have it handling some more stuff. I wouldn't like to have it in an external plugin, that makes it difficult to access or find it when you actually need that functionality. Right

Re: [jQuery] jQuery support for namespace attributes

2006-11-15 Thread Jörn Zaefferer
I understand the CSS selector and have read the other thread but a true namespace selection based on xpath syntax doesn't work. As for writing a plug-in, I believe the issue could be corrected with a change to a regular expression. But, reg exps are, by their nature, difficult for me to

Re: [jQuery] Prototype compatibility - a different approach

2006-11-15 Thread Brandon Aaron
Anyone needing the compatibility can simply remap $ like this after loading jQuery: var $J = jQuery; $ = _$; I think other libraries would be nice to provide such an easy way to make them compatible with jQuery and others. -- Brandon Aaron On 11/13/06, henrah [EMAIL PROTECTED] wrote: Hi

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

2006-11-15 Thread Brandon Aaron
On 11/15/06, Paul Bakaus [EMAIL PROTECTED] wrote: Even chaining does work then. chaining... :) -- Brandon Aaron ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] More event object strangeness

2006-11-15 Thread Dave Methvin
Seems to be a closure problem: The parameter of the outer function gets not into the scope of the inner closure, which I thought it would do: $(this).click(function(e) { $(this).load(url, function() { // where's e? }); }); Here's my guess. jQuery's event handling

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

2006-11-15 Thread Paul Bakaus
:Pby the way, there's a first version in the SVN, in plugins/methods ! Feel free to add something.2006/11/15, Brandon Aaron [EMAIL PROTECTED] :On 11/15/06, Paul Bakaus [EMAIL PROTECTED] wrote: Even chaining does work then. chaining... :)--Brandon

Re: [jQuery] More event object strangeness

2006-11-15 Thread Klaus Hartl
Jörn Zaefferer schrieb: $(this).click(function(e) { $(this).load(url, function() { // where's e? }); }); Can somebody explain that to me? I can get away with: $(this).click(function(e) { var trueClick = e.clientX; $(this).load(url, function() {

Re: [jQuery] optimize/convert current code to jquery

2006-11-15 Thread bmsterling
bmsterling wrote: Hey all, Attached is a function that I currently use to take the results of an xml import and put it into an array that I can use thru-out the code. you will see some function in there like getChildNodesByAttribute, getAttribute and getElementsByTagName, these are

Re: [jQuery] window plugin: update

2006-11-15 Thread Christopher Jordan
Gilles, I really appreciate the hard work you're putting into this plug-in. It sounds like it's gonna be awesome! I too would love to know the status of the plug-in. :o) Chris Dan Atkinson wrote: Gilles, Is there any new information about this? Webunity | Gilles van den Hoven wrote:

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

2006-11-15 Thread Jörn Zaefferer
by the way, there's a first version in the SVN, in plugins/methods ! Feel free to add something. I took a look at your implementation: It looks like you are extending a String or Array object instead of it's prototype. Won't that cause the same problems when used with for-in loops? -- Jörn

Re: [jQuery] jQuery 1.1 by the end of Nov

2006-11-15 Thread Brian Miller
Personally, I'm noticing a lot of requests for XML namespace selection in the parser. Can we get that into 1.1? Apperently, making $('myns:div') would raise holy hell because it would clash with the pseudos, but $('myns|div') might be doable. Can we make $('myns:div') work if there's no pseudo

Re: [jQuery] jQuery 1.1 by the end of Nov

2006-11-15 Thread Rik Lomas
Without sounding rude, I don't think I would ever use this and I don't think most developers would either. We need jQuery to be small and flexible, not a huge bloated framework like some of the other libraries (that I will leave nameless)... Maybe extending jQuery, or building a plug-in may be the

Re: [jQuery] .empty() not emptying...

2006-11-15 Thread Christopher Jordan
Thanks Brandon. I'm just an idiot, and didn't see that Erik had already responded last night, :0/ Anyway, I appreciate the possible alternative solution. Chris Brandon Aaron wrote: I believe the solution provided should work: $("#id").val(""); and if it actually doesn't you could try:

Re: [jQuery] jQuery support for namespace attributes

2006-11-15 Thread Stephen Woodbridge
Klaus Hartl wrote: Stephen Woodbridge schrieb: Jörn Zaefferer wrote: I understand the CSS selector and have read the other thread but a true namespace selection based on xpath syntax doesn't work. As for writing a plug-in, I believe the issue could be corrected with a change to a regular

Re: [jQuery] .empty() not emptying...

2006-11-15 Thread Christopher Jordan
Thanks Erik, I completely missed the fact that you'd responded. **sheepish grin** I appreciate the help. :o) Chris Erik Beeson wrote: You don't want empty(), you want to set the value of the textarea to an empty string. Try (untested): $("#id").val(""); empty() is for removing child

[jQuery] Why does this code not work?

2006-11-15 Thread Rick Faircloth
Title: Why does this code not work? Hi, all Trying to grasp js and jQuerywhy wont this code work? (No response on my test page at all to the code) JQuery code: $(document).ready(function() { $(div.ann).find(p.title).hide().end().find(p.text).click(function() { var answer =

Re: [jQuery] .empty() not emptying...

2006-11-15 Thread Jörn Zaefferer
I'm trying to do what I thought was pretty simple: $(#id).empty(); where #id is the id of a textarea. I'd like to clear out the text area when my ajax call returns. What am I doin' wrong? bump... Can anybody help with this? Please provide some more information: What

Re: [jQuery] $.val() limited in functionality?

2006-11-15 Thread Mark Gibson
Jörn Zaefferer wrote: Currently val() is only a shortcut, but doesn't encapsulate anything useful. It would be nice to have it handling some more stuff. I wouldn't like to have it in an external plugin, that makes it difficult to access or find it when you actually need that functionality.

Re: [jQuery] jQuery 1.1 by the end of Nov

2006-11-15 Thread Jörn Zaefferer
Personally, I'm noticing a lot of requests for XML namespace selection in the parser. Can we get that into 1.1? Apperently, making $('myns:div') would raise holy hell because it would clash with the pseudos, but $('myns|div') might be doable. +1 for namespace selection. In one of

Re: [jQuery] jQuery 1.1 by the end of Nov

2006-11-15 Thread Jörn Zaefferer
Without sounding rude, I don't think I would ever use this and I don't think most developers would either. We need jQuery to be small and flexible, not a huge bloated framework like some of the other libraries (that I will leave nameless)... Maybe extending jQuery, or building a plug-in

Re: [jQuery] jQuery support for namespace attributes

2006-11-15 Thread Krzysztof FF
Stephen Woodbridge wrote: (...) Or escape the expression so we know it is explicitly XPath, or provide a separate function that is dedicated to XPath. -Steve ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ Both

[jQuery] StyleSheets

2006-11-15 Thread Alan Gutierrez
I'm not finding any methods for editing stylesheets. I'd like to change a style as it is defined in the document. -- Alan Gutierrez - 504 717 1428 - [EMAIL PROTECTED] - http://blogometer.com/ Think New Orleans - http://thinknola.com/

Re: [jQuery] Why does this code not work?

2006-11-15 Thread Sam Collett
On 15/11/06, Rick Faircloth [EMAIL PROTECTED] wrote: Hi, all… Trying to grasp js and jQuery…why won't this code work? (No response on my test page at all to the code…) JQuery code: $(document).ready(function() { $(div.ann).find(p.title).hide().end().find(p.text).click(function() {

Re: [jQuery] jQuery 1.1 by the end of Nov

2006-11-15 Thread Yehuda Katz
Yep. I used my patch to write an additional plugin that allowed:$(div[height10])which allows selectors based on CSS attributes. It'd be really easy to extend jQuery to include any other type of selector, as long as you built the appropriate RegExp parser. And it's only 43 *bytes* -- YehudaOn

Re: [jQuery] jQuery 1.1 by the end of Nov

2006-11-15 Thread Brian Miller
I'm not suggesting bloat here, Rik. I think that, at the very least, support for $('myns|whatever') is core stuff, and is doable without a lot of code. Since it's about the basic functionality of selection, I think that it's one of the few things that *shouldn't* be a plugin. I won't have time

Re: [jQuery] jQuery 1.1 by the end of Nov

2006-11-15 Thread Glen Lipka
Just a thought:You could put up a survey online asking:1. What should the maximum size of jQuery be with these modules (list current)? [enter number]2. Which modules do you think could be abstracted out of the core into plugins to save space? [checkboxes] 3. etc.Of course, this info doesn't make

[jQuery] val() to erase the value

2006-11-15 Thread Glen Lipka
When I did this: $(#someInput).val(); it made it null in FF but in IE it left it alone. How do I use val() to erase the current value? Glen ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] jQuery 1.1 by the end of Nov

2006-11-15 Thread Rik Lomas
Even if it is 10-15 lines, it's still lines I, and most developers, will never ever use. jQuery should be for the everyday basics, and the plug-ins are there to extend the base. On 15/11/06, Brian Miller [EMAIL PROTECTED] wrote: I'm not suggesting bloat here, Rik. I think that, at the very

Re: [jQuery] StyleSheets

2006-11-15 Thread Chris W. Parker
On Wednesday, November 15, 2006 8:07 AM Alan Gutierrez said: I'm not finding any methods for editing stylesheets. I'd like to change a style as it is defined in the document. That's probably because there are none. You don't (can't?) modify the .css file directly with js. Instead you modify

Re: [jQuery] $.val() limited in functionality?

2006-11-15 Thread Alex Cook
*raises hand* Yea, that'd be nice... I expected $.val() to return the value of any and all form elements, and was disappointed to find out otherwise. -ALEX -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brandon Aaron Sent: Tuesday, November 14, 2006

Re: [jQuery] StyleSheets

2006-11-15 Thread Alan Gutierrez
* Chris W. Parker [EMAIL PROTECTED] [2006-11-15 11:56]: On Wednesday, November 15, 2006 8:07 AM Alan Gutierrez said: I'm not finding any methods for editing stylesheets. I'd like to change a style as it is defined in the document. That's probably because there are none. You don't

Re: [jQuery] StyleSheets

2006-11-15 Thread Klaus Hartl
Chris W. Parker schrieb: On Wednesday, November 15, 2006 8:07 AM Alan Gutierrez said: I'm not finding any methods for editing stylesheets. I'd like to change a style as it is defined in the document. That's probably because there are none. You don't (can't?) modify the .css file

[jQuery] console for IE question

2006-11-15 Thread bmsterling
Hey, I am trying to use the console script in IE but it gives me a TypeError message. 'window.top.deBugWindow.document; is null or not an object I am using like: console.log(start init()); Is there anything else i need to do to use this? Any help would be great. -- View this message

Re: [jQuery] StyleSheets

2006-11-15 Thread Brandon Aaron
It is not all that easy to make cross-browser. Here is a snippet I wrote to do this ... http://www.nabble.com/Style-sheet-modification-snippet-tf2484859.html#a6928891 -- Brandon Aaron On 11/15/06, Alan Gutierrez [EMAIL PROTECTED] wrote: I'm not finding any methods for editing stylesheets. I'd

Re: [jQuery] $.val() limited in functionality?

2006-11-15 Thread Christopher Jordan
I have to admit, I didn't understand that $.val() was limited to only input elements, and I expected it to get the value of any element. The API says that $.val() will: Get the current value of the first matched element. The API says that $.val( string ) will: Set the value of every

Re: [jQuery] jQuery 1.1 by the end of Nov

2006-11-15 Thread Andre Lewis
I think that when newcomers find JQ, their default experience should pretty inclusive, i.e., definitely Ajax and Effects. That way, people won't be frustrated by the I saw it in the API but can't get it to work factor, and will be more likely to continue on to discover more jQuery goodness. How

Re: [jQuery] StyleSheets

2006-11-15 Thread Chris W. Parker
On Wednesday, November 15, 2006 9:05 AM Alan Gutierrez said: You can redefine css rules programatically. I've done so here... http://blogometer.com/repository/etude/jQuery/grid/grid.html Interesting! ___ jQuery mailing list discuss@jquery.com

Re: [jQuery] StyleSheets

2006-11-15 Thread Alan Gutierrez
* Klaus Hartl [EMAIL PROTECTED] [2006-11-15 12:15]: Chris W. Parker schrieb: On Wednesday, November 15, 2006 8:07 AM Alan Gutierrez said: I'm not finding any methods for editing stylesheets. I'd like to change a style as it is defined in the document. That's probably because

[jQuery] Grid and Storing State

2006-11-15 Thread Alan Gutierrez
I'd like to create a Grid for my application. I've started here... http://blogometer.com/repository/etude/jQuery/grid/grid.html ...with the first issue being one of sizing the columns. I'm doing this by applying a class to each column and heading in an HTML table and then adjusting the rules of

Re: [jQuery] jQuery support for namespace attributes

2006-11-15 Thread Dave Methvin
In an expression like this: myns|[EMAIL PROTECTED]|attr=whatever] How does myns get associated with the actual XML namespace URI? getElementByTagNameNS needs the URI, not the name. I have not needed namespaces before so I am not familiar with how that would work. As for how much code it takes,

Re: [jQuery] $.val() limited in functionality?

2006-11-15 Thread Dave Methvin
The API says that $.val() will: Get the current value of the first matched element. Yes, it is equivalent to $().attr(value) so it gets the value attribute of the first element. The API says that $.val( string ) will: Set the value of every matched element. Yes, it will set

Re: [jQuery] [jQuery-es] Cambiar cosas cuando la p ágina cargue

2006-11-15 Thread Reynier Perez Mira
Title: Re: [jQuery-es] Cambiar cosas cuando la página cargue Hola Choan: Empecemos por definir las variables y ahorrar caracteres. Ese `divs = new Array()` me provoca ardor de estómago. var divs = [ el-id-de-un-div, el-id-de-otro-div, etc. ]; Luego: `$(divs[activediv])` no va a

Re: [jQuery] $.val() limited in functionality?

2006-11-15 Thread Jonathan Sharp
On 11/15/06, Jörn Zaefferer [EMAIL PROTECTED] wrote: My conclusion so far: Add attrs(), remove val() and other shortcuts, and allow them via a shortcut function.I agree with this, I think this is the direction to go.-js ___ jQuery mailing list

Re: [jQuery] $.val() limited in functionality?

2006-11-15 Thread Mike Alsup
What about select-multiple? This, of course, does not work. val() will return the value of the first selected option in this case. Also note that simply adding a value attribute to something like a div won't work cross-browser. Mike ___ jQuery

Re: [jQuery] $.val() limited in functionality?

2006-11-15 Thread Mike Alsup
attr is not an alternative to val. It flat out won't work in FF for textareas, selects or anything w/o a true value attribute. Oops. My apologies. I was using a 1.0 version of jQuery for my test. Ignore the above. ___ jQuery mailing list

Re: [jQuery] $.val() limited in functionality?

2006-11-15 Thread Brandon Aaron
I'm just going to reply to myself ... I'm a little confused by the proposal of an .attrs() method and it seems unnecessary and using selectors is more than I want to remember or type. Getting ride of .val() is fine by me but there *needs* to be a method to serialize a single form element. Could

Re: [jQuery] Why does this code not work?

2006-11-15 Thread jyl
Hopefully you put the jQuery code in the head section between script../script and after script src=where/you/put/jquery.js/script Hi, all. Trying to grasp js and jQuery.why won't this code work? (No response on my test page at all to the code.) JQuery code: $(document).ready(function() {

Re: [jQuery] $.val() limited in functionality?

2006-11-15 Thread Jörn Zaefferer
I'm just going to reply to myself ... I'm a little confused by the proposal of an .attrs() method and it seems unnecessary and using selectors is more than I want to remember or type. Getting ride of .val() is fine by me but there *needs* to be a method to serialize a single form element.

Re: [jQuery] jQuery 1.1 by the end of Nov

2006-11-15 Thread Jörn Zaefferer
What exactly do you mean when you say the handler doesn't know which argument is passed via trigger versus bind? Can you give me an example of this so I can better understand the problem? I try. I take my tooltip plugin as an example, because I can avoid binding stuff to DOM elements.

[jQuery] cssHover update

2006-11-15 Thread Webunity | Gilles van den Hoven
Hi Guys, I forgot to add one fix to SVN, its comitted now. -- Gilles ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] [jQuery-es] Cambia r cosas cuando la página cargue

2006-11-15 Thread David Arango
On 11/15/06, Reynier Perez Mira [EMAIL PROTECTED] wrote: ¿Qué se supone que haga esta función y donde debo ponerla? La entendí más o menos pero algunas cosas no me quedaron claras del todo. Esa función debes ponerla en un archivo javascript que debes linkar en tu página web por medio del

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

2006-11-15 Thread Brandon Aaron
On 11/15/06, Jörn Zaefferer [EMAIL PROTECTED] wrote: Won't that cause the same problems when used with for-in loops? Yes, but only on the object itself and for/in shouldn't be used for arrays. I don't believe there should be a conflict. ___ jQuery

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

2006-11-15 Thread Brandon Aaron
I propose we break these out into their own plugins. Have a plugins/methods/strings, plugins/methods/arrays, etc. -- Brandon Aaron On 11/15/06, Paul Bakaus [EMAIL PROTECTED] wrote: :P by the way, there's a first version in the SVN, in plugins/methods ! Feel free to add something.

Re: [jQuery] parsing JSON with $.each

2006-11-15 Thread Michael Geary
From: Kevin Old I'm parsing some json successfully below, but I'd like to be able access the contents of the json object like this.[id] or this.[name]. function processData(json) { $.each(json, function(i) { $(#names).append(ID: + this[0] +

Re: [jQuery] parsing JSON with $.each

2006-11-15 Thread Kevin Old
For the archives, I was actually able to get what I want. I didn't have valid key/value pairs in JSON, was just passing around an array. I was able to change the append line to this: $(#names).append(ID: + this.id + Name: + this.name + Passwd: + this.password + Url: + this.email_address

  1   2   >