Re: [jQuery] jQuery 1.1a

2007-01-08 Thread Allan Mullan
Hey John, I just uploaded the new jQuery and have found a problem with the effects portion. I'm using this: $('#' + getCookie('active_menu')).next().slideDown(); in a startup script and it appears to be causing the following error: speed has no properties (line 1545) I've removed this and I

Re: [jQuery] jQuery 1.1a

2007-01-08 Thread Allan Mullan
It appears I answered my own question - slideDown()'s optional parameter is not playing nice. I added normal as an argument and it functions correctly. Allan Mullan wrote: Hey John, I just uploaded the new jQuery and have found a problem with the effects portion. I'm using this: $('#'

Re: [jQuery] jQuery 1.1a

2007-01-08 Thread Klaus Hartl
Performming .click(), .blur(), .focus(), .submit() will actually trigger the browsers default action for those events. Oh no... is there a way to prevent this? -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] jQuery 1.1a

2007-01-08 Thread Klaus Hartl
David Duymelinck schrieb: Klaus Hartl schreef: Performming .click(), .blur(), .focus(), .submit() will actually trigger the browsers default action for those events. Oh no... is there a way to prevent this? -- Klaus If you want the 1.0.x behaviour you have to

Re: [jQuery] jQuery 1.1a

2007-01-08 Thread Sam Collett
On 08/01/07, John Resig [EMAIL PROTECTED] wrote: Hi Everyone - We've just pushed jQuery 1.1a live. This is a testing release - so your help would be appreciated in testing it out and finding any bugs. 1.1 will be released this weekend (January 14th). Here's the quick-and-dirty on jQuery

Re: [jQuery] Visual jQuery Redux

2007-01-08 Thread Sam Collett
On 08/01/07, Yehuda Katz [EMAIL PROTECTED] wrote: Hey guys, I've been listening to all of the feedback I've gotten about Visual jQuery, and I've built a new version that I believe responds to many of those concerns: * a dramatically reduced title-bar (20px high) * a path in the titlebar

Re: [jQuery] jQuery 1.1a

2007-01-08 Thread David Duymelinck
Klaus Hartl schreef: David Duymelinck schrieb: Klaus Hartl schreef: Performming .click(), .blur(), .focus(), .submit() will actually trigger the browsers default action for those events. Oh no... is there a way to prevent this? -- Klaus

Re: [jQuery] jQuery 1.1a

2007-01-08 Thread Ámon Tamás
Hello, I get the following error: value has no properties jquery.js (line 292) whith this: $(form).attr({target: _target, action: _action}); In this line _target variable is null, but that was no problem in the latest version; John Resig wrote: Hi Everyone - We've just pushed jQuery 1.1a

Re: [jQuery] Visual jQuery Redux

2007-01-08 Thread Yehuda Katz
You can actually go to http://www.visualjquery.com/1.0.2.html (actually, any version from the 1.0.x series after 1.0.2 -- 1.0 and 1.0.1 seem to have incompatible XML files for some reason) -- Yehuda On 1/8/07, Sam Collett [EMAIL PROTECTED] wrote: On 08/01/07, Yehuda Katz [EMAIL PROTECTED]

Re: [jQuery] jQuery 1.1a

2007-01-08 Thread Klaus Hartl
David Duymelinck schrieb: I taught that was what you meant by preventing the triggering of the .click(), .blur(), .focus(), .submit() functions. I'm sorry if i misunderstood your question. only the argumentless functions trigger the default action. i read further and .click(fn) will also

Re: [jQuery] jQuery 1.1a

2007-01-08 Thread Allan Mullan
Another possible bug I've found is when using next() it doesn't appear to see the next item in the DOM. I've setup http://allan.iws.co.nz/test/ as an example. It's meant to display the DD after the DT is clicked (see js/startup.js) but doesn't... I've tried the identical code with jQuery 1.0.4

[jQuery] Do something as soon as an element has loaded? (Before document ready)

2007-01-08 Thread Phillip B Oldham
Hi all I need to fire an event/run a method once an element (in this case a div with a list inside) has loaded, but before $(document).ready(). I'd like to be able to use simple jQuery objects... something like: $('#mydiv').hasloaded(function(){ //do something here });

[jQuery] ajaxSetup

2007-01-08 Thread Andreas Wahlin
Am I daft or what, I'm trying to change some global ajaxSettings like so $.ajaxSetup( {contentType: 'text/xml'} ); but it seems to not work. $.ajaxSetup is not a function firebug tells me ... Andreas ___ jQuery mailing list discuss@jquery.com

Re: [jQuery] Do something as soon as an element has loaded? (Before document ready)

2007-01-08 Thread Yehuda Katz
You could try creating a setInterval that constantly checks for the existence of your element, but that's a pretty dirty hack. -- Yehuda On 1/8/07, Phillip B Oldham [EMAIL PROTECTED] wrote: Hi all I need to fire an event/run a method once an element (in this case a div with a list inside)

Re: [jQuery] ajaxSetup

2007-01-08 Thread Ámon Tamás
Andreas Wahlin wrote: Am I daft or what, I'm trying to change some global ajaxSettings like so $.ajaxSetup( {contentType: 'text/xml'} ); but it seems to not work. $.ajaxSetup is not a function firebug tells me ... Where did you find this function? Maybe you can use the

Re: [jQuery] Do something as soon as an element has loaded? (Before document ready)

2007-01-08 Thread Phillip B Oldham
Yea, I'd looked at using a schedule function, but it requires the use of an element's ID. I was hoping I could do it simply using jQuery. Maybe I could use a jQuery selector to find the object, and if it doesn't exist yet keep trying (using setInterval/setTimeout) until the DOM has completed

Re: [jQuery] jQuery 1.1a

2007-01-08 Thread Stefan Petre
Another change in the API . jQuery.className.has(); will not expect an element as first argument, will expect a string. John Resig wrote: Hi Everyone - We've just pushed jQuery 1.1a live. This is a testing release - so your help would be appreciated in testing it out and finding any bugs.

Re: [jQuery] Do something as soon as an element has loaded? (Before document ready)

2007-01-08 Thread Klaus Hartl
Phillip B Oldham schrieb: Hi all I need to fire an event/run a method once an element (in this case a div with a list inside) has loaded, but before $(document).ready(). I'd like to be able to use simple jQuery objects... something like: $('#mydiv').hasloaded(function(){ //do

Re: [jQuery] Do something as soon as an element has loaded? (Before document ready)

2007-01-08 Thread Phillip B Oldham
Thanks Klaus, I'll have a play with that code and see if I can create a plugin/extension to jQuery for such an event. Klaus Hartl wrote: Phillip B Oldham schrieb: Hi all I need to fire an event/run a method once an element (in this case a div with a list inside) has loaded, but before

Re: [jQuery] Visual jQuery Redux

2007-01-08 Thread Krzysztof FF
New layout is great and much more efficient. Two remarks: - after going in one branch, e.g. DOM, deeper in hierarchy, e.g. showing path 'DOM /Manipulation /clone()', and switching to another branch, e.g. Effects, the path reads: 'Effects /Manipulation /clone()'; - pressing Ctrl, Shift or Alt

Re: [jQuery] Visual jQuery Redux

2007-01-08 Thread Yehuda Katz
Both issues are resolved. The reason control was giving you that issue is that there's a currently undocumented feature that allows you to press ctrl-left-arrow or ctrl-right-arrow to scroll left or right. It's currently undocumented because if you hit the buttons too quickly, you will get

[jQuery] Passing values to a custom function

2007-01-08 Thread Dan Eastwell
Hi again, following up my previous post where I was trying to bind a function to a submit event, I'm now trying to pass values from the function that returns a function to the bound submit event. I've a number of forms on a page, that perform a variety of functions, some similar. I'm trying to

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 http://jquery.com/dev/bugs/bug/762/ -- Choan

[jQuery] Smooth page scrolling between internal anchors

2007-01-08 Thread [-Stash-]
Hi, I'm very new to both jQuery and Javascript, but I love what it can do so far. I'd like to be able to create a plugin that enables smooth scrolling when you click on an internal anchor link on a page. It would be beneficial to users as it provides feedback that you are not going to a

Re: [jQuery] Smooth page scrolling between internal anchors

2007-01-08 Thread David Duymelinck
[-Stash-] schreef: Code snippet: -- $('[EMAIL PROTECTED]#]').each(function(i){ $(this).click(function(){ $(this.href).ScrollTo(2000); return false; }); }); --

Re: [jQuery] jQuery 1.1a (form submit)

2007-01-08 Thread Dave Methvin
The problem - that has also been discussed several times on the list - with that feature is the following (I assume/hope it has been solved therefore): // initialisation $('#my-form').submit(function() { validate(this); // returns true or false }); So far so good, that sets the

Re: [jQuery] Smooth page scrolling between internal anchors

2007-01-08 Thread Stefan Petre
David Duymelinck wrote: [-Stash-] schreef: Code snippet: -- $('[EMAIL PROTECTED]#]').each(function(i){ $(this).click(function(){ $(this.href).ScrollTo(2000); return false; }); }); --

Re: [jQuery] jQuery 1.1a (form submit)

2007-01-08 Thread Klaus Hartl
Dave Methvin schrieb: The problem - that has also been discussed several times on the list - with that feature is the following (I assume/hope it has been solved therefore): // initialisation $('#my-form').submit(function() { validate(this); // returns true or false }); So far so

Re: [jQuery] ajaxSetup

2007-01-08 Thread Andreas Wahlin
I found it right here ... http://docs.jquery.com/Ajax#.24.ajaxSetup.28_settings_.29 or is there some global object that you can extend? Andreas On Jan 8, 2007, at 12:07 , Ámon Tamás wrote: Andreas Wahlin wrote: Am I daft or what, I'm trying to change some global ajaxSettings like so

Re: [jQuery] jQuery 1.1a

2007-01-08 Thread Mohsen Saboorian
Good news :) * The complexity of the API has dropped by 47%. Just out of my curiosity. How do you measure API the complexity? Why not 43.5849% :) ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] jQuery 1.1a (form submit)

2007-01-08 Thread Mike Alsup
But in jQuery 1.1. it is not like that and submit() invokes the submit method of the form as well (at least according to the changelog). I was trying to describe the concerns I have with that. No, that's not true. $(..).submit() does *not* submit the form.

Re: [jQuery] ajaxSetup

2007-01-08 Thread Mike Alsup
I found it right here ... http://docs.jquery.com/Ajax#.24.ajaxSetup.28_settings_.29 or is there some global object that you can extend? That was added in v1.1. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] jQuery 1.1a (form submit)

2007-01-08 Thread Klaus Hartl
Mike Alsup schrieb: But in jQuery 1.1. it is not like that and submit() invokes the submit method of the form as well (at least according to the changelog). I was trying to describe the concerns I have with that. No, that's not true. $(..).submit() does *not* submit the form. Ok, so

Re: [jQuery] Smooth page scrolling between internal anchors

2007-01-08 Thread David Duymelinck
Stefan Petre schreef: I made this a plugin. $(document).ScrollToAnchors(500); This will make all the a href=#anchor to animate to the element. Will be released when jQuery 1.1 is released. Nice. but wouldn't it be better to use a name=anchor? Anchors don't need href . Are there more

Re: [jQuery] Smooth page scrolling between internal anchors

2007-01-08 Thread Luke Scammell
Thanks for that, it'll help me with fine tuning it, however, it still doesn't work with all the internal anchors on the page. Is all the code correct to do that? Is the rest of my plugin what's gone wrong (as I said, very new to JS)? Thanks for the quick reply :) Luke David Duymelinck

Re: [jQuery] jQuery 1.1a

2007-01-08 Thread Klaus Hartl
Mohsen Saboorian schrieb: Good news :) * The complexity of the API has dropped by 47%. Just out of my curiosity. How do you measure API the complexity? Why not 43.5849% :) From the blog post: By removing all of those methods we’ve been able to reduce the size of the jQuery API by

Re: [jQuery] Smooth page scrolling between internal anchors

2007-01-08 Thread Stefan Petre
David Duymelinck wrote: Stefan Petre schreef: I made this a plugin. $(document).ScrollToAnchors(500); This will make all the a href=#anchor to animate to the element. Will be released when jQuery 1.1 is released. Nice. but wouldn't it be better to use a name=anchor? Anchors

Re: [jQuery] Smooth page scrolling between internal anchors

2007-01-08 Thread [-Stash-]
Stefan Petre wrote: David Duymelinck wrote: I made this a plugin. $(document).ScrollToAnchors(500); This will make all the a href=#anchor to animate to the element. Will be released when jQuery 1.1 is released. Does it work with 1.1a? If so would you be willing to give me a sneak

Re: [jQuery] jQuery 1.1a (form submit)

2007-01-08 Thread Dave Methvin
You are right, I just checked it. I am going for more coffee. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Alsup Sent: Monday, January 08, 2007 9:04 AM To: jQuery Discussion. Subject: Re: [jQuery] jQuery 1.1a (form submit) But in jQuery 1.1.

Re: [jQuery] Smooth page scrolling between internal anchors

2007-01-08 Thread David Duymelinck
[-Stash-] schreef: Code snippet: -- $('[EMAIL PROTECTED]#]').each(function(i){ $(this).click(function(){ $(this.href).ScrollTo(2000); return false; }); }); --

Re: [jQuery] jQuery 1.1a (form submit)

2007-01-08 Thread John Resig
Ok, the intended result is that doing something like this: $(form).submit(function(){ return validate(this); }); ... $(form).submit(); Will be completely possible. .submit() will, perform roughly the same thing as $(form)[0].submit(). THIS WILL NOT, NECESSARILY, SUBMIT THE FORM. If you

Re: [jQuery] jQuery 1.1a (form submit)

2007-01-08 Thread Christopher Jordan
Again, from the changelog: * Performming .click(), .blur(), .focus(), .submit() will actually trigger the browsers default action for those events. And by the way: one cannot trigger the default click() action for links, so I think, that one is useless. Also it seems that reset() is

Re: [jQuery] Visual jQuery Redux

2007-01-08 Thread Joan Piedra
It breaks when I'm at the 3rd level and then repetly click on the left arrow button. Plugins/Tooltip/Tooltip(settings) Nice work Yehuda. On 1/7/07, Yehuda Katz [EMAIL PROTECTED] wrote: Hey guys, I've been listening to all of the feedback I've gotten about Visual jQuery, and I've built a new

Re: [jQuery] ajaxSetup

2007-01-08 Thread Andreas Wahlin
Oh :) Thanks for clearing that up. Andreas On Jan 8, 2007, at 15:06 , Mike Alsup wrote: I found it right here ... http://docs.jquery.com/Ajax#.24.ajaxSetup.28_settings_.29 or is there some global object that you can extend? That was added in v1.1.

Re: [jQuery] jQuery 1.1a (form submit)

2007-01-08 Thread Sam Collett
On 08/01/07, Christopher Jordan [EMAIL PROTECTED] wrote: Again, from the changelog: * Performming .click(), .blur(), .focus(), .submit() will actually trigger the browsers default action for those events. And by the way: one cannot trigger the default click() action for links, so I

Re: [jQuery] jQuery 1.1a (form submit)

2007-01-08 Thread Klaus Hartl
Sam Collett schrieb: On 08/01/07, Christopher Jordan [EMAIL PROTECTED] wrote: Again, from the changelog: * Performming .click(), .blur(), .focus(), .submit() will actually trigger the browsers default action for those events. And by the way: one cannot trigger the default click() action for

Re: [jQuery] jQuery 1.1a (form submit)

2007-01-08 Thread Christopher Jordan
So do you just use this.blur() to blur the given element? Chris Klaus Hartl wrote: Sam Collett schrieb: On 08/01/07, Christopher Jordan [EMAIL PROTECTED] wrote: Again, from the changelog: * Performming .click(), .blur(), .focus(), .submit() will actually trigger the browsers default

Re: [jQuery] Smooth page scrolling between internal anchors

2007-01-08 Thread Stefan Petre
[-Stash-] wrote: Stefan Petre wrote: David Duymelinck wrote: I made this a plugin. $(document).ScrollToAnchors(500); This will make all the a href=#anchor to animate to the element. Will be released when jQuery 1.1 is released. Does it work with 1.1a? If so would you be

Re: [jQuery] jQuery 1.1a

2007-01-08 Thread Karl Swedberg
On Jan 8, 2007, at 4:52 AM, Sam Collett wrote:You could indicate what is new within the documentation (perhaps by having the version number next to a feature).I've been working on tags for jQuery versions (discussed on the Evangelism list). They're based on the recent Microformats buttons, which

Re: [jQuery] Visual jQuery Redux

2007-01-08 Thread Marshall Salinger
My favorite api reference site just got better! Removing the logo and header graphics and increasing the width of the text area are huge improvements. Thanks Yehuda. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Yehuda Katz Sent: Sunday, January 07,

Re: [jQuery] Visual jQuery Redux

2007-01-08 Thread Anders
Looks nice. Two things: * Working back button: Have you for example looked at the jQuery history plugin, or the tabs plugin implementation? * The centered headlines (Returns, Parameters etc) looks out of place on my wide screen. Aligned to the left would work better. /Anders

Re: [jQuery] jQuery 1.1a

2007-01-08 Thread Felix Geisendörfer
I've been working on tags for jQuery versions (discussed on the Evangelism list).They're based on the recent Microformats buttons, which use a CC license that makes them available for anyone to modify. Here is what I've put together so far: I'm not that great with colors, so if

[jQuery] IE woes (was Exteranl Links)

2007-01-08 Thread agent2026
Back from the holidays, and back to my problem :) In short: I want to go through all links on a page and, barring my array of exceptions, make all external links open in new windows without using the target attribute. In addition, the exception urls must be able to just contain the exception

Re: [jQuery] Apps used to reply to this list

2007-01-08 Thread Jonathan Sharp
What email application are you using? -js On 12/13/06, Michael Holloway [EMAIL PROTECTED] wrote: I've been clicking on the email address as when I hit reply or reply-all, it doesn't fill in the 'to' field. Weird :s ___ jQuery mailing list

Re: [jQuery] jQuery 1.1a (event handlers)

2007-01-08 Thread Dave Methvin
var counter = 0; $().click(function(event) { if(counter++ == 5) $(this).unbind(event); ... }); That was pretty hard to do before. I think that example only makes sense if a single element is selected. With multiple elements selected, it will unbind one element's event handler on the 5th

Re: [jQuery] Visual jQuery Redux

2007-01-08 Thread Yehuda Katz
What would the back button do? I agree with you on the centered headlines. On 1/8/07, Anders [EMAIL PROTECTED] wrote: Looks nice. Two things: * Working back button: Have you for example looked at the jQuery history plugin, or the tabs plugin implementation? * The centered headlines (Returns,

[jQuery] JQuery 1.1a - changes/bug? with $(this).id

2007-01-08 Thread Olaf Bosch
Hi, thank you all for 1.1 i begin to testing, this works in 1.0.4 $(document).ready(function() { $('textarea').each(function(i) { $(this).id('area_'+i).after('span id=gro_'+i+'grouml;szlig;er\/span'); }); FireBug say $(this).id is not a function What is to do? -- Viele Grüße, Olaf

Re: [jQuery] IE woes (was Exteranl Links)

2007-01-08 Thread Yehuda Katz
$([EMAIL PROTECTED], [EMAIL PROTECTED] ...).attr(_target, blank) or $([EMAIL PROTECTED], [EMAIL PROTECTED] ...).click(function() { window.open( this.href) }) On 1/8/07, agent2026 [EMAIL PROTECTED] wrote: Back from the holidays, and back to my problem :) In short: I want to go through all

Re: [jQuery] Visual jQuery Redux

2007-01-08 Thread Sam Collett
On 08/01/07, Anders [EMAIL PROTECTED] wrote: Looks nice. Two things: * Working back button: Have you for example looked at the jQuery history plugin, or the tabs plugin implementation? * The centered headlines (Returns, Parameters etc) looks out of place on my wide screen. Aligned to the

Re: [jQuery] JQuery 1.1a - changes/bug? with $(this).id

2007-01-08 Thread Sam Collett
On 08/01/07, Olaf Bosch [EMAIL PROTECTED] wrote: Hi, thank you all for 1.1 i begin to testing, this works in 1.0.4 $(document).ready(function() { $('textarea').each(function(i) { $(this).id('area_'+i).after('span id=gro_'+i+'grouml;szlig;er\/span'); }); FireBug say $(this).id is

Re: [jQuery] JQuery 1.1a - changes/bug? with $(this).id

2007-01-08 Thread Mike Alsup
FireBug say $(this).id is not a function What is to do? You'll need to rewrite that as: $(this).attr(id) ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] JQuery 1.1a - changes/bug? with $(this).id

2007-01-08 Thread Klaus Hartl
Olaf Bosch schrieb: Hi, thank you all for 1.1 i begin to testing, this works in 1.0.4 $(document).ready(function() { $('textarea').each(function(i) { $(this).id('area_'+i).after('span id=gro_'+i+'grouml;szlig;er\/span'); }); FireBug say $(this).id is not a function What is

Re: [jQuery] jQuery 1.1a (event handlers)

2007-01-08 Thread Jörn Zaefferer
Dave Methvin schrieb: var counter = 0; $().click(function(event) { if(counter++ == 5) $(this).unbind(event); ... }); That was pretty hard to do before. I think that example only makes sense if a single element is selected. With multiple elements selected, it will unbind one

Re: [jQuery] JQuery 1.1a - changes/bug? with $(this).id

2007-01-08 Thread Olaf Bosch
Klaus Hartl schrieb: First of all *before* switching to a new/massively changed API read the changelog/blog post[1]. Yes, i have, sorry i realese not that ID ar also a ATTR ;) Try: $(this).attr('id', 'area_'+i) Thanks all. Next Problem: $(textarea).css('height') give before 1.1 110 now

Re: [jQuery] JQuery 1.1a - changes/bug? with $(this).id

2007-01-08 Thread Klaus Hartl
Olaf Bosch schrieb: Klaus Hartl schrieb: First of all *before* switching to a new/massively changed API read the changelog/blog post[1]. Yes, i have, sorry i realese not that ID ar also a ATTR ;) Try: $(this).attr('id', 'area_'+i) Thanks all. Next Problem:

[jQuery] Link and Puff()?

2007-01-08 Thread Shane Graber - jQuery
I am attempting to use: $(#myelement).click(function() { $(#myelement img).Puff(500); }); My markup is as such: div id=myelement a href=mysite.com img src=mysite.jpg / /a /div I need the Puff() effect to take place when the person clicks on the link before the browser heads

Re: [jQuery] JQuery 1.1a - changes/bug? with $(this).id

2007-01-08 Thread Olaf Bosch
Klaus Hartl schrieb: I think you have to parse it yourself...: var h = parseInt($(textarea).css('height')); Great, works perfect, Thank you -- Viele Grüße, Olaf --- [EMAIL PROTECTED] http://olaf-bosch.de www.akitafreund.de ---

Re: [jQuery] jQuery 1.1a

2007-01-08 Thread Jörn Zaefferer
Stefan Petre schrieb: Another change in the API . jQuery.className.has(); will not expect an element as first argument, will expect a string. That is already fixed. It works now with both an element and the className itself. -- Jörn Zaefferer http://bassistance.de

Re: [jQuery] jQuery 1.1a

2007-01-08 Thread Jörn Zaefferer
Ámon Tamás schrieb: Hello, I get the following error: value has no properties jquery.js (line 292) whith this: $(form).attr({target: _target, action: _action}); In this line _target variable is null, but that was no problem in the latest version; Could you please report this as a

Re: [jQuery] jQuery 1.1a

2007-01-08 Thread Jörn Zaefferer
Allan Mullan schrieb: Another possible bug I've found is when using next() it doesn't appear to see the next item in the DOM. I've setup http://allan.iws.co.nz/test/ as an example. It's meant to display the DD after the DT is clicked (see js/startup.js) but doesn't... I've tried the

Re: [jQuery] Need help dealing with duplicate ID's in different forms

2007-01-08 Thread Liam Byrne
Form submission uses only the element name; jQuery and other JavaScript/DHTML references, as well as HTML certification, require a unique ID. These 2 can be set independently and still work correctly. As Klaus said, having the IDs as non-unique is adding problems for yourself. If you can get

Re: [jQuery] Link and Puff()?

2007-01-08 Thread Stefan Petre
Hi Shane, you can do this $('#myelement a').bind( 'click', function () { var linkHref = this.href; $(this.parentNode).Puff( 500, function(){ window.location.href = linkHref; } ); return false;

Re: [jQuery] jQuery 1.1a (form submit)

2007-01-08 Thread Brice Burgess
Klaus Hartl wrote: You can blur links as well (for example to remove the dotted rectangular after a click and fix IE's broken implementation for the :active pseudo class)... -- Klaus Something like $('a').click(function(){$(this).blur(); return true; }); ? ~ Brice

[jQuery] Interface Draggables problems

2007-01-08 Thread Ian Eure
I couldn't find an email address for the author of Interface, but I can't seem to get Draggables to work right. - Draggable items sometimes are added outside of their container. Sometimes reproduecable, it seems that if you drop them near the bottom / on the bottom edge of the container, they

Re: [jQuery] Passing values to a custom function

2007-01-08 Thread Michael Geary
Do you want getPost to be called during the execution of initialiseForm, or later in response to the 'submit' event? For the latter, use this (added code in red): function initialiseForm(formId) { $(formId).bind('submit', function() { getPost(formId) } ); } -Mike _ From: [EMAIL

Re: [jQuery] jQuery 1.1a (form submit)

2007-01-08 Thread Karl Swedberg
Hi Brice, I think you would want to use this.blur() instead of $(this).blur(). And you probably would want to return false, because presumably you're staying on the same page if you're concerned about removing the dotted rectangle, and return false will prevent the default behavior.

Re: [jQuery] jQuery 1.1a (form submit)

2007-01-08 Thread Karl Swedberg
Ah! Gotcha. Thanks for the tip. Time to start using that jQ1.1 tag. :) --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Jan 8, 2007, at 3:43 PM, John Resig wrote: FYI: Starting in 1.1, $(this).blur() and this.blur() are completely equivalent. --John

[jQuery] jquery selecting one row on link click

2007-01-08 Thread CARLOS BOTERO
Im trying to highlight the parent row of the link on click, that part is working fine, what i need to do is to deselect the highlighted row once another link of a new row is clicked, if you have any suggestions please let me know, thank you in advance, here is the code im using: script

[jQuery] Stopping container from scrolling off-screen?

2007-01-08 Thread Shane Graber - jQuery
I was wondering if anyone could give me some pointers on how to achieve the following using jQuery. Basically I want to have a menu in a sidebar that scrolls with the content until it hits the top of the screen and then stays put as the reader continues to scroll down through the content. An

Re: [jQuery] jquery selecting one row on link click

2007-01-08 Thread Webunity | Gilles van den Hoven
Or, don't add an ID; (PSEUDO, UNTESTED CODE ALERT) script type=text/javascript jQuery(document).ready(function() { jQuery(a).click(function() { // Get all current highlighted rows, of THIS table. objCurrent = jQuery(tr.highlight,

Re: [jQuery] jquery selecting one row on link click

2007-01-08 Thread Sean O
Carlos, Try this: $(a).click(function() { $(tr).removeClass(highlight); // removes highlight class from all TRs $(this).parents(tr).addClass(highlight); // adds it to selected }); SEAN O CARLOS BOTERO wrote: Im trying to highlight the parent row of

[jQuery] select links not children of li

2007-01-08 Thread spinnach
..how to select all links on a page that are not inside a list (not children of 'li')?.. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] select links not children of li

2007-01-08 Thread Andy Matthews
Should be: $('a').not('li a'); Andy Matthews Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

Re: [jQuery] select links not children of li

2007-01-08 Thread Jörn Zaefferer
spinnach schrieb: ..how to select all links on a page that are not inside a list (not children of 'li')?.. Untested: $(a).filter(function() { return !$(this).parents().is(ul ); }) Requires 1.1 -- Jörn Zaefferer http://bassistance.de ___

Re: [jQuery] Splitter - here's my shot at it

2007-01-08 Thread Oskar E.
Dave Methvin wrote: http://methvin.com/jquery/splitter/ Oskar, it sounds like you may have solved some of the problems with IE6 I haven't tackled yet. This version doesn't yet handle min-width and max-width for IE6 but I plan to put it there. Maybe we could join forces on this? It looks like

Re: [jQuery] select links not children of li

2007-01-08 Thread Yehuda Katz
You'd use a custom filter: $(a).filter(function(elem){ return $(elem).parent(li).length == 0; }) On 1/8/07, spinnach [EMAIL PROTECTED] wrote: ..how to select all links on a page that are not inside a list (not children of 'li')?.. ___ jQuery

[jQuery] Notes, parents, children, etc. Need some guidance.

2007-01-08 Thread Christopher Jordan
Hi folks, I've not used any jQuery that traverses the DOM based on who is a child or parent of who or what element was roommates with some other element in college. But I think I've got a situation in which this sort of thing will help. A client gave me an html form built by some other

Re: [jQuery] select links not children of li

2007-01-08 Thread Andy Matthews
Why doesn't this work: $('a').not('li a').click( function() { $(this).remove(); return false; }); On this code: a href=this is a link/a br /br / lia href=a link inside an li tag/a/li lia href=and another/a/li br /br / a href=and finally another link at the bottom/a It

Re: [jQuery] Notes, parents, children, etc. Need some guidance.

2007-01-08 Thread Jörn Zaefferer
Christopher Jordan schrieb: I've not used any jQuery that traverses the DOM based on who is a child or parent of who or what element was roommates with some other element in college. But I think I've got a situation in which this sort of thing will help. parent() or parents() maybe what

Re: [jQuery] select links not children of li

2007-01-08 Thread Yehuda Katz
.not(n) only works when n is a filter, like .not(.absolute) or .not(:visible)... it can not be used to test arbitrary expressions. -- Yehuda On 1/8/07, Andy Matthews [EMAIL PROTECTED] wrote: Why doesn't this work: $('a').not('li a').click( function() { $(this).remove();

Re: [jQuery] select links not children of li

2007-01-08 Thread Yehuda Katz
You could do something like this: $.fn.notFind = function(obj) { if(typeof obj == string) return $.map(this, function(i) { return $(obj).index(i) == -1 ? i : null }) else if(obj.jquery) return $.map(obj, function(i) { return obj.index(i) == -1 ? i : null }) } then you could do

Re: [jQuery] select links not children of li

2007-01-08 Thread Andy Matthews
Okay... So then why wouldn't THIS work: $('a').filter('li a').click( function() { $(this).remove(); return false; }); Andy Matthews Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL

Re: [jQuery] select links not children of li

2007-01-08 Thread Yehuda Katz
Make that $.fn.notFind = function(obj) { if(typeof obj == string) return $.map(this, function(i) { return $(obj).index(i) == -1 ? i : null }) else if(obj.jquery) return $.map(this, function(i) { return obj.index(i) == -1 ? i : null }) } On 1/8/07, Yehuda Katz [EMAIL PROTECTED] wrote: You

Re: [jQuery] select links not children of li

2007-01-08 Thread Yehuda Katz
And John's better alternative: $.fn.notFind = function(obj) { if ( obj.constructor == String ) obj = $(obj); return jQuery.set( jQuery.grep(this, function(i) { return obj.index(i) == -1 }) ); }; On 1/8/07, Yehuda Katz [EMAIL PROTECTED] wrote: Make that $.fn.notFind = function(obj) {

Re: [jQuery] Notes, parents, children, etc. Need some guidance.

2007-01-08 Thread Christopher Jordan
And please, it helps us (and therefore yourself) to keep questions short and simple :-) sorry. :o( -- http://www.cjordan.info ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] select links not children of li

2007-01-08 Thread Yehuda Katz
Because li a is not a filter ;) -- Yehuda On 1/8/07, Andy Matthews [EMAIL PROTECTED] wrote: Okay... So then why wouldn't THIS work: $('a').filter('li a').click( function() { $(this).remove(); return false; }); * Andy Matthews *Senior

Re: [jQuery] select links not children of li

2007-01-08 Thread Andy Matthews
Then I guess I'm not understanding what a filter is then. The API for not() says this: Removes the specified Element from the set of matched elements. The API for filter() says this: Removes all elements from the set of matched elements that do not match the specified expression. That

Re: [jQuery] select links not children of li

2007-01-08 Thread Jörn Zaefferer
Andy Matthews schrieb: Then I guess I'm not understanding what a filter is then. The API for not() says this: Removes the specified Element from the set of matched elements. The API for filter() says this: Removes all elements from the set of matched elements that do not match the

Re: [jQuery] jquery selecting one row on link click

2007-01-08 Thread CARLOS BOTERO
Thanks a lot Sean it works! On 1/8/07, Sean O [EMAIL PROTECTED] wrote: Carlos, Try this: $(a).click(function() { $(tr).removeClass(highlight); // removes highlight class from all TRs $(this).parents(tr).addClass(highlight); // adds it to selected });

Re: [jQuery] Dimension plugin updates

2007-01-08 Thread Dotan Dimet
Brandon, I just did an svn update and tried to parse the docs for the plugins, and I get an error in parse.js when it tries to parse dimensions.js: parsing file ../plugins/dimensions/dimensions.js js: build/js/parse.js, line 41: uncaught JavaScript runtime exception: TypeError: Cannot set

  1   2   >