Re: [jQuery] help with a simple plugin to roll images

2006-11-11 Thread Ⓙⓐⓚⓔ
I put this aside for a while... I still can't get it to work! jQuery.fn.rolly = function(options) { var settings = jQuery.extend({ speed: 'fast', delay: 1 }, options || {}); var jq=this; var rollover = function() {

Re: [jQuery] Plugin Release: Tooltip

2006-11-11 Thread Roger Ineichen
Hi Jörn > Any guidelines for testing or finding circular references? Drip is probably what you are looking for. http://outofhanwell.com/ieleak/index.php?title=Main_Page Regards Roger Ineichen _ Projekt01 GmbH www.projekt01.ch

Re: [jQuery] Keydown Help

2006-11-11 Thread Corey Jewett
if (event.ctrlKey || (event.modifiers && event.modifiers | Event.CTRL_MASK != 0)) That second part is probably about modifiers is probably NS4 specific. Might not even work right there, been a while. Corey On Nov 8, 2006, at 9:27 AM, iBspoof wrote: > > I have a set of rows that are current

Re: [jQuery] How I use jQuery

2006-11-11 Thread Joel Birch
On 12/11/2006, at 1:34 PM, Brandon Aaron wrote: > > On 11/11/06, Joel Birch <[EMAIL PROTECTED]> wrote: >> On 12/11/2006, at 12:22 PM, Brandon Aaron wrote: >> >>> This is actually done on purpose to avoid the ugly text that >>> happens in IE 6. >> >> I'm not sure what you mean. Just to verify - when

Re: [jQuery] How I use jQuery

2006-11-11 Thread Brandon Aaron
IE 7 will remove clear type on text that has an alpha filter (maybe others filters too) applied to it. This is their fix for the screwed up text in IE 6 with clear type and the alpha filter. -- Brandon Aaron On 11/11/06, Joel Birch <[EMAIL PROTECTED]> wrote: > On 12/11/2006, at 12:22 PM, Brandon

Re: [jQuery] problem with "element preceded by" $(E ~ F)

2006-11-11 Thread dave.methvin
jd wrote: > > I am having a problem with the "element preceded by" syntax for $. > Looking at the code, if I'm reading it properly, it appears that "$(E ~ > F)" > will fail if "E" is the first child (1.0.3 rev 501). > I filed a bug (#310) against the sibling operator a while back, but after a

Re: [jQuery] How I use jQuery

2006-11-11 Thread Joel Birch
On 12/11/2006, at 12:22 PM, Brandon Aaron wrote: > This is actually done on purpose to avoid the ugly text that > happens in IE 6. I'm not sure what you mean. Just to verify - when I say "IE7 makes the type aliased" I mean that it removes the smooth anti-aliasing, and ends up looking "jaggy

Re: [jQuery] How I use jQuery

2006-11-11 Thread Brandon Aaron
On 11/11/06, Joel Birch <[EMAIL PROTECTED]> wrote: > The bugs that are still there are that the images used to round the > corners seem to move by a pixel or so in IE7, but the worst is that > any use of the opacity filter in IE7 makes the type aliased which I > hate. How dodgy is that! This is ac

Re: [jQuery] How I use jQuery

2006-11-11 Thread Joel Birch
On 12/11/2006, at 5:44 AM, Karl Swedberg wrote: > On Nov 11, 2006, at 11:29 AM, Joel Birch wrote: > >> but the worst is that >> any use of the opacity filter in IE7 makes the type aliased which I >> hate. How dodgy is that! > > Forgive me if I'm > just repeating something you already know, but a

Re: [jQuery] OO programming is confusing to old functional programmers

2006-11-11 Thread Stephen Woodbridge
Michael Geary wrote: > I don't think this approach will work quite the way you'd like. In your > example: > >> // I access my plugin via: >> $("#myMap").Map({ }); >> >> // later I can access a public function on this object like: >> $("#myMap").Map.recenter(x, y, dxy); > > Those two $("#myMap")

Re: [jQuery] Loop through all elements of a form

2006-11-11 Thread Brandon Aaron
On 11/11/06, Klaus Hartl <[EMAIL PROTECTED]> wrote: > > This line was also new for me: > > > > $('textarea, [EMAIL PROTECTED]', form).val(''); > > > > So i can use the "," inside a selection to add another selection ? > > jQuery supports CSS selectors. You can group selectors together like: > > h1,

Re: [jQuery] Loop through all elements of a form

2006-11-11 Thread Mike Alsup
On 11/11/06, Klaus Hartl <[EMAIL PROTECTED]> wrote: > > I also have never seen something like: $("#editarticle/form :input") > > before. Can this be extended like: > > $("#editarticle/form :[EMAIL PROTECTED]'text']") ? > > I don't think so. ":input" is a shortcut for all kind of form elements. > If

Re: [jQuery] OO programming is confusing to old functional programmers

2006-11-11 Thread Michael Geary
I don't think this approach will work quite the way you'd like. In your example: > // I access my plugin via: > $("#myMap").Map({ }); > > // later I can access a public function on this object like: > $("#myMap").Map.recenter(x, y, dxy); Those two $("#myMap") calls are going to result in differ

Re: [jQuery] Loop through all elements of a form

2006-11-11 Thread Klaus Hartl
> I also have never seen something like: $("#editarticle/form :input") > before. Can this be extended like: > $("#editarticle/form :[EMAIL PROTECTED]'text']") ? I don't think so. ":input" is a shortcut for all kind of form elements. If you need all inputs with a text type, just use this: $("#edi

Re: [jQuery] Loop through all elements of a form

2006-11-11 Thread Truppe Steven
Matt Grimm schrieb: > In order to access the underlying DOM object, you use the .get(n) method on > the jQuery object. > > $("#editarticle/form").get(0).elements.length; > $("#editarticle/form").get(0).reset(); > > Or, using jQuery, you could get all relevant form elements like so: > > $("#editar

[jQuery] How do I add a js array of jquery objects to a jquery object?

2006-11-11 Thread Andrea Ercolino
Maybe there are other solutions to what I'm looking for... I've got a jquery script where I append (one by one) 50 new jquery objects to another jquery object, but it's taking way too much time, so I thought that it could be faster if I make an array buffer out of them and then aggregate the arra

[jQuery] Keydown Help

2006-11-11 Thread iBspoof
I have a set of rows that are currently adding a class "selected" and firing an ajax call to show information selected in another div if a subclass of "caller" is clicked. To make sure only one row is selected, I am removing the "selected" class for all rows before adding the class. Everything

Re: [jQuery] Media plugins

2006-11-11 Thread Luke Lutman
Just to make sure I'm understanding the problem, you want to hide the contents of #hdr (i.e. the html version of the nav, etc.) after the flash is inserted, right? If so, then all you should need to do is: $('#hdr').flash(sharkOptions.ufo, {version: 7}).find('embed').each(function(){ fc =

Re: [jQuery] Loop through all elements of a form

2006-11-11 Thread Klaus Hartl
Ⓙⓐⓚⓔ schrieb: > in the old html. before the xhtml reformation, we referred to forms by > names or numbers, > > in jq, while keeping with the old teachings, I would say > > $('[EMAIL PROTECTED]')[0].reset(); > > But I'd still code > > document.forms.myform.reset(); > > because there is no magic

[jQuery] OO programming is confusing to old functional programmers

2006-11-11 Thread Stephen Woodbridge
OK, How much of this is right? jQuery.Map = { // this is a public global attribute? // ie: global across all instances of jQuery.Map whatever : null, // a public function init : function(options) { // this is the jQuery search collection // self is

Re: [jQuery] Loop through all elements of a form

2006-11-11 Thread Ⓙⓐⓚⓔ
On 11/10/06, Truppe Steven <[EMAIL PROTECTED]> wrote: > Hello, > > i need a function that goes through all elements of my form and removes > the content of my textfields/inputs. Is there a way of doing this with a > jQuery oneliner ? > the phrase used was "textfields/inputs" . it could be translat

Re: [jQuery] How I use jQuery

2006-11-11 Thread Karl Swedberg
On Nov 11, 2006, at 11:29 AM, Joel Birch wrote: > but the worst is that > any use of the opacity filter in IE7 makes the type aliased which I > hate. How dodgy is that! Hey Joel, that's a great-looking site! So nice to see beautiful design work going into sites for what some might consider stod

Re: [jQuery] Loop through all elements of a form

2006-11-11 Thread Brandon Aaron
On 11/11/06, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote: > Of course > $('textarea, [EMAIL PROTECTED]', form).val(''); > clears the text fields, but what of the buttons and selects? A simple > combo would be prudent. It was my understanding that he only wanted to clear the value of text type inputs and not re

Re: [jQuery] Loop through all elements of a form

2006-11-11 Thread Ⓙⓐⓚⓔ
in the old html. before the xhtml reformation, we referred to forms by names or numbers, in jq, while keeping with the old teachings, I would say $('[EMAIL PROTECTED]')[0].reset(); But I'd still code document.forms.myform.reset(); because there is no magic involved. If I wanted some chainable

Re: [jQuery] Another media plugin, but that fails in Firefox 2

2006-11-11 Thread play
If anyone is interested, it looks like this issue is resolved in the latest Firefox build. I tested it on 3.0a1(Minefield) play wrote: > I setup a basic test page here: http://dev.noiseusse.org/testflash > I've narrowed it down to passing an argument to flash from javascript. > In firefox2, try

Re: [jQuery] Loop through all elements of a form

2006-11-11 Thread Jörn Zaefferer
Marc Jansen schrieb: > Hello Steven, > > Truppe Steven schrieb: > >> You are right, i just want to empty all input/textarea fields. I'm >> trying to use the "elements" attribute but i get an error telling me >> that the property is not known: >> >> var x = $("#editarticle/form").elements.length;

Re: [jQuery] Loop through all elements of a form

2006-11-11 Thread Matt Grimm
In order to access the underlying DOM object, you use the .get(n) method on the jQuery object. $("#editarticle/form").get(0).elements.length; $("#editarticle/form").get(0).reset(); Or, using jQuery, you could get all relevant form elements like so: $("#editarticle/form :input"); And reset the

Re: [jQuery] XML and handling namespaces

2006-11-11 Thread Dave Methvin
>> currently, the pipe symbol ("|") is inside expression used as an >> equivalent for a comma (","). On the other hand, it's the CSS symbol >> to select by namespaces, eg. >> would be selected with soap|envelope in CSS. >> >> So far I haven't seen anyone actually using the pipe as a replacemen

Re: [jQuery] new jQuery API draft

2006-11-11 Thread Klaus Hartl
Dave Methvin schrieb: >> Man you scared me... You meant new jQuery API "DOCS", >> not new jQuery API right? > > What, you missed that thread? John has redone jQuery to avoid all the > cryptic stuff. No more chaining for example. We're following the Yahoo UI > model and namespacing the heck out of

Re: [jQuery] Since updating to 1.0.3 & converting to getJSON

2006-11-11 Thread Michael Geary
> And to make it valid JSON, you have to quote all keys anyway > (using double quotes): > > { "asJSON": 1, "class": "jlink", "id": htmlDoc } > > http://json.org/ Naw, that wouldn't be valid JSON. JSON doesn't allow named references like htmlDoc. But this object doesn't need to be JSON anyway.

Re: [jQuery] new jQuery API draft

2006-11-11 Thread Marc Jansen
Hey Dave, > So, this confusing piece > of code: > > $("#links a").css(color: "blue"); > > Becomes this wonderful thing: > > var jObject = new jQuery(); > jObject.element.getById("links", document); > jObject.element.findByTagName("a"); > jObject.element.cascadingStyleSheet.setProperty("color", >

Re: [jQuery] new jQuery API draft

2006-11-11 Thread Dave Methvin
> Man you scared me... You meant new jQuery API "DOCS", > not new jQuery API right? What, you missed that thread? John has redone jQuery to avoid all the cryptic stuff. No more chaining for example. We're following the Yahoo UI model and namespacing the heck out of everything. So, this confusing p

Re: [jQuery] How I use jQuery

2006-11-11 Thread Mike Alsup
> http://www.incomesolutions.com.au/ That's a good looking site, Joel. Well done. Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Since updating to 1.0.3 & converting to getJSON

2006-11-11 Thread Klaus Hartl
Dave Methvin schrieb: >> 4091 { asJSON: 1, class: "jlink", id: htmlDoc }, >> >> if IE is suggesting the correct line of the error then >> its 4091 and then in that case the coma is required >> to separate the params from the callback > > The word "class" is a reserved word in Javascript. It isn't

Re: [jQuery] Element tagName

2006-11-11 Thread Dave Methvin
> I couldn't find a way using jQuery to get the > tagName of an element I immediately thought of .attr("tagName") but it didn't work. Some paths through .attr() get both properties and attributes, others just attributes, others just properties. Any time there is an entry in the fix object, it gets

Re: [jQuery] new jQuery API draft

2006-11-11 Thread Mike Alsup
> I'd like to present you a first draft for a new stylesheet for the This is looking good, Jörn. Much easier to use than the old layout. Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Since updating to 1.0.3 & converting to getJSON

2006-11-11 Thread Dave Methvin
> 4091 { asJSON: 1, class: "jlink", id: htmlDoc }, > > if IE is suggesting the correct line of the error then > its 4091 and then in that case the coma is required > to separate the params from the callback The word "class" is a reserved word in Javascript. It isn't used but it's still reserved.

Re: [jQuery] How I use jQuery

2006-11-11 Thread Joel Birch
>> http://www.incomesolutions.com.au/ > > Hi Joel, > > beautiful! I was wondering about this one: > > $.browser.msie ? > $('#caseStudyTabs').addClass('tabs').tabs() : /*IE too buggy to > > handle > animation*/ > $('#caseStudyTabs').addClass('tabs').tabs({fxSlide: true

Re: [jQuery] How I use jQuery

2006-11-11 Thread Klaus Hartl
> http://www.incomesolutions.com.au/ Hi Joel, beautiful! I was wondering about this one: $.browser.msie ? $('#caseStudyTabs').addClass('tabs').tabs() : /*IE too buggy to handle animation*/ $('#caseStudyTabs').addClass('tabs').tabs({fxSlide: true, fxFade: tru

[jQuery] How I use jQuery

2006-11-11 Thread Joel Birch
Hello jQuerilous friends, I have just launched a website and thought I would share it with anyone who might be interested. It uses jQuery heavily, mainly for hiding and showing content with animation, but also for submitting forms with Ajax etc. Klaus Hartl's Tabs 2.0 plugin gets a gig on th

Re: [jQuery] Loop through all elements of a form

2006-11-11 Thread Marc Jansen
Hello Steven, Truppe Steven schrieb: > You are right, i just want to empty all input/textarea fields. I'm > trying to use the "elements" attribute but i get an error telling me > that the property is not known: > > var x = $("#editarticle/form").elements.length; > In this case, 'x' contains a j

Re: [jQuery] Loop through all elements of a form

2006-11-11 Thread Truppe Steven
Aaron Heimlich schrieb: > On 11/10/06, *Ⓙⓐⓚⓔ* <[EMAIL PROTECTED] > > wrote: > > I don't think jq can get back the > original default values. > > > True, but I believe he wanted a way to *empty* the elements, not > return them to their defaults. > --

Re: [jQuery] Tabs plugin 2.0

2006-11-11 Thread Klaus Hartl
Jason Yeckel schrieb: > Klaus, > > How much work is it to change the css to be a vertical layout on the > left or right side? It would be intresting if you could pass in a value > to place the tab position around the content. > > thx for the great work so far the plug in is a must have no doubt

Re: [jQuery] XML and handling namespaces

2006-11-11 Thread Klaus Hartl
Jörn Zaefferer schrieb: > Hi jQueryians, > > currently, the pipe symbol ("|") is inside expression used as an > equivalent for a comma (","). On the other hand, it's the CSS symbol to > select by namespaces, eg. > would be selected with soap|envelope in CSS. > > So far I haven't seen anyone ac

[jQuery] XML and handling namespaces

2006-11-11 Thread Jörn Zaefferer
Hi jQueryians, currently, the pipe symbol ("|") is inside expression used as an equivalent for a comma (","). On the other hand, it's the CSS symbol to select by namespaces, eg. would be selected with soap|envelope in CSS. So far I haven't seen anyone actually using the pipe as a replacement

Re: [jQuery] click event not working??

2006-11-11 Thread Erik Beeson
Without even looking at the code, I would guess you're using the thickbox to display content that you have elsewhere on the page? If so, that would be the source of the problem. Cody's thickbox shows a copy of the elements for displaying inline, and the event handlers aren't applied to the copies.

[jQuery] click event not working??

2006-11-11 Thread leftend
Hello, I'm running into a case where the "click" event is not working on one of my pages. The strange thing is that I know the code is alright, because I've pulled it out and used it on test pages. It's kind of hard to explain, so I'll jump right to a url: http://www.the-in.com/dev/Learn_UserPr

Re: [jQuery] new jQuery API draft

2006-11-11 Thread Sam Collett
On 10/11/06, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: > Hi jQueryians, > > I'd like to present you a first draft for a new stylesheet for the > jQuery API: http://joern.jquery.com/api-draft/cat.xml > > There is still lot's of work to do, but the main concern, a new concept > for the navigation, is