Re: [jQuery] Wich element triggered an event?

2007-03-09 Thread Choan C. Gálvez
Hello. On 3/9/07, Abel Tamayo <[EMAIL PROTECTED]> wrote: > Hi all. I'd like to know if there's a standard, easy way to determine with > element triggered an event. I'm pretty sure there is, but can't find it in > google. Maybe an atribute in the e parameter received by the function like: > > $("p"

Re: [jQuery] generate folder name

2007-03-08 Thread Choan C. Gálvez
Hi Alexandre. On 3/8/07, Alexandre Plennevaux <[EMAIL PROTECTED]> wrote: > Hi Sean, > > I indeed did it via regular expressions:) Good, but you shouldn't rely on stripping a list of invalid characters. It's safer to strip any character that doesn't belong to a whitelist. This code "ínó".rep

Re: [jQuery] passing a function to a function with variables

2007-03-07 Thread Choan C. Gálvez
On 3/7/07, bmsterling <[EMAIL PROTECTED]> wrote: > > Hey guys and gals, > I am trying to do something like below: > > buildDialogBox({u:'oba_1_2',f:loadJson('userlist.txt', > buildUserManageTable),d:'formDialog600'}); > > and have loadJson('userlist.txt', buildUserManageTable) run after the dialog

Re: [jQuery] Parent and Single Parent Element Selection

2007-03-05 Thread Choan C. Gálvez
On 3/5/07, Kevin Fricovsky <[EMAIL PROTECTED]> wrote: > > Morning, Evening ;) > I have a question for the jquery group. > > My question is - what's the best way to get a single parent element of > the current object. > > Right now I have an html table with multiple rows. In the first TD of > each

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

2007-02-23 Thread Choan C. Gálvez
On 2/23/07, Nicolas Hoizey <[EMAIL PROTECTED]> wrote: > In a page that gets modified by ajax calls, I would like to run my > own function after each change. > > My function does ajax calls, so if I use the ajaxSuccess binding, it > goes recursively and crash... > > Any idea? Untested, but reading

Re: [jQuery] input losses styles after append()

2007-02-22 Thread Choan C. Gálvez
On 2/22/07, triggsley <[EMAIL PROTECTED]> wrote: > > Hi All > > Great forum, very helpfull. > > I've a simple problem whereby I have a form which highlights all form tags > on focus() - no problem here, the problem occurs when a user clicks on the > "add new" link to clone the first row and append

Re: [jQuery] jQuery 1.1a

2007-01-08 Thread Choan C. Gálvez
On 1/8/07, Stefan Petre <[EMAIL PROTECTED]> wrote: > Another change in the API . > jQuery.className.has(); will not expect an element as first argument, > will expect a string. This makes $("something").toggleClass("uh") fail miserably. Bug report at -- Cho

Re: [jQuery] msie closures syntax

2006-12-27 Thread Choan C. Gálvez
On 12/27/06, Michael Geary <[EMAIL PROTECTED]> wrote: > Not only not related to jQuery, but not related to closures either. :-) > > The problem is that setTimeout doesn't accept the additional arguments you > are passing it. > > Is there any reason you can't do this: > > setTimeout( function() { do

Re: [jQuery] Little Bug

2006-12-20 Thread Choan C. Gálvez
To correct myself: > Search for this line: > > min: cfg && cfg.min ? Number(cfg.min) : null, > > And replace with this: > > min: cfg && cfg.min !== null ? Number(cfg.min) : null, Should be: min: cfg && cfg.min !== undefined ? Number(cfg.min) : null, -- Choan

Re: [jQuery] Little Bug

2006-12-20 Thread Choan C. Gálvez
Hi. On 12/14/06, AKB <[EMAIL PROTECTED]> wrote: > > I have found a little bug while trying to use it (last version from > http://www.softwareunity.com/sandbox/jqueryspinbtn/) > > It seems to fail when you set the min value to 0, like this: > > var myOptionsHour = { min: 0, max: 23, step: 1 } > $("

Re: [jQuery] Disabling tags

2006-12-12 Thread Choan C. Gálvez
On 12/12/06, Aaron Heimlich <[EMAIL PROTECTED]> wrote: > On 12/12/06, Klaus Hartl <[EMAIL PROTECTED]> wrote: > > I think it's even worse. It has to go through all the divs and check the > > id... > > document.getElementById cannot be used for such a list returned by > > document.getElementsByTagNam

Re: [jQuery] Traverse Question

2006-12-11 Thread Choan C. Gálvez
On 12/11/06, Anaurag Gupta <[EMAIL PROTECTED]> wrote: > > Greetings. > > How is it I can traverse to the first previous element from a given specific > element? So if I click on image, I can find from the position within the DOM > of that image, the first paragraph that precedes it? This should wo

Re: [jQuery] Custom headers to ajax calls

2006-12-04 Thread Choan C. Gálvez
On 12/4/06, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: > Ⓙⓐⓚⓔ schrieb: > > Exactly my point... IE is not part of my solution. I want to support > > setmimetype.. not JQ! I understand JQ is trying to be a base for all > > the stated browsers... I just want to extend it. > I see, good point. How about

Re: [jQuery] Custom headers to ajax calls

2006-12-04 Thread Choan C. Gálvez
On 12/4/06, Kelvin Luck <[EMAIL PROTECTED]> wrote: > Hi, > > I'm just working on a project which is making ajax calls to a .NET > backend using the AjaxPro extension. However, since I'm already using > jQuery on the front end I thought I'd avoid using their extra frontend > code and just use jQuery

Re: [jQuery] Feature Request for $(expr, context)

2006-11-24 Thread Choan C. Gálvez
On 11/24/06, Mathias Bank <[EMAIL PROTECTED]> wrote: > Hi, > > $(expr, context) is a really nice function, but it could be optimized. > Until now, it can only be used, if context is a dom tree. But see this > scenario: > > var html=''; > html += ""; > for (var i=0; i<10;i++) { > html += "listing

Re: [jQuery] Small optimizations

2006-11-16 Thread Choan C. Gálvez
On 11/16/06, Dave Methvin <[EMAIL PROTECTED]> wrote: > > If you found any other "small" issues, feel free to use this thread to > discuss them. > > I have a few changes to these methods that I have tested on IE/FF/Opera, but > haven't committed them because I have no way to test on Safari: I can h

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

2006-11-16 Thread Choan C. Gálvez
On 11/16/06, SDisk SDisk <[EMAIL PROTECTED]> wrote: > Please in this list we speak in english ;), so everybody can help you. I wil > try to answer in spanish but please, use the english language to comunicate > in the jQuery list or answer directly to the person not reply the list in no > english l

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

2006-11-15 Thread Choan C. Gálvez
this feature is not in the core as long as it can be used as a plugin. > On 15/11/06, Choan C. Gálvez <[EMAIL PROTECTED]> wrote: > > On 11/15/06, Brian Miller <[EMAIL PROTECTED]> wrote: > > > Personally, I'm noticing a lot of requests for XML namespace

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

2006-11-15 Thread Choan C. Gálvez
On 11/15/06, Brian Miller <[EMAIL PROTECTED]> wrote: > 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 d

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

2006-11-15 Thread Choan C. Gálvez
On 11/15/06, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: > > > 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 inp

Re: [jQuery] What is the best way to show() many items in sequence, one after the other?

2006-11-14 Thread Choan C. Gálvez
On 11/14/06, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: > > If you have a jquery array of elements and need to call the show("slow") > > method on each one in turn, how should you do it? > > > > For instance how might would you reveal each LI element in a list one > > after > > the other? > > Just

[jQuery] Custom request headers

2006-11-12 Thread Choan C. Gálvez
Hi all. The "server people" I work with insists in the necessity of sending custom headers in AJAX requests, so I've modified my copy of jQuery and opened a bug report (feature request, obviously) which includes a patch proposal. -- Choan

Re: [jQuery] Loading external libraries from dynamically loadedcontent

2006-11-10 Thread Choan C. Gálvez
On 11/10/06, Dave Methvin <[EMAIL PROTECTED]> wrote: > > >>> As the loading of both scripts is asynchronous, the second one > >>> could be started before the neccessary functions are available. > >>> Any idea or workaround? > >> > >> If you can attach a readyState handler to the first script, that

Re: [jQuery] Loading external libraries from dynamically loaded content

2006-11-10 Thread Choan C. Gálvez
On 11/10/06, Dave Methvin <[EMAIL PROTECTED]> wrote: > > As the loading of both scripts is asynchronous, the second one > > could be started before the neccessary functions are available. > > Any idea or workaround? > > If you can attach a readyState handler to the first script, that can be your >

[jQuery] Loading external libraries from dynamically loaded content

2006-11-10 Thread Choan C. Gálvez
Hi all. I'm working on a project which will load content dynamically from files developed by an external team. These files can include scripting. * If the script is included in the loaded content, the `evalScripts` will suffice. * If the script is referenced from the loaded content (), the `eval

Re: [jQuery] jQuery 1.0.3 compressed - file header missing

2006-11-03 Thread Choan C. Gálvez
On 11/3/06, Brent Pedersen <[EMAIL PROTECTED]> wrote: > $().jquery > > gives the version. That's right, but it used to return the revision number. While having access to the version number is useful for everybody, I think having access to the revision number would be useful for some of us. At leas

Re: [jQuery] highlight table column on hover

2006-10-30 Thread Choan C. Gálvez
Replying myself: On 10/30/06, Choan C. Gálvez <[EMAIL PROTECTED]> wrote: > On 10/30/06, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: > > > has anyone made this as (part of) a plugin? > > > > > > It would seem to be commonly requested - to help v

Re: [jQuery] highlight table column on hover

2006-10-30 Thread Choan C. Gálvez
On 10/30/06, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: > > has anyone made this as (part of) a plugin? > > > > It would seem to be commonly requested - to help visulisation of a large > > table. > > Try this: > (function($) { > var current; > function findColumn(element) { > >

Re: [jQuery] getElementsByTagName('*') avoidance?

2006-10-26 Thread Choan C. Gálvez
On 10/26/06, Dave Methvin <[EMAIL PROTECTED]> wrote: > Is there any supported jQuery platform or situation where > context.getElementsByTagName('*') does not get all the elements in the > context? Right now the jQuery selector code avoids using it and instead does > a recursive crawl of the tree, w

Re: [jQuery] Why do i need a delay in $(document).ready when using the center plugin ?

2006-10-23 Thread Choan C. Gálvez
On 10/24/06, Truppe Steven <[EMAIL PROTECTED]> wrote: > i'm using the center plugin to center images inside a div. But i have to > call it with a timeout like this: > > $(document).ready(function(){ >setTimeout("doCenter()",1000); > }); > > function doCenter(){ > $(".jqcenter").each(){ >

[jQuery] [Off-list] Re: Is svn broken or having problems?

2006-10-23 Thread Choan C. Gálvez
Hi, Stephen. I'm having problems too with SVN today (just for jquery, so I'm afraid there's something broken in the repo). On 10/23/06, Stephen Woodbridge <[EMAIL PROTECTED]> wrote: > Hi all, > > Just tried to do: > > $ svn update > svn: Can't find a temporary directory > > I googled for this and

[jQuery] Question about jQuery.merge

2006-10-19 Thread Choan C. Gálvez
Hi all. I've been browsing the API and discovered the docs for `jQuery.merge`. Great! One question about it: the docs say: "Merge two arrays together, removing all duplicates. The final order or the new array is: All the results from the first array, followed by the unique results from the secon

Re: [jQuery] Selectors [EMAIL PROTECTED]|=val] and [EMAIL PROTECTED] Have they been removed?

2006-10-19 Thread Choan C. Gálvez
On 10/18/06, John Resig <[EMAIL PROTECTED]> wrote: > Well, I don't doubt that people use the lang attribute as intended > (considering that I've never made a non-english site) - however, > there's certainly never been a need for the ~= selector - which is > only remotely useful with lang-related a

Re: [jQuery] Selectors [EMAIL PROTECTED]|=val] and [EMAIL PROTECTED] Have they been removed?

2006-10-18 Thread Choan C. Gálvez
On 10/18/06, John Resig <[EMAIL PROTECTED]> wrote: > Hi Choan - Hi John, thanks for answering. > > * Attribute selector [EMAIL PROTECTED] doesn't work (returns any > > element with a class name) > > * Attribute selector [EMAIL PROTECTED]|=en] doesn't work (returns any > > element > > with a href

[jQuery] Selectors [EMAIL PROTECTED]|=val] and [EMAIL PROTECTED] Have they been removed?

2006-10-17 Thread Choan C. Gálvez
Hi all. While playing with CSS selectors, I've found some strange things (I'm using the SVN version, rev 445): * Attribute selector [EMAIL PROTECTED] doesn't work (returns any element with a class name) * Attribute selector [EMAIL PROTECTED]|=en] doesn't work (returns any element with a hreflang

Re: [jQuery] jQuery 1.0.2 RC2

2006-10-08 Thread Choan C. Gálvez
On 10/8/06, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: > Mike Alsup schrieb: > > Test #38 fails in Opera 8.54. > > > Any idea where to download that version? I can't find any download prior > to Opera 9. From , follow the "show other versions" link. -- Choan

Re: [jQuery] hover, Firefox, uncaught exception

2006-10-04 Thread Choan C. Gálvez
(e) { p = this; }; > > You can see it working here: > http://brandonaaron.net/jquery/hoverbug/hover.patched.html > > I'll update the ticket now. Thanks, Brandon. I hope this goes soon into SVN (meanwhile I've modified my copy). -- Choan C. Gálvez, desarrollo web <

[jQuery] hover, Firefox, uncaught exception

2006-10-03 Thread Choan C. Gálvez
Hi all. There has been some recent posts on this mailing list about a bug in Firefox related to jQuery`s `hover` functionality. (Subjects "Uncaught exception (Autocomplete / jQuery 1.0.1)", "bug: hover over table cells containing form elements" and "Input text hover error".) Theoretically, this b

Re: [jQuery] jQuery 1.0.2 RC1

2006-10-02 Thread Choan C. Gálvez
On 10/2/06, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: > It would be great if you could give it a try and report if anything > breaks (it shouldn't): http://joern.jquery.com/dist/jquery.js > The updated test suite is here: http://joern.jquery.com/test/ > According to my tests, FF1.5 and IE6 should f

[jQuery] Incorrect selection when using #identifier inside find

2006-09-30 Thread Choan C. Gálvez
Hello all. I've just find an strange behaviour while selecting by `id` using `find`. Take this HTML fragment: I'm the heroe This code will result in a one element collection: $("#nowrap").find("#hero"); This seems to be result of performance optimization when we

Re: [jQuery] unchange() - how does it work?

2006-09-29 Thread Choan C. Gálvez
Hi, On 9/30/06, Mungbeans <[EMAIL PROTECTED]> wrote: > > > But, it works. > > $( "#myradiobutton" ).attr( "onchange", "" ).change( function() { ... } ); > > > But it doesn't work :( > > Whenever I try to use the .attr() function (eg: .attr( "onchange", "" ) ) > firebug tells me: > > " .attr is

Re: [jQuery] extending existing DOM elements

2006-09-29 Thread Choan C. Gálvez
Hi Pascal, On 9/26/06, Pascal <[EMAIL PROTECTED]> wrote: > hey gang-- > > I have a project which is using JQuery as its javascript foundation. > In that project have a page of modules (div class="pmodule") that i > would i like extend using Function.prototype or the JQuery equivalent. > > what i'd

Re: [jQuery] Triggering with extra data

2006-09-12 Thread Choan C. Gálvez
{ if ( c[j].apply( this, [event, data] ) === false ) { // ... } } // ... } I really really need this issue to be fixed (maybe with a better solution). (By the way, all of this is under Rev. 289). >

[jQuery] Triggering with extra data

2006-09-11 Thread Choan C. Gálvez
Hi all. I'm developing a validation system which involves custom events handling. That is, I want to execute some code before the validation and some code after the validation. So, my `$.fn.validate` looks like this (simplified): $.fn.validate = function(callback) { return this.each(func

Re: [jQuery] Critical: val('something') does not work in 1.0

2006-08-30 Thread Choan C. Gálvez
On 8/30/06, John Resig <[EMAIL PROTECTED]> wrote: > Hmmm I guess doing .setAttribute("value","foo") doesn't work? > Because that's what I changed jQuery to do. I guess I could make a > special case for that then. Using `setAttribute` can be tricky, as "IE doesn't propagate changes made via `se

Re: [jQuery] date picker plugin update

2006-08-19 Thread Choan C. Gálvez
Hi Kelvin, As you've already made the calendar language configurable, it'd be nice to be able to choose the start day for the weeks (nobody in Spain would understand a Sunday based calendar). Cheers. -- Choan On 8/16/06, Kelvin Luck <[EMAIL PROTECTED]> wrote: > The latest version is here: >