Re: [jQuery] Look Ma no IMG-tag - FaviconLinkMarker Beta3 out

2007-01-11 Thread Klaus Hartl
Olaf Bosch schrieb: Hi all, here is FaviconLinkMarker Beta3: http://olaf-bosch.de/bugs/jquery/links3.html - No IMG-tag, all CSS - config. Favicon left or right (before/after) - editable TITLE-tag - No CSS edit for using - No CSS overwritten, all what you in CSS given is after JS given

[jQuery] jQuery 1.1b

2007-01-11 Thread John Resig
Hi Everyone - We're nearly ready for the big 1.1 release, this Sunday - but to tie you over, here's another set of bug fixes to test upon. The jQuery dev team has been working long-and-hard to fix all the support requests that've been coming in this week, and we've been pretty successful in

Re: [jQuery] jQuery 1.1b

2007-01-11 Thread Allan Mullan
Awesome stuff guys, the couple of issues I had are no longer. :-) Look forward to having more hands-on with jQuery this year, I've learnt so much about Javascript from jQuery and hoping I can help where needed. Allan John Resig wrote: Hi Everyone - We're nearly ready for the big 1.1

[jQuery] Safari Widget Pack

2007-01-11 Thread Yehuda Katz
I've begun work on a Safari widget pack, that allows you to work with Safari widgets in a way more jQuery way. For example: var y = $(#scrollArea).makeScrollAreaWithBars({singlepressScrollPixels: 50}, {id: scrollBar}, {id: horizBar}) .bind(mouseover, function() { y.focus();

[jQuery] strange slide Down Problem

2007-01-11 Thread Alexander Petri
Hi, i built a very small Demosite using CodeIgniter and jQuery. http://www.konzept-b.net/ci_2/index.php As you can see there is a strange effect if you click on Kommentar... on IE first it slides up, and then down. on FF it jumps up and down. could anyone help me to let that work smooth? //

Re: [jQuery] strange slide Down Problem

2007-01-11 Thread Klaus Hartl
Alexander Petri schrieb: Hi, i built a very small Demosite using CodeIgniter and jQuery. http://www.konzept-b.net/ci_2/index.php As you can see there is a strange effect if you click on Kommentar... on IE first it slides up, and then down. on FF it jumps up and down. could anyone help

Re: [jQuery] List of jQuery-Powered Sites

2007-01-11 Thread Philippe Jadin
If you could, please provide a description of where jQuery is being used within the website. Please reply to this email and I'll begin compiling the list. Hello, We are starting to use Jquery inside Thinkedit, a freshly opensourced cms. We use it for the dropdown menus in the admin

Re: [jQuery] strange slide Down Problem

2007-01-11 Thread Klaus Hartl
Klaus Hartl schrieb: Alexander Petri schrieb: Hi, i built a very small Demosite using CodeIgniter and jQuery. http://www.konzept-b.net/ci_2/index.php As you can see there is a strange effect if you click on Kommentar... on IE first it slides up, and then down. on FF it jumps up and down.

Re: [jQuery] dynamic loading of jquery.js into my web page

2007-01-11 Thread Christof Donat
Hi, Yes, I downloaded it short before. Please, tell me when I can download the fixed version, and I'll test again I just have uploaded the current version again. Please try again. I've just downloaded and tried again but... nothing changed :( Have you tried the testsuite that I have

Re: [jQuery] strange slide Down Problem

2007-01-11 Thread Alexander Petri
hm i updated the site but that doesnt help for the jumps Klaus Hartl schrieb: Klaus Hartl schrieb: Alexander Petri schrieb: Hi, i built a very small Demosite using CodeIgniter and jQuery. http://www.konzept-b.net/ci_2/index.php As you can see there is a strange effect if you

Re: [jQuery] strange slide Down Problem

2007-01-11 Thread Klaus Hartl
Alexander Petri schrieb: hm i updated the site but that doesnt help for the jumps Ah, maybe I know what it is: collapsing margins. Try adding a border/padding on top of the slided element, so that vertical margins cannot collapse. Does that help? -- Klaus

[jQuery] How to get element when it's ID contains bank space.

2007-01-11 Thread Ashish Agrawal
First, Thanks for such a great library. It damn good and fast - and most of all life saver for new bees like me. Recently I fall in trouble. I had an element in my HTML that may contains blank space in its ID. The thing is I am having one asp.net based portal system where IDs are given by user

Re: [jQuery] How to get element when it's ID contains bank space.

2007-01-11 Thread Klaus Hartl
Ashish Agrawal schrieb: First, Thanks for such a great library. It damn good and fast - and most of all life saver for new bees like me. Recently I fall in trouble. I had an element in my HTML that may contains blank space in its ID. The thing is I am having one asp.net http://asp.net

[jQuery] What's the new parent() in jQuery1.1?

2007-01-11 Thread Abel Tamayo
I just switched to jQuery-1.1b and it's great stuff, but now I get this error in Firebug: $(this).parent().id is not a function where it worked perfectly until now. I revised the list of changes but didn't find a substitute to parent() - the closest this I found was the change from ancestors() to

[jQuery] Select _other_ elements (with a specific class) in same tr

2007-01-11 Thread jazzle
That title may not make much sense, so here's the code: tr id=?= $player['id'] ? tdinput type=checkbox name=seventeen[apps][?= $player['id'] ?] class=noneorone //td tdinput type=checkbox name=seventeen[subs][?= $player['id'] ?] class=noneorone //td /tr I want to be able to select

Re: [jQuery] What's the new parent() in jQuery1.1?

2007-01-11 Thread Klaus Hartl
Abel Tamayo schrieb: I just switched to jQuery-1.1b and it's great stuff, but now I get this error in Firebug: $(this).parent().id is not a function where it worked perfectly until now. I revised the list of changes but didn't find a substitute to parent() - the closest this I found was the

Re: [jQuery] What's the new parent() in jQuery1.1?

2007-01-11 Thread Kolman Nándor
If I remember correctly there is no id() function any more. Use attr('id') instead. Nandi From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Abel Tamayo Sent: Thursday, January 11, 2007 2:14 PM To: jQuery Discussion. Subject: [jQuery] What's

Re: [jQuery] What's the new parent() in jQuery1.1?

2007-01-11 Thread Abel Tamayo
d'oh! ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Select _other_ elements (with a specific class) in same tr

2007-01-11 Thread Dave Methvin
I want to be able to select _none or one_ of the checkboxes (note: not using radio-buttons). Why not radio buttons? They work that way automatically and continue to work if script is turned off. Just add a None radio to indicate none of the others. So I would like to know how to address the

Re: [jQuery] Select _other_ elements (with a specific class) in same tr

2007-01-11 Thread Karl Swedberg
Something like this? $('input:checkbox').bind('click', function() { $(this).parents('tr').siblings().find('input.noneorone') }); --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Jan 11, 2007, at 8:14 AM, jazzle wrote: (sorry for edit) (I meant to

Re: [jQuery] Select _other_ elements (with a specific class) in same tr

2007-01-11 Thread Yehuda Katz
I was just doing this not a half hour ago: Assuming that this is the checkbox you clicked, jQuery(this).parent().siblings().find(input:checkbox).not(this) Worked great for me! I used the following code to achieve the effect I believe you're searching for (radio button-like functionality made

Re: [jQuery] Select _other_ elements (with a specific class) in same tr

2007-01-11 Thread jazzle
I hope you didn't assume that I hadn't considered that. Adding a 'none' would ruin the GUI design on a few different levels. NB: This is for an admin section I'm creating in a bespoke CMS, so no-script is not an issue. dave.methvin wrote: ... Why not radio buttons? They work that way

Re: [jQuery] Look Ma no IMG-tag - FaviconLinkMarker Beta3 out

2007-01-11 Thread Olaf Bosch
Klaus Hartl schrieb: The only fix I know for that bug is to give the link white-space: nowrap. Yes, and is include, works not in IE. This Bug is no new for me, i have never see a fixing. is the background-positioning, thus to avoid redundant code: Ah looks cool, i love short code. Have you

[jQuery] mousewheel plugin updated

2007-01-11 Thread Brandon Aaron
I've made some big changes to the mousehweel plugin. All of these changes are based on quality feedback from users of the mousehweel plugin. First, I really simplified the API. The only methods are: - mousewheel() - unmousewheel() The mousewheel() method takes only one function and a second

Re: [jQuery] Safari Widget Pack

2007-01-11 Thread Brandon Aaron
This is going to be very nice Yehuda. Great work! -- Brandon Aaron On 1/11/07, Yehuda Katz [EMAIL PROTECTED] wrote: I've begun work on a Safari widget pack, that allows you to work with Safari widgets in a way more jQuery way. For example: var y =

Re: [jQuery] Select _other_ elements (with a specific class) in same tr

2007-01-11 Thread Karl Swedberg
On Jan 11, 2007, at 8:44 AM, Karl Swedberg wrote: Something like this? $('input:checkbox').bind('click', function() { $(this).parents('tr').siblings().find('input.noneorone') }); Ugh. I misread the request. Forget my answer. Use Yehuda's. :) On Jan 11, 2007, at 8:14 AM, jazzle wrote:

Re: [jQuery] jQuery 1.1b

2007-01-11 Thread spinnach
..i have a couple of issues with both jquery 1.1b and the compatibility plugin.. this is the code from the compatibility plugin: jQuery.each([id,title,name,href,src,rel], function(i){ jQuery.fn[ i ] = function(h) { return h == undefined ?

Re: [jQuery] mousewheel plugin updated

2007-01-11 Thread David Duymelinck
Brandon Aaron schreef: Test page: http://brandon.jquery.com/plugins/mousewheel/test/test.html I tested the page on FF2 and i didn't see the log frame. In IE7 tests 6 and 7 fail their limitation. They both show movement up and down. Nice work. I didn't know it could get the speed of the

Re: [jQuery] mousewheel plugin updated

2007-01-11 Thread Andy Matthews
Nice Brandon... IE7 here. Everything seemed to work as promised except test 6 which says should only do something when the mousewheel is moved down. yet I got a response in the monitor pane when I moved the mousewheel up. Just FYI. This works really well, you should be proud of yourself. I can

Re: [jQuery] Look Ma no IMG-tag - FaviconLinkMarker Beta3 out

2007-01-11 Thread Klaus Hartl
Olaf Bosch schrieb: Klaus Hartl schrieb: The only fix I know for that bug is to give the link white-space: nowrap. Yes, and is include, works not in IE. This Bug is no new for me, i have never see a fixing. is the background-positioning, thus to avoid redundant code: Ah looks cool,

Re: [jQuery] Look Ma no IMG-tag - FaviconLinkMarker Beta3 out

2007-01-11 Thread Olaf Bosch
Olaf Bosch schrieb: I would make 2 plugs, one with IMG one with CSS. So, and here is the latest version with IMG: http://olaf-bosch.de/bugs/jquery/links2.html - added a SPAN wrap to A and IMG with nowrap - Opera used Extra-CSS What about this? -- Viele Grüße, Olaf

Re: [jQuery] Simple(ish?) bring to top method

2007-01-11 Thread David Duymelinck
onStop : function() { $(this).css(z-index,1); } On 1/9/07, *Su* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I've got something I'm building wherein several boxes will be draggable. What I'd like to do is have a function that can be called when

Re: [jQuery] mousewheel plugin updated

2007-01-11 Thread Brandon Aaron
It is fixed. :) -- Brandon Aaron On 1/11/07, Brandon Aaron [EMAIL PROTECTED] wrote: Sorry, that was my fault. Copy and paste from previous test page. There aren't supposed to be limitations. I'll update the test page shortly. -- Brandon Aaron On 1/11/07, David Duymelinck [EMAIL

Re: [jQuery] Look Ma no IMG-tag - FaviconLinkMarker Beta3 out

2007-01-11 Thread Olaf Bosch
David Duymelinck schrieb: What about this? With the #text a links your own links don't show the favicon in FF2 and IE7 :) it's a feature, no Favicon with *intern* links, this Script is for external Links The last 2 Links are to my domain, for testing, href=www.my.de and href=../ and

Re: [jQuery] Look Ma no IMG-tag - FaviconLinkMarker Beta3 out

2007-01-11 Thread Olaf Bosch
Klaus Hartl schrieb: Assigning the property with a dynamic name fails here... try: var dir = place == after ? 'right' : 'left' good, will later go on You could handle that as an option: {img: true|false} maybe... Hahah, wonderfull, there I could also have got on myself ;) --

Re: [jQuery] jQuery Powered Sites - Keep the Links Coming

2007-01-11 Thread bmsterling
Here is one that is complete, I have about three more still in development and will post when they are out of beta. http://www.informationexperts.com Plug in used: Accordion (modified heavily) Thickbox (modified slightly) Flash (modified slightly) -- View this message in

Re: [jQuery] Look Ma no IMG-tag - FaviconLinkMarker Beta3 out

2007-01-11 Thread Joan Piedra
Hey Olaf, I believe your markup should use a rel attribute instead of the class attribute. Something like this, and make the call with the position as optional. a href=http://jquery.com; rel=externaljQuery/a $('[EMAIL PROTECTED]').favicon('External link: '); Pretty nice plugin you have, good

Re: [jQuery] jQuery 1.1b

2007-01-11 Thread John Resig
Hi - I fixed the compat. plugin bug that you mentioned, in SVN rev 1010. Can you be more specific about the t.replace bug that you mentioned? I can't seem to locate it anywhere. --John On 1/11/07, spinnach [EMAIL PROTECTED] wrote: ..i have a couple of issues with both jquery 1.1b and the

Re: [jQuery] Simple(ish?) bring to top method

2007-01-11 Thread Joan Piedra
Hmm.. i read it again, and I understood you have different boxes and they all have different z-index, right? So if I undestand correctly when you stop moving one, they all come back to 1, losing the different positions they had. I think you could add their old z-index variables somewhere in

Re: [jQuery] jQuery 1.1b

2007-01-11 Thread spinnach
hey, sorry about that, it was my fault, i tried to fix the compatibility plugin, but obviously changed it wrong so that's what caused the error.. with your fix to the compat. plugin everything works ok... John Resig wrote: Hi - I fixed the compat. plugin bug that you mentioned, in SVN

Re: [jQuery] Simple(ish?) bring to top method

2007-01-11 Thread Jonathan Sharp
I think you're going to have to loop through all of your elements to find the max z-index and then either re-set them or just set the z-index to max+1. -js On 1/11/07, Su [EMAIL PROTECTED] wrote: No. The whole problem is that there's a static number in that statement. So eventually, all the

Re: [jQuery] Simple(ish?) bring to top method

2007-01-11 Thread Jonathan Sharp
Here's a starting point... This could be finished out into a plugin... http://jdsharp.us/code/zIndex/ -js On 1/11/07, Jonathan Sharp [EMAIL PROTECTED] wrote: I think you're going to have to loop through all of your elements to find the max z-index and then either re-set them or just set the

[jQuery] Difference between ajaxStop and ajaxComplete

2007-01-11 Thread Rich Manalang
anyone know the difference between these two? Rich ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] mousewheel plugin updated

2007-01-11 Thread Abel Tamayo
Is it compatible with jQuery-1.1b? On 1/11/07, Brandon Aaron [EMAIL PROTECTED] wrote: It is fixed. :) -- Brandon Aaron On 1/11/07, Brandon Aaron [EMAIL PROTECTED] wrote: Sorry, that was my fault. Copy and paste from previous test page. There aren't supposed to be limitations. I'll update

[jQuery] is there a jQuery equivalent to the JavaScript .select() method?

2007-01-11 Thread Christopher Jordan
Hi folks, I'm trying to find out if there's a jQuery equivalent to this: form.ElementName.select(); I want to auto-select (read: highlight) the text in an input element. I've searched on Nabble to see if this has been covered, but I either don't know what to search for or it will just take

Re: [jQuery] Difference between ajaxStop and ajaxComplete

2007-01-11 Thread Mike Alsup
anyone know the difference between these two? ajaxStop is triggered when the number of outstanding ajax requests reaches zero. ajaxComplete is triggered after each response is received. ajaxComplete is also passed the XHR and the settings object.

Re: [jQuery] mousewheel plugin updated

2007-01-11 Thread Brandon Aaron
Yes it is. -- Brandon Aaron On 1/11/07, Abel Tamayo [EMAIL PROTECTED] wrote: Is it compatible with jQuery-1.1b? On 1/11/07, Brandon Aaron [EMAIL PROTECTED] wrote: It is fixed. :) -- Brandon Aaron On 1/11/07, Brandon Aaron [EMAIL PROTECTED] wrote: Sorry, that was my fault.

Re: [jQuery] is there a jQuery equivalent to the JavaScript .select() method?

2007-01-11 Thread Mike Alsup
I'm trying to find out if there's a jQuery equivalent to this: form.ElementName.select(); Those DOM methods are still available to you: $('#myInput')[0].select(); ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] is there a jQuery equivalent to the JavaScript .select() method?

2007-01-11 Thread Jörn Zaefferer
Christopher Jordan schrieb: Hi folks, I'm trying to find out if there's a jQuery equivalent to this: form.ElementName.select(); I want to auto-select (read: highlight) the text in an input element. I've searched on Nabble to see if this has been covered, but I either don't know what to

Re: [jQuery] Simple(ish?) bring to top method

2007-01-11 Thread Marc Jansen
Jonathan Sharp schrieb: Here's a starting point... This could be finished out into a plugin... http://jdsharp.us/code/zIndex/ -js Hey Jonathan, this is cool! I think you should display some advice on how to test the functionality. Nice work! -- Marc

Re: [jQuery] fadeIn/fadeOut question

2007-01-11 Thread Tony Collins
I found the source of the problem. The interface elements plugin is the culprit: http://interface.eyecon.ro/about When its FX functionality is included, .fadeIn() won't restore an element that has had .fadeOut() applied under IE7. (ALEX: When I published the example, I removed that script tag

Re: [jQuery] is there a jQuery equivalent to the JavaScript .select() method?

2007-01-11 Thread Christopher Jordan
Jörn: I had not seen that plug-in. I'll take a look. Thanks! Mike: Thanks! You guys rock! :o) Cheers, Chris Mike Alsup wrote: I'm trying to find out if there's a jQuery equivalent to this: form.ElementName.select(); Those DOM methods are still available to you:

Re: [jQuery] Simple(ish?) bring to top method

2007-01-11 Thread Jonathan Sharp
Oh...yeah that would be a good idea...made sense to me! haha! I have included some instructions now. If I get some time I'll try and actually make a plugin of sorts out of it, or at least mock it up like the other code I have. I still have my updated menu to post...oh such is life... -js On

Re: [jQuery] fadeIn/fadeOut question

2007-01-11 Thread Alex Cook
Sorry but I have no experience with Interface... it broke when I first tried it many moons ago and I've never gone back... I should give it another poke... sorry I can't help you here Tony... anyone else? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of

Re: [jQuery] Show submit button only...

2007-01-11 Thread Brice Burgess
Web Specialist wrote: Hi all, anyone have an example using Form Validate plugin (http://www.willjessup.com/sandbox/jquery/form_validator/form_validate.html http://www.willjessup.com/sandbox/jquery/form_validator/form_validate.html) where submit button appears only after all form fields

[jQuery] 1 Function, Multiple Events?

2007-01-11 Thread RhythmFighter
I have a feeling there is an obvious answer to this, but it escapes me... if have some thing like this that is called by document.ready(): function init_top_level() { $(.top_folder).click(function(i) { // Do a ton of stuff here }); } I not only want to assign

Re: [jQuery] Simple(ish?) bring to top method

2007-01-11 Thread Su
Been on phone all day, but yes, this looks like pretty much exactly what I was talking about. You rule. I need to sit down and look at the source more closely later to see about attaching it to the Interface Draggables bit. On 1/11/07, Jonathan Sharp [EMAIL PROTECTED] wrote: Oh...yeah that

Re: [jQuery] 1 Function, Multiple Events?

2007-01-11 Thread Jörn Zaefferer
RhythmFighter schrieb: I have a feeling there is an obvious answer to this, but it escapes me... Right. Try this, it should be what you are looking for: function init_top_level() { var handler = function(i) { // Do a ton of stuff here };

Re: [jQuery] 1 Function, Multiple Events?

2007-01-11 Thread Michael Geary
if have some thing like this that is called by document.ready(): function init_top_level() { $(.top_folder).click(function(i) { // Do a ton of stuff here }); } I not only want to assign the click event to my .top_folder elements, but assign dblclick as well. I

Re: [jQuery] fadeIn/fadeOut question

2007-01-11 Thread Antonio Collins
Thanks for looking at this for me Alex. I've fixed the problem in interface elements. They overwrote jQuery's fx() to support their enhancements. Since interface elements hasn't been updated since Oct '06, their fx() had the same opacity issues that jQuery dealt with in recent releases. So,

[jQuery] jQuery v1.1 Performance Results

2007-01-11 Thread Rey Bango
Hi everyone. Jack Slocum, the maker of the YUI-Ext lib, recently posted some performance benchmarks that compared his new extension, DOMQuery, to several libraries. jQuery was included in the comparison and in his tests, jQuery incorrectly appeared to fail or run slower than DomQuery. So we

Re: [jQuery] 1 Function, Multiple Events?

2007-01-11 Thread Nathaniel See
Thanks for the assistance. Yes, I was basically trying to assign a click and dblclick to the same function (to prevent users from double-clicking and firing the func twice). However, after looking into it a bit more, i think that the $(p).one(click, fun.is a better fit here. I don't

[jQuery] Newbie - how to build a sliding/draggable panel

2007-01-11 Thread rolfsf
I'm not much of a javascripter, but I've been getting into JQuery lately... I'm wondering if there is there an existing JQuery solution for a sliding/draggable show/hide sidebar panel that scales to fit the various viewport heights? I posted a quick diagram of what I'm thinking of

Re: [jQuery] List of jQuery-Powered Sites

2007-01-11 Thread Michael Geary
Forgot to add us to the list... Zvents: http://www.zvents.com/ This is a Rails site and we completely replaced prototype.js with jQuery and our own code. We're using thickbox, a homegrown autocompleter, my DOM plugin, and lots of custom code. This also puts jQuery on our partner sites: The

Re: [jQuery] Newbie - how to build a sliding/draggable panel

2007-01-11 Thread bmsterling
Rolf, try now to double post your messages. not sure if this is the best way of going about it, but this is what I did: script type=text/javascript !-- $(document).ready(function(){ $(#control).bind(click, function(){leftwide()}); }); function

Re: [jQuery] Newbie - how to build a sliding/draggable panel

2007-01-11 Thread rolfsf
Oh! Sorry, I didn't realize the earlier post had gone through - I had cancelled it. Thanks for the reply - I'll play with that and see what I can learn with it. Rolf bmsterling wrote: Rolf, try now to double post your messages. -- View this message in context:

Re: [jQuery] List of jQuery-Powered Sites

2007-01-11 Thread Kelvin Luck
And another one: http://www.flatline-tignes.com/ Uses jQuery, a modified thickbox, DOM creation plugin, my date picker and various custom code. Most of the jQuery action is on the flat details pages and the booking page. I discovered jQuery half way through building this site so there may be

Re: [jQuery] How to get element when it's ID contains bank space.

2007-01-11 Thread George Adamson
Klaus is absolutely right. If you really really really cannot get around this invalid html then seeking the id as an @attribute seems to work, for example: $([EMAIL PROTECTED]'']) Note: the inner quotes in the example are two single quotes right next to eachother to represent an empty string.

Re: [jQuery] How to get element when it's ID contains bank space.

2007-01-11 Thread Erik Beeson
Scripting on top of an invalid HTML document won't make your life easier (obviously). I'd try to replace spaces given by the user to _ in the backend. And then do what with underscores given by the user? --Erik ___ jQuery mailing list

Re: [jQuery] How to get element when it's ID contains bank space.

2007-01-11 Thread Brandon Aaron
On 1/11/07, Erik Beeson [EMAIL PROTECTED] wrote: Scripting on top of an invalid HTML document won't make your life easier (obviously). I'd try to replace spaces given by the user to _ in the backend. And then do what with underscores given by the user? Leave them as underscores? --

Re: [jQuery] How to get element when it's ID contains bank space.

2007-01-11 Thread Klaus Hartl
Erik Beeson schrieb: Scripting on top of an invalid HTML document won't make your life easier (obviously). I'd try to replace spaces given by the user to _ in the backend. And then do what with underscores given by the user? Come on, that was just an idea. You can leave

Re: [jQuery] How to get element when it's ID contains bank space.

2007-01-11 Thread Erik Beeson
It was clear in my head, but I didn't explain it properly :) I meant, if you replace spaces with underscores, and then you want to *display* them as spaces, you'll have ambiguity if there was also an underscore. Not really a big issue. --Erik On 1/11/07, Brandon Aaron [EMAIL PROTECTED] wrote:

Re: [jQuery] How to get element when it's ID contains bank space.

2007-01-11 Thread Erik Beeson
I only brought it up because I'm wrestling with it right at the moment. I have user created tabs where I want to display the name of the tab, and use the name as its ID. Nevermind, it wasn't really an issue and certainly wasn't worth anyone's time. Sorry for the bother :) --Erik On 1/11/07,

Re: [jQuery] How to get element when it's ID contains bank space.

2007-01-11 Thread Brandon Aaron
On 1/11/07, Erik Beeson [EMAIL PROTECTED] wrote: It was clear in my head, but I didn't explain it properly :) I meant, if you replace spaces with underscores, and then you want to *display* them as spaces, you'll have ambiguity if there was also an underscore. Not really a big issue. I see.

Re: [jQuery] 1 Function, Multiple Events?

2007-01-11 Thread Michael Geary
Thanks for the assistance. Yes, I was basically trying to assign a click and dblclick to the same function (to prevent users from double-clicking and firing the func twice). Hmm... If you assigned both click and dblclick to the same function, then the function *would* be called twice on each

Re: [jQuery] How to get element when it's ID contains bank space.

2007-01-11 Thread Michael Geary
Scripting on top of an invalid HTML document won't make your life easier (obviously). I'd try to replace spaces given by the user to _ in the backend. And then do what with underscores given by the user? Come on, that was just an idea. You can leave underscores the way they are for

Re: [jQuery] fadeIn/fadeOut question

2007-01-11 Thread Aaron Heimlich
On 1/11/07, Antonio Collins [EMAIL PROTECTED] wrote: I 'spose I'll go through their code base and look for any other overwrites that should be updated. You should talk to Paul or Stefan before you do because they've been doing *a lot* of work on Interface lately (though none of it has, to my

Re: [jQuery] How to get element when it's ID contains bank space.

2007-01-11 Thread Erik Beeson
That's what we ended up doing. --Erik On 1/11/07, Brandon Aaron [EMAIL PROTECTED] wrote: On 1/11/07, Erik Beeson [EMAIL PROTECTED] wrote: It was clear in my head, but I didn't explain it properly :) I meant, if you replace spaces with underscores, and then you want to *display* them as

Re: [jQuery] How to get element when it's ID contains bank space.

2007-01-11 Thread Dave Methvin
I like it when visitors put quote marks and angle brackets and stuff in these ID fields. It makes for a much more interactive environment when they can run their own code! You forgot the smiley, I hope. :) It brings new meaning to the term dynamic HTML in any case.

Re: [jQuery] 1 Function, Multiple Events?

2007-01-11 Thread Nathaniel See
Thanks, the $(p).one was just a generic example. I plan to reassign the click function on the callback from an ajax request. Thus, this should prevent them from firing a second request while the first is out. Or, would this be better handled by setting a global var, let's say ready=1 on page

Re: [jQuery] dynamic loading of jquery.js into my web page

2007-01-11 Thread Andrea Ercolino
1. I've put this line at the bottom of the standard jquery.js file not compressed: $package('jquery',{}); 2. I've wrapped the content of the standard chili.js file inside this: $using( 'jquery', function() { ... } ); 3. I've changed the default

[jQuery] Refactoring code from Prototype ( $() type ambiguity)

2007-01-11 Thread Nate Cavanaugh
John told me to post this here, so here it is I am currently refactoring a large amount of code over to jQuery. Against better principles, the HTML is rife with onclick=fn(), etc, so I am having to convert over the functions themselves. Prototype's $() will take a string or an object, just

Re: [jQuery] Refactoring code from Prototype ( $() type ambiguity)

2007-01-11 Thread Blair McKenzie
You're handling a case where arg1 isn't a string. What is the alternative? Blair On 1/12/07, Nate Cavanaugh [EMAIL PROTECTED] wrote: John told me to post this here, so here it is I am currently refactoring a large amount of code over to jQuery. Against better principles, the HTML is

Re: [jQuery] Refactoring code from Prototype ( $() type ambiguity)

2007-01-11 Thread Mike Alsup
So in my refactoring, I have been doing this: function test(arg1,arg2){ obj = (typeof arg1 == 'string') ? $('#'+arg1) : $(arg1); return obj; } At some point you're going to bite the bullet and convert all the calling functions to include the '#' right? Hope so. Until then you could just

Re: [jQuery] Refactoring code from Prototype ( $() type ambiguity)

2007-01-11 Thread Nate Cavanaugh
Well, the $() in prototype only accepts objects and strings (it may take array's too, but I know that this code isn't utilising arrays). So, the arg1 is only going to be an object or a string. I could check it's type as object, but since I know those are the only possibilities being passed, Im

Re: [jQuery] Refactoring code from Prototype ( $() type ambiguity)

2007-01-11 Thread Mike Alsup
jQuery.fn._find = jQuery.fn.find; jQuery.fn.find = function(t, context) { if (typeof t == 'string') t = '#' + t; return this._find(t, context); } Of course that really limits how you can use jQuery but it may get you over the hump.

Re: [jQuery] jQuery Powered Sites - Keep the Links Coming

2007-01-11 Thread Karl Swedberg
Hey Rey, Thanks for compiling this list! Glen Lipka got some jQuery goodness into intuit.com before he went off to another company. I can't remember which pages other than the homepage. And the jQuery version of the homepage is served out randomly to a certain percentage of users (for

Re: [jQuery] Refactoring code from Prototype ( $() type ambiguity)

2007-01-11 Thread James Thomas
Well, I just did this too - though not from Prototype but from my own $() function that took a string or an object. All I really needed to do was change my $(str) calls to $('#' + str), which I did via global search-and-replace - searched for $( and replaced it with $(# - worked beautifully and I

Re: [jQuery] Refactoring code from Prototype ( $() type ambiguity)

2007-01-11 Thread Mike Alsup
Maybe this one make more sense: jQuery.fn._find = jQuery.fn.find; jQuery.fn.find = function(t, context) { if (typeof t == 'string' document.getElementById(t)) t = '#' + t; return this._find(t, context); } It's sort of a Prototype conversion plugin I suppose. And probably useful

Re: [jQuery] jQuery 1.1b

2007-01-11 Thread spinnach
..also before, the animate function accepted an object as callback (with step and complete functions), not it only accepts a function, how do you call a function for each step of an animation now?.. ..i may have posted this message before, i apologize if i have, something weird happened in

Re: [jQuery] Mac OS X Widgets?

2007-01-11 Thread Jon Baer
Well as long as they don't close up shop on Javascript in Safari everything should be cool no? http://www.ilounge.com/index.php/news/comments/apples-jobs-more- iphone-apps-coming-before-launch/9320 We define everything that is on the phone,” Jobs told the New York Times. “You don’t

Re: [jQuery] Mac OS X Widgets?

2007-01-11 Thread Ⓙⓐⓚⓔ
they aren't even committing to javascript on the phone... hard to believe they wont! On 1/9/07, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote: Today has been a big day for the mac, and the iphone is about 6 months away. It runs Safari and a mini version of OS X. And it supports widgets! Widgets can be

Re: [jQuery] Refactoring code from Prototype ( $() type ambiguity)

2007-01-11 Thread Erik Beeson
At the point of doing document.getElementById(t), you might as well just return that since that's all jQuery is going to do anyways. You might consider something like (only tested on FF2/win32): jQuery.fn._find = jQuery.fn.find; jQuery.fn.find = function(t, context) { if (typeof t == 'string'

[jQuery] IDs of all checked checkboxes

2007-01-11 Thread Mungbeans
I have a form with multiple checkboxes, each with their own unique id. How do I go about returning the ids of the selected checkboxes into an array? Sorry if this is a bit basic, but it has me stumped. -- View this message in context:

Re: [jQuery] IDs of all checked checkboxes

2007-01-11 Thread Mike Alsup
I have a form with multiple checkboxes, each with their own unique id. How do I go about returning the ids of the selected checkboxes into an array? This should do it: var a[]; $(':checkbox').each(function() { if (this.id) a.push(this.id); });

Re: [jQuery] Refactoring code from Prototype ( $() type ambiguity)

2007-01-11 Thread Mike Alsup
At the point of doing document.getElementById(t), you might as well just return that since that's all jQuery is going to do anyways. No, jQuery will validate that the elem is within the given context (if any). You might consider something like (only tested on FF2/win32): jQuery.fn._find =

Re: [jQuery] IDs of all checked checkboxes

2007-01-11 Thread Mungbeans
malsup wrote: var a[]; $(':checkbox').each(function() { if (this.id) a.push(this.id); }); I get this error: missing ; before statement var a[]; (curse my rudimentary javascript skills!) -- View this message in context:

Re: [jQuery] IDs of all checked checkboxes

2007-01-11 Thread Erik Beeson
You want: var a = []; You've been doing too much C and Java :) --Erik On 1/11/07, Michael Geary [EMAIL PROTECTED] wrote: var a[]; $(':checkbox').each(function() { if (this.id) a.push(this.id); }); I get this error: missing ; before statement var a[]; (curse my

Re: [jQuery] IDs of all checked checkboxes

2007-01-11 Thread Mungbeans
Erik Beeson wrote: You want: var a = []; You've been doing too much C and Java :) I found this works too: a = new Array() $(':checkbox').each(function() { if (this.checked) { if (this.id) a.push(this.id); }

Re: [jQuery] IDs of all checked checkboxes

2007-01-11 Thread limodou
a = new Array() $(':checkbox').each(function() { if (this.checked) { if (this.id) a.push(this.id); } }); a = [] equals a = new Array() but 'var' is used to limited the variable scope. -- I like python!

  1   2   >