[jQuery] Re: Understanding $(document).ready() etc

2007-04-13 Thread Klaus Hartl
wyo schrieb: On Apr 12, 10:41 am, Klaus Hartl [EMAIL PROTECTED] wrote: wyo schrieb: As I understand $(document).ready() is more or less just an enclosure to make sure the DOM is correcly available for use with jQuery. As it Yes, the goal should be to separate behavior (JavaScript

[jQuery] Re: Understanding $(document).ready() etc

2007-04-12 Thread Klaus Hartl
wyo schrieb: As I understand $(document).ready() is more or less just an enclosure to make sure the DOM is correcly available for use with jQuery. As it seems this makes the use of any on... event handler obsolete since any event can be bound in the $(document).ready() enclosure. Is that right

[jQuery] Re: How to add opacity to an element

2007-04-12 Thread Klaus Hartl
Joan Piedra schrieb: Hey guys, Is there a crossbrowser jquery way to add opacity to an element? I've tried with .css('opacity','0.5') and .animate({opacity:0.5},). Is there some documentation or workaround to achieve this? Regards However I thought the above would work as well, the

[jQuery] Re: Defining of a function

2007-04-12 Thread Klaus Hartl
Mike Alsup schrieb: The difference between a function declaration and a function expression is when the actual function object gets created. The easiest way to think of it is that function declarations are always available and function expressions are not available until they have been

[jQuery] Flexible jCarousel

2007-04-12 Thread Klaus Hartl
Hi jQuerians! I was wondering if there is a mod for jCarousel out there, that allows it to be flexible? I need the width of the list and its items to be flexible (depending on the browser width). I tried only a bit yet and tinkered with the windows resize event, to adjust the width of

[jQuery] Re: Flexible jCarousel

2007-04-12 Thread Klaus Hartl
Jan Sorgalla schrieb: Hi Klaus, Hi jQuerians! I was wondering if there is a mod for jCarousel out there, that allows it to be flexible? I need the width of the list and its items to be flexible (depending on the browser width). I tried only a bit yet and tinkered with the windows resize

[jQuery] Re: Flexible jCarousel

2007-04-12 Thread Klaus Hartl
Klaus Hartl schrieb: Here's what I did - it's a hack and you could do better but it works for now and you get the picture: I added a flexibleWidth option and than added the following lines to the init method: // Mod - allow flexible width if (priv.o.flexibleWidth) jQuery(window).bind

[jQuery] Re: Anyone see anything wrong in this code?

2007-04-12 Thread Klaus Hartl
Jörn Zaefferer schrieb: Rick Faircloth schrieb: Commenting out the blur line does prevent IE from locking up. (Why doesn't this happen in FF?), but then, of course, no validation occurs. When I change blur to keyup everything seems to work fine. What's up with that? Keyup is fine, but I

[jQuery] Re: Safari and the wrap() method.

2007-04-12 Thread Klaus Hartl
Remy Sharp schrieb: Sorry - I should add the test: The JS: $(function() { $('#test').wrap('b/b'); }); Then standard HTML with a P tag with the ID of 'test' and some dummy content within it. This test is not guaranteed to work because a b element cannot contain a block level element like

[jQuery] Re: Determine if a table cell is visible or not?

2007-04-11 Thread Klaus Hartl
real schrieb: This should work for you: if ( $('td').is(':visible') ) { // the rest of your code } That won't work (for any element) if display: none has been declared for an ancestor element. Or in this special case the col which the td belongs to (which is not exactly an ancestor).

[jQuery] Re: Autocomplte plugin status

2007-04-11 Thread Klaus Hartl
Jörn Zaefferer schrieb: Hi folks, I've achieved some progress on the autocomplte plugin. The features added by Dan Switzer to Dylan's initial plugin are now merged with modifications for completing multiple values, like in the gmail recpient-field. I made some minor API changes, changed

[jQuery] Re: outerHTML and Firefox does not work

2007-04-10 Thread Klaus Hartl
Karl Rudd schrieb: What do you mean by required tag? Do you mean the attributes in the tag/element, like src=pic1? If you want the src attribute of the element you have selected you could do this: alert( $(#k img).get(i).attr('src') ); No, that will throw an error, because at this point:

[jQuery] Re: jQuery n00b

2007-04-09 Thread Klaus Hartl
Evan schrieb: Can't really comment on the AJAX, because it could be a server side error. However, to dynamically determine the href, use the following: $(document).ready(function() { $(//[EMAIL PROTECTED]//a).click( function() { var href =

[jQuery] Re: problems with the starterkit

2007-04-07 Thread Klaus Hartl
Mike Alsup schrieb: $(#form).reset() should work if it is a correct form. (We attempt to trigger the default event wherever possible.) Huh? The reset event is not bound by jQuery. Are you thinking of submit? No, starting with jQuery 1.1 element events are also triggered. The following

[jQuery] Re: Unique parameter in Ajax

2007-04-07 Thread Klaus Hartl
Diego A. schrieb: Hi Klaus, See http://www.nabble.com/Unique-parameter-in-Ajax-tf3440508s15494.html#a9883915 It's just my preference. I like to use my own header in case the jQuery implementatin changes. I see. I'm pretty sure that this wan't change though. It works with Rails

[jQuery] Re: tabs - initial tab load

2007-04-05 Thread Klaus Hartl
Ariel Jakobovits schrieb: I realize now that this was very specific to my project, and I got this to work. Since i am loading all the elements of my page with AJAX, I had to wait for the tabs to be fully loaded, then simply add the content for each fragment. It is a shame that there is no

[jQuery] Re: tabs - initial tab load

2007-04-05 Thread Klaus Hartl
Klaus Hartl schrieb: Ariel Jakobovits schrieb: I realize now that this was very specific to my project, and I got this to work. Since i am loading all the elements of my page with AJAX, I had to wait for the tabs to be fully loaded, then simply add the content for each fragment

[jQuery] Re: Body Browser Classes

2007-04-05 Thread Klaus Hartl
Glen Lipka schrieb: I hear everyone's points. I think the easy to remove it in 2012 argument doesn't resonate for me, since anything created today will be changed within 1-3 years (in my experience) and IE6 isn't going away that soon. The screen-reader/mobile stuff seems like they would

[jQuery] Re: Does this code look correct?

2007-04-04 Thread Klaus Hartl
Rick Faircloth schrieb: Well... if you're going to be picky... ;o) Sorry... here's the code: function toggleButton() { $Calculate = $(#Calculate)[0]; if($(principal_status).val() == true

[jQuery] Re: Moving to Google Groups (Finally)

2007-04-04 Thread Klaus Hartl
John Resig schrieb: Hey Everyone - Google has finally imported all of the users into the new jQuery Google Group. From now on, all messages should be going to the group directly instead of the old mailing list (discuss@jquery.com). Important information: - The new jQuery mailing list is

[jQuery] Re: Moving to Google Groups (Finally)

2007-04-04 Thread Klaus Hartl
Mike Alsup schrieb: Not surprisingly, gmail works just fine. :-) In any case, if someone has figured out a way around this with any email app, please let us know. Argh. There's an GMail UI extension for Thunderbird. I don't think so, but maybe it does some magic. -- Klaus

[jQuery] Re: Moving to Google Groups (Finally)

2007-04-04 Thread Klaus Hartl
Karl Swedberg schrieb: On Apr 4, 2007, at 7:02 AM, Klaus Hartl wrote: I have one question though: I'm using Thunderbird and after the transition to Google Groups a lot of threads get splitted into at least two parts. Maybe the threading gets messed up if someone posts via web interface

[jQuery] Re: low hanging newbie fruit for you to snack on

2007-04-04 Thread Klaus Hartl
stylo~ schrieb: no doubt, though you wouldn't want my code in there :-) I should submit the timestamp option for GET's as a bug, though. I think it's not that easy. jQuery also supports If-Modified in some way and maybe an automatic cache killer would interfere with that. -- Klaus

[jQuery] Re: pls pls pls.. help..

2007-04-04 Thread Klaus Hartl
Rikard.C schrieb: Hi. does anyone know how to call a function from a url like http://www.XYZ.com/page.html#FUNCTION ??? Here's what you can try (untested): try { var functionNameFromHash = location.hash.replace('#', ''); eval(functionNameFromHash + '()'); } catch(e) { // fail

[jQuery] Re: pls pls pls.. help..

2007-04-04 Thread Klaus Hartl
Klaus Hartl schrieb: Rikard.C schrieb: Hi. does anyone know how to call a function from a url like http://www.XYZ.com/page.html#FUNCTION ??? Here's what you can try (untested): try { var functionNameFromHash = location.hash.replace('#', ''); eval(functionNameFromHash

[jQuery] Re: pls pls pls.. help..

2007-04-04 Thread Klaus Hartl
Brunner Adam schrieb: Hello! Hi. does anyone know how to call a function from a url like http://www.XYZ.com/page.html#FUNCTION Here's what you can try (untested): try { var functionNameFromHash = location.hash.replace('#', ''); eval(functionNameFromHash + '()'); } catch(e) { //

[jQuery] Re: low hanging newbie fruit for you to snack on

2007-04-04 Thread Klaus Hartl
stylo~ schrieb: I think it's not that easy. I believe it is. Used it for years. Other APIs do it too, I recall. Whatever. I'm still not sure, if the ifModified option would still work as expected if you add an automatic cache killer to every GET request. -- Klaus

[jQuery] Re: Google Maps Plugin

2007-04-03 Thread Klaus Hartl
Robert O'Rourke schrieb: I think this one does: $(window).bind('unload', GUnload); Note that you don't need an anonymous function if you already have a reference to a function. Also the unload event handler is fired on the window and attaching it to the body like the obtrusive way in the

[jQuery] Re: jQuery selectors speed improvements - A different perspective

2007-04-03 Thread Klaus Hartl
Dan G. Switzer, II schrieb: * We need a plugin, that enables to speed up the core. It can be used in web applications, which need a lot of perfomance. It doesn't matter, if some core functions are not used any more (performance is the goal). It is important, that the jquery style still remains

[jQuery] Re: cant get remote file / set post/get parameters with TABS plugin - help!

2007-04-01 Thread Klaus Hartl
amircx schrieb: hey. im trying somehow to get in tabs a remote url , or atleast to set a get paramter to the tab i got this following code and its writes me error access denied how can i skip it or tweak the code ?? Tabs requires links in the HTML: lia href=get.php?url=ice

<    4   5   6   7   8   9