[jQuery] Re: bug in id selector?

2009-01-22 Thread spinnach
I believe that it will function as intended if you escape the dot, like so: $(#test2\.3) although I've tried now in Firebug and it seems you have to escape the slash too, like so (don't know why, is it because of Firebug, or?): $(#test2\\.3) Cheers, Dennis. On Jan 22, 5:21 pm,

[jQuery] [sites using jQuery] adobe.com

2008-09-22 Thread spinnach
dunno if anybody noticed, but adobe is using jQuery on some of their pages: http://opensource.adobe.com/wiki/display/site/Projects dennis.

[jQuery] Re: Can jQuery do this?

2008-04-18 Thread spinnach
maybe i'm looking at a different page than you, but isn't this page in flash :) ? dennis. Andy Matthews wrote: It looks like all they're doing is to display a DIV when the select a phone dropdown is clicked. That div contains a multi-select box, with associated images. There's nothing

[jQuery] Re: [tooltip] Looping and variable tooltip setup

2008-02-23 Thread spinnach
derek, i haven't thoroughly examined how bodyHandler works but i think something like this should work, provided that your html structure won't change: $('div[id^=tt]').tooltip({ bodyHandler: function(){ return $(this).next().html(); } }); if your html structure will change, you

[jQuery] Re: [tooltip] Looping and variable tooltip setup

2008-02-23 Thread spinnach
in a class 'tt' in place of the individual ids and that seems to work good as well. Is there any speed advantage to this method? I'll probably end up using this method instead as it seems more elegant. Thanks again! Derek R. On Feb 23, 8:16 am, spinnach [EMAIL PROTECTED] wrote: derek, i

[jQuery] Re: is there a tab-indexer plugin?

2008-02-16 Thread spinnach
try this: $('a').each(function(i,e){ $(this).attr('tabindex', i); }); dennis. [EMAIL PROTECTED] wrote: or does anyone know how to make one? Something that will incrementally number the tabindexes for all the hrefs on a page? It's a shot in the dark, but worth trying to save all that

[jQuery] Re: How to define FireBug?

2008-02-14 Thread spinnach
try if (window.console) { console.log(...); } dennis. mtest wrote: Hello all :) If it possible to define Firebug? Install it or not? Like it possible do whis browsers by command: if ($.browser.safari) { alert(this is safari!); } maybe like this :)) if ($.extensions.firebug) {

[jQuery] Re: what editor do you use?

2008-02-13 Thread spinnach
..you mean notepad++ :).. i'm using it also, great little app.. dennis. Feijó wrote: I changed my own a few weeks ago, now I'm using Editpad++ (http://sourceforge.net/projects/notepad-plus/) its freeware, nice resources, like macros, quick-text, highlighted source, ... and yours? --

[jQuery] Re: JQuery Event Fires Before Expected

2008-01-29 Thread spinnach
dunno if somebody answered this already, but you should remove the .change() call at the end of your chain, because it immediately triggers your change function, and thus firing your test alert.. dennis. cnxmax wrote: I'm trying something pretty basic in JQuery (I think). I want to run a

[jQuery] Re: How to get applet width and height in Firefox

2008-01-28 Thread spinnach
try this: var appletWidth = $('#MyApplet').attr('width'); dennis. Bastor wrote: Hi, I was trying to get an applet width and height using jquery and have found this problem: applet code=MyApplet.class archive=HelloApllet.jar id=MyApplet width=80% height=80% var appletWidth =

[jQuery] [SITE ADDITION] pythonline.com

2008-01-11 Thread spinnach
seems that the pythons also recognized jquery as a quality product :).. http://pythonline.com/ dennis.

[jQuery] Re: [SITE ADDITION] pythonline.com

2008-01-11 Thread spinnach
aaah, i see you have the machine that goes PING! Andre Meyer wrote: On Jan 11, 2008 12:39 PM, spinnach [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: seems that the pythons also recognized jquery as a quality product :).. http://pythonline.com/ of course http

[jQuery] Re: IE 7 Problems - Won't load javascript - fine in FF 2+

2007-11-17 Thread spinnach
try changing the type=application/javascript to type=text/javascript, that should do the trick. dennis. Chris J. Lee wrote: For some reason my website (http://hire.chrisjlee.net/) does not work at all on IE 7. It refuses to read any of my javascripts while on Firefox it's totally fine.

[jQuery] Re: Flash and jQuery

2007-10-15 Thread spinnach
or you can use ExternalInterface, which can also be used to communicate between flash and js (both ways - flash to js and js to flash).. dennis. Brian Cherne wrote: A word of caution about using getUrl in flash. If there is any way getUrl can be called before your page has finished loading,

[jQuery] jQuery bug, or ?

2007-10-01 Thread spinnach
this returns an error in IE7, works fine in firefox, is this a bug or something i overlooked ? var $div = $('div class=fileinputs/div'); dennis.

[jQuery] Re: jQuery bug, or ?

2007-10-01 Thread spinnach
it's without any plugins or other code on the page, i have IE WebDeveloper v2 toolbar installed, and when i just type that in the console i get this error: Error Expected ')' http://x.com/ (line 1) dennis. Benjamin Sterling wrote: Spinnach, That should work, I am using just

[jQuery] Re: jQuery bug, or ?

2007-10-01 Thread spinnach
all :) .. dennis. Benjamin Sterling wrote: WOW... is x better then xxx :) Two more questions: Have you tried Giovanni's suggestion and does that give you the same error? Can you post a live example? On 10/1/07, *spinnach* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: it's

[jQuery] Re: Closing a thickbox from within a Flash movie

2007-09-21 Thread spinnach
or even more simple (without the additional overhead of including the ExternalInterface class): getURL(javascript:closeFunction()); dennis. Benjamin Sterling wrote: Gordon, In your flash file you need to put: import flash.external.*; Then at the last frame put something like:

[jQuery] Re: ids of elements in a string

2007-09-21 Thread spinnach
no, but it's easy to build a simple plugin that does that: jQuery.fn.allIDs = function(){ var IDs = []; this.each(function(){ if (this.id) IDs.push(this.id); }); return IDs; } and use like: var IDs = $(.list li).allIDs() the plugin returns an array, if you want a string you can do

[jQuery] Re: Better way of initializing a show() or hide() state

2007-09-19 Thread spinnach
one solution i've been using is dynamic css, which (before the page is loaded) adds css via javascript, so without js, the whole page will be displayed normally, and with js on, the css will be added and, in your case, hide the elements you want to be hidden..

[jQuery] Re: adding custom attr on html elements?

2007-09-19 Thread spinnach
you could always use the metadata plugin, and then have something like this (which validates): a href=# class=test {arg1: 100, arg2: 100}test/a you can find the metadata plugin on the jquery plugins page: http://docs.jquery.com/Plugins dennis. Benjamin Sterling wrote: Aljosa, You can get

[jQuery] Re: jQuary Ajax

2007-09-18 Thread spinnach
Hey Luka, one way to do this would be to check in your somefile.php if it's an ajax or regular call, and if it's an ajax call just return the variable, eg: ?php if(isset($_SERVER['HTTP_X_REQUESTED_WITH']) $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') { //ajax request print

[jQuery] Re: New plugin: Listify

2007-09-11 Thread spinnach
in the plugin settings you define hoverClass and cursorType, and never use it in the plugin later.. nice plugin, btw.. dennis. Dylan Verheul wrote: I've just release a little plugin that I wrote for use in a new project. It gracefully upgrades tables that contain rows with a single link to

[jQuery] Re: Validation Form problem

2007-08-11 Thread spinnach
you're missing a comma after 'event: keyup', it should be ' event: keyup,' dennis. debussy007 wrote: Hi, I am trying to use the Validation plug-in but I have the following error : missing } after property list [Break on this error] rules: {\n Here is the simple code :

[jQuery] Re: Excluding an element part of a selection

2007-08-10 Thread spinnach
Dan G. Switzer, II wrote: David, I have a question about selectors. First of all, I have the following html: div id=content a href=# input type=checkbox name=option1 value=Novedad1 Novedad 1: HOla holaaa /a

[jQuery] Re: Excluding an element part of a selection

2007-08-10 Thread spinnach
Dan G. Switzer, II wrote: Denis, label for=idOption1 input type=checkbox name=option1 id=idOption1 value=Novedad1 / Novedad 1: HOla holaaa /label If you click on the text Novedad 1: HOla holaaa the browser will behave as if you clicked on the checkbox itself. -Dan just as a

[jQuery] Re: Excluding an element part of a selection

2007-08-10 Thread spinnach
you could try something like this: $('#content a').click(function (event){ if (!$(event.target).is('input:checkbox')) { //do something.. } }); p.s. i'm not sure if it's valid to have a checkbox inside a link ? dennis. Rob Desbois wrote: I'm not sure how to do this as it stands -

[jQuery] [SITE SUBMISSION] logitech.com socwall.com

2007-08-05 Thread spinnach
i recently came across these sites that use jquery: http://www.logitech.com http://www.socwall.com - Social Wallpapering dennis.

[jQuery] Re: IS condition true like an if statement?

2007-08-03 Thread spinnach
try it like this, .is() returns true or false so you have to use it in an if statement: $(a.saveConfig).click(function() { if ($('div.detail').is(':visible')) alert('Hey this works'); }); dennis. Pete wrote: I'm trying to create a link that when clicked will produce an alert if there are

[jQuery] Re: Two words for Jquery

2007-08-01 Thread spinnach
Jolly good ? Tane Piper wrote: Bloody Brilliant! (I wonder how many other 2 word ways there are to describe jQuery) On 8/1/07, Richard D. Worth [EMAIL PROTECTED] wrote: Here here. - Richard On 8/1/07, kiwwwi [EMAIL PROTECTED] wrote: jQuery Rocks!! oh... possibly will add two more

[jQuery] Re: textarea maxlength plugin

2007-08-01 Thread spinnach
this could be related to the issue i was having with maxlength, try changing the source code to $([EMAIL PROTECTED]) (with a capitol L), and this.getAttribute('maxLength') .. dennis. bdee1 wrote: i have not tried it with an older version of jquery yet but i tried using IE7 and the latest

[jQuery] ..selector bug..

2007-07-31 Thread spinnach
i think i've come across a tiny bug in jquery 1.1.3.1, $('[EMAIL PROTECTED]) return an empty array, although there is such a textarea in the dom.. also $('textarea').attr('maxlength') returns nothing also.. this worked before in 1.1.2 ... and i know this is invalid xhtml, but we had a need

[jQuery] Re: ..selector bug..

2007-07-31 Thread spinnach
it works that way.. how come ? dennis. John Resig wrote: What if you do @maxLength and .attr('maxLength') ? --John On 7/31/07, spinnach [EMAIL PROTECTED] wrote: i think i've come across a tiny bug in jquery 1.1.3.1, $('[EMAIL PROTECTED]) return an empty array, although

[jQuery] Re: ..selector bug..

2007-07-31 Thread spinnach
cool, thanks! dennis. John Resig wrote: It's just one of those things - some properties get the camelcase formatting - maxLength is one of them. --John On 7/31/07, spinnach [EMAIL PROTECTED] wrote: it works that way.. how come ? dennis. John Resig wrote: What if you do @maxLength

[jQuery] [SITE ADDITION] socwall.com - social wallpapering..

2007-07-13 Thread spinnach
just saw this site which uses jquery, i'm not affiliated with it in any way, just noticed it.. http://www.socwall.com - social wallpapering dennis.

[jQuery] [SITE SUBMISSION] www.pharmaconnectme.com

2007-07-05 Thread spinnach
http://www.pharmaconnectme.com - the first international network created by pharmacy students for all their friends in pharmacy.. jQuery 1.1.3.1 plugins used: thickbox, form plugin, accordion, jquery flash, and various others, some custom made, some that i probably forgot to mention..

[jQuery] Re: [SITE SUBMISSION] www.pharmaconnectme.com

2007-07-05 Thread spinnach
thanks rey, glad you like it.. dennis. Rey Bango wrote: Nice look site spinnach. I really like the flyout div that appears next to each bloggers pic. Very nice. I've added it to the list. spinnach wrote: http://www.pharmaconnectme.com - the first international network created

[jQuery] Re: 1.1.3 and Interface

2007-07-03 Thread spinnach
is there any release date for the UI known yet maybe ? dennis. Larry Garfield wrote: With all due respect to the Interface devs, please let UI be better documented with better code demos. :-) I could never get more than basic stuff actually working with Interface. :-( On Tuesday 03 July

[jQuery] Re: Selecting the first TD of every Row

2007-06-30 Thread spinnach
what about: $('tr').each(function(){ $('td:first', this).addClass('tomas'); }); dennis. [EMAIL PROTECTED] wrote: I've tried the method Mehmet but still no success with this goal (select every first TD on every TR. Maybe im doing something wrong, but can someone assure if this code is in

[jQuery] Re: Remove Parent not working in IE6

2007-06-20 Thread spinnach
you should use classes instead of id's, since it's invalid html to have more elements with the same id on the same page.. the way you're doing it binds the click event to only the first element found on page (since the id must be unique).. change the id=trash to class=trash and $('#trash')

[jQuery] Re: ANN: CFJS 1.1.6 Released

2007-06-14 Thread spinnach
no header here also, it 404's.. dennis. Christopher Jordan wrote: Andy is the header not showing up correctly for you? It appears fine for me. I checked it in FF 2.0.0.4 and IE6. If it's not showing up for other folks properly, I'd like to know so I can correct it. Thanks! Chris Andy

[jQuery] Re: mouseover/mouseout vs. hover

2007-06-14 Thread spinnach
charlie, (un)fortunately you'll have to do a bit of jquery magic, and i'd suggest using the hover method, where you define two functions, one for when mouse on, on for mouse off, like so: $('div').hover(function(){ //do your mouseover magic, eg: $(this).addClass('hover'); }, function()

[jQuery] Re: Macrumors running live udpates of WWDC

2007-06-12 Thread spinnach
nothing works as expected on my box (xp+sp2), google is broken, and text doesn't display on most of the pages (it only actually appeared on one page - google.com).. and there's no text in the menus.. it seems like they rushed this beta a bit.. dennis. Felix Geisendörfer wrote: On an

[jQuery] Re: jquery.us

2007-05-19 Thread spinnach
do, did, done.. joomlafreak wrote: Done dna done! On May 19, 11:22 am, jazzle [EMAIL PROTECTED] wrote: done++; // or done += 1; John Resig wrote: Well, that's just weird; definitely trying to make $ with adwords. This is the type of thing that you can ban a site for. Here's what

[jQuery] [OT] dedicated hosting in europe

2007-05-15 Thread spinnach
sorry about this being completely off topic, but can anyone recommend some good hosting provider (which offers dedicated servers), but located in europe ? we're building a pretty big portal and since all of the users will be from europe it would be great if the server was in europe also..

[jQuery] Re: [OT] dedicated hosting in europe

2007-05-15 Thread spinnach
thanks, benjamin, didn't know about that forum.. dennis. Benjamin Sterling wrote: Dennis, check out webhostingtalk.com http://webhostingtalk.com they have a pretty good recommendation section. or at least had. Did not see that section just now, but you can ask in the forum there. --

[jQuery] Re: Threshold for saving textarea content with AJAX

2007-05-14 Thread spinnach
just as a side note, to be totally unobtrusive and to separate your js from the rest of the content, you could do something like this: $(document).ready(function(){ $('#notepad').bind('keyup', notepadSave).bind('keydown', notepadClear); }); that way all your javascript stays in the

[jQuery] ..animation question..

2007-05-13 Thread spinnach
is there a way to perform multiple animations with one interval (to animate multiple elements at once), so the animation would be as smooth as possible? i saw that mootols has a function that does this (Fx.Elements), so it would be really cool to have something like this in jquery.. i need

[jQuery] Re: need help with sliding and targeting

2007-05-13 Thread spinnach
Christoph, i also feel this way about the group :).. as for the answer, it would be heplful if you could post an example page, but if i understand you correctly, your code should look something like this (i changed some other things to be more 'jquery'-like)..

[jQuery] Re: Threshold for saving textarea content with AJAX

2007-05-13 Thread spinnach
one way to do this would be with a timeout, although a bit different than you explained it.. start a timeout onkeyup, and clear it onkeydown, so after stopping typing the timeout won't be cleared and 5 seconds later the function will run.. dennis. [EMAIL PROTECTED] wrote: Confusing title,

[jQuery] Re: Return a reference to the root DOM object

2007-05-11 Thread spinnach
yes, all of what you said is correct.. an alternative way to access a single dom element would be $(p#thisIsMyParagraph).get(0) (both ways to access the dom element are correct).. just one advice, it's much faster to find the element with just the id, without the tag,.. because when writing

[jQuery] Re: Error: $(document).ready is not a function

2007-05-10 Thread spinnach
that also won't work if prototype overwrote jquery's $ function.. jQuery(function() { }); would work.. dennis. Fabyo Guimaraes wrote: or $(function() { }); 2007/5/10, John Resig [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: It sounds like Prototype is overwriting jQuery's $

[jQuery] Re: Delay mouseover trigger - how?

2007-05-10 Thread spinnach
there is a plugin that does exactly what you need, hoverintent.. http://cherne.net/brian/resources/jquery.hoverIntent.html dennis. joomlafreak wrote: Mouseover is a very sensitive trigger and if a page/section has many triggers for mouseover they all inevitably register the event on mouseover

[jQuery] Re: hasClass

2007-04-17 Thread spinnach
you could use the .is() function: $(element).is('.bar'); or if you need to access only elements with the .bar class you could use $('.bar').whatever()... $('div.bar') would be faster if you need only the divs with the .bar class.. dennis. Geoffrey Knutzen wrote: How can I test if an

[jQuery] Re: find.click vs bind(click)

2007-04-17 Thread spinnach
. The page loads normally instead of into the div via ajax and I get too much recursion errors in the console. Am I doing something wrong here? On 4/17/07 9:57 AM, spinnach [EMAIL PROTECTED] wrote: .bind('click') is faster because you bind it directly to the element, .find() must first find the element

[jQuery] Re: selector for ATTR is empty

2007-04-12 Thread spinnach
you could try something like this (since filter accepts a function): $('#content [EMAIL PROTECTED]').filter( function(index){ return (this.alt this.alt.length 0); } ).each(... dennis. Olaf Bosch wrote: Hi All, where i release a Seloctor of all images with

[jQuery] Re: THICKBOX doesnt work when on line...why?

2007-04-05 Thread spinnach
could you provide a link to the page ? dennis. helpshelps wrote: i have a problem implementing jquery and thickbox in my site, and i can't understand the reason, because, the off-line site is perfectly working with all the libraries and visualize the thickbox, but when i upload it on my