[jQuery] Re: (OT) Node.prototype

2007-05-15 Thread Klaus Hartl
Sean Catchpole wrote: Mozilla (Firefox) can extend Node, but IE cannot. Here's a snippet of what I am trying to do: Node.prototype.ac = function(e) { this.appendChild(e); } The problem is that "Node" is not defined in IE. Does anyone have any bright ideas on how we can trick IE into workin

[jQuery] Re: jcarousel safari

2007-05-15 Thread Klaus Hartl
Karl Rudd wrote: I haven't looked at the page but I'll wager it's one of Safari's "lazy update" type problems. Sometimes you change the styling of an object and it doesn't update till it gets an actual change in the DOM. You can try putting the following somewhere after the carousel is built:

[jQuery] Re: jquery tabs: changing color of unselected tabs

2007-05-15 Thread Klaus Hartl
[EMAIL PROTECTED] wrote: Hi, This should be simple, I know, but I'm having problems. Using the default stylesheet that accompanies the Jquery Tabs example, how do I change the color of unselected links? I tried adding a "color:" directive to the ".tabs-nav a" class, but to no avail. The link

[jQuery] Re: jquery tabs: changing color of unselected tabs

2007-05-15 Thread Klaus Hartl
Giuliano Marcangelo wrote: Dave, if you "go"a little more specific, and target the .tabs-nav a span, and apply a color to that..and at same time target .tabs-nav .tabs-selected a span for some contrast...you will get your desired effect There's no need to go more specific (besides that it's

[jQuery] Re: thickbox reloaded?

2007-05-15 Thread Klaus Hartl
BAlexandre Plennevaux wrote: Hello Klaus, great: although i used TB2 quite a lot (that's what got me into jquery in the first place), as i grew more used to the jquery way of coding, i prefer the reloaded code. $("element").thickbox(); I'm now trying to hack your implementation so that it a

[jQuery] Re: thickbox reloaded?

2007-05-15 Thread Klaus Hartl
Alexandre Plennevaux wrote: > hello, > > I know thickbox 3 is out. What of the parallel branch "thickbox reladed" > ? Is it still on? > > thank you, > > Alexandre Yes, it is still on the plate. It has a few things that TB 3 doesn't have, thus I still see a reason to finish it. Unfortunate

[jQuery] Re: help! imagebox disaster - website crashes safari

2007-05-15 Thread Klaus Hartl
Robert O'Rourke wrote: Help! I'm really desperate here, the site I just set live is causing safari to crash when you click through to a property page.. not good. The only unique thing about the page is that I am including imagebox and interface in the head. Are there known issues with th

[jQuery] Re: Tabs

2007-05-15 Thread Klaus Hartl
[EMAIL PROTECTED] wrote: Hello. I am new to this group. I would like to implement tab plugin into my site. I have read the articles on http://stilbuero.de/2006/05/13/accessible-unobtrusive-javascript-tabs-with-jquery/ but i am still have problems figuring out howto make this run. Here is my c

[jQuery] Re: jquery tabs: adding a tab on the fly

2007-05-15 Thread Klaus Hartl
[EMAIL PROTECTED] wrote: Thanks for this info. One thing I notice when doing this is that when I reinitialize the tabs, a whole new group of containers gets created. So for example, if there were 5 tabs initially, and then I try and add a 6th, after reinitialization, there are now ... ... ..

[jQuery] Re: jquery tabs: adding a tab on the fly

2007-05-14 Thread Klaus Hartl
[EMAIL PROTECTED] wrote: Hi, Regarding JQuery Tabs (http://stilbuero.de/2006/05/13/accessible- unobtrusive-javascript-tabs-with-jquery/), is there an elegant way to add a new tab after the page has loaded and the tabs have already been constructed? That is, I have already made this call

[jQuery] Re: Tabs Plugin - Hiding all Tabs at startup

2007-05-14 Thread Klaus Hartl
tobaco wrote: hi there, is it possible to hide all tab-container at start-up and also not select the current tab in the navigation? thanks! no, unfortunatly this is not supported right now. it's on the plate vor Version 3 though, but in the light of my current workload this won't happen a

[jQuery] [ANN] Tabs plugin update

2007-05-14 Thread Klaus Hartl
Hi all, a few updates for the tabs plugin: * CSS update: I made the tabs width/height flexible again, still having a mininmal width... - because people didn't stop asking :-) * I've added a method activeTab to retrieve the currently selected tab, usage is: var index = $('#tabs').activeTab()

[jQuery] Re: any way to clear cached data

2007-05-13 Thread Klaus Hartl
[EMAIL PROTECTED] wrote: Hi, I noticed with the Jquery AJAX tabs, when the remote tab content is loaded, it is stored in a hidden DIV, and then when the tab is re- selected, the content of that DIV is loaded. Is there a way to get the tab to reload the AJAX content each time, instead of going

[jQuery] Re: tabs 2.7

2007-05-12 Thread Klaus Hartl
oscar esp wrote: 1)I am using some plugins to build a page. 2)I am using jQuery.noConflict(); I have a a page that works fine using: validatorr, metada plugins. However when I use a tabs 2.7 plugin in order to load that page into a tab a error is produced Microsoft JScript runtime error: 'jQ

[jQuery] Re: jquery tabs: How to make the tab contain both text and a small image

2007-05-10 Thread Klaus Hartl
[EMAIL PROTECTED] wrote: Hi, With regards to the plugin (http://stilbuero.de/jquery/tabs/), I want the text of one of my tabs to contain both text and a small, clickable "x" image on the same line. Is this possible? It seems if I put anything more advanced than

[jQuery] Re: jquery tabs: custom html structure?

2007-05-10 Thread Klaus Hartl
[EMAIL PROTECTED] wrote: Hi, I wanted to get clarification around the "Custom HTML structure" of the JQuery tabs plug-in. Specifically, it is mentioned in the docs "If some HTML structure is required that differs from the default one" Does this mean for the tabs themselves or the container h

[jQuery] Re: jQuery svn browser broken. Some documentation unaccessible

2007-05-10 Thread Klaus Hartl
John Resig wrote: The jQuery subversion repository was moved to Google Code yesterday, so you can reference it there, at least: http://jqueryjs.googlecode.com/svn/ --John I'd like to commit a few things, but it seems that the old authentication isn't working? -- Klaus

[jQuery] Re: click - Basic issue

2007-05-10 Thread Klaus Hartl
Mario Moura wrote: Thanks, Works like a charm. Now I finished what I was looking for. I was working to insert a link in caption(Subtitle) of Interface SlideShow (http://interface.eyecon.ro/demos/slideshow.html ) Here my solution: $(".slide

[jQuery] Re: $("#test:test") not working

2007-05-08 Thread Klaus Hartl
Jake McGraw wrote: I'm pretty sure this is not a bug, how do you think user agents handle the following: HTML: A bad ID string CSS: a#myanchor:hover {color:#000;} Will the anchor be black automatically or only when a cursor hovers over it? According to CSS2 and above, colons are reserved fo

[jQuery] Re: ajax tabs: Where is "remote-tab-1" coming from?

2007-05-08 Thread Klaus Hartl
[EMAIL PROTECTED] wrote: Hi, I'm trying to create some AJAX tabs that load a PHP page subject to a parameter. However, whenever I roll over my tabs, or click on one of them, they attempt to load something called "remote-tab-n" where "n" is the sequence of where the tab occurred. However, I ha

[jQuery] Re: Plugin downloads

2007-05-07 Thread Klaus Hartl
wyo wrote: On May 4, 9:44 am, "Giuliano Marcangelo" <[EMAIL PROTECTED]> wrote: Otto, seems fairly easy to me to download the js http://menu.n2cms.com/Js/n2menu.js Well it's just shown as text without any formating when I access the link. O. Wyss Well, I don't know of any browser nor

[jQuery] Re: Node

2007-05-05 Thread Klaus Hartl
Su wrote: On 5/3/07, Glen Lipka <[EMAIL PROTECTED]> wrote: Can jQuery access the node and add a class to it? Is this invalid XHTML? Class is invalid on the HTML element, but you /can/ assign an ID. Given that there should never be more than one HTML element in a doc, this is less a restrict

[jQuery] Re: Node

2007-05-05 Thread Klaus Hartl
Glen Lipka wrote: div.foo.bar {} works perfectly in IE6, IE7, and FF. No, unfortunately not. IE 6 does not support multiple class selectors. This won't be noticed in some cases, because IE treats the aforementioned selector like div.bar {} -- Klaus

[jQuery] Re: Node

2007-05-05 Thread Klaus Hartl
Rob Desbois wrote: Just to extend on what Su said - you would never need a class or even ID for the tag because there *is* only one (or should be anyway!) So, to target it with a CSS rule you just need: html { /* ... */ } But as he says, why would you need to target not ? Rob. Even with

[jQuery] Re: ajax tabs: How do you refer to area content is loaded into?

2007-05-04 Thread Klaus Hartl
[EMAIL PROTECTED] wrote: Hi, With regards to the tabs plugin (http://stilbuero.de/jquery/tabs/ #fragment-13), I want to use the AJAX functionality to load content based on what tab is clicked. I understand content is loaded automatically from the specified URL, but once it is loaded, how do I

[jQuery] Re: "Focus" code snippet for: BlockUI, Lightbox, Thickbox, and other windows...

2007-05-04 Thread Klaus Hartl
Gilles (Webunity) wrote: Well, sorry Klaus, but i based this conclusion on this page: http://malsup.com/jquery/block/#dialog Show the dialog (in FF 2.0) and start tabbing. You'll soon see that the focus jumps to the "tabs" on top of the screen. I didn't actually "look" into the code, so sorry f

[jQuery] Re: ThickBox 3

2007-05-04 Thread Klaus Hartl
Sam Collett wrote: Will this effect the development of thickbox reloaded (http:// stilbuero.de/jquery/thickbox_reloaded/) which is designed to be used more like a plugin (i.e. $(#myimage").thickbox())? No, absolutely not! All I can say is that I'm already using Thickbox Reloaded quite heavily

[jQuery] Re: "Focus" code snippet for: BlockUI, Lightbox, Thickbox, and other windows...

2007-05-04 Thread Klaus Hartl
Gilles (Webunity) wrote: Guys, It has been a long time since the first blockUI and "window" plugins (e.g. lightbox/thickbox) became available. However, i still didn't see this piece of code in any of these sollutions. All projects have thesame "bug", you can TAB out of the lightbox, to the unde

[jQuery] Re: newbie question: how to set location to a target in a way that is supported by i.e. and safari?

2007-05-03 Thread Klaus Hartl
[EMAIL PROTECTED] wrote: Hi can jquery help with the followng problem? If, in conventional javascript, I have a function goToAnchor(){ href.location="#blah" } and call it by then it works fine in i.e. and firefox but causes safari to endlessly load the page - see (http://www.s-seven.net/saf

[jQuery] Interface: fix for ifxhighlight

2007-05-02 Thread Klaus Hartl
Hi jQuerians and Interfacer users, I just committed a little fix for the highlight effect. If you specify a color to animate from, in IE that color is not removed after animation is done. The reason is the order of the following two lines of code: jQuery(this).css('backgroundColor', color);

[jQuery] Re: Getting the value of a select option by it's text

2007-05-01 Thread Klaus Hartl
David schrieb: Hi, I have an odd problem that I'm trying to solve with jQuery. I have select box with multiple options. Each of the options has a value, which is a database id, and text which is what is displayed in the select box, e.g.: Please select: --- Phone me fo

[jQuery] Re: history in ajax and setting the ajax url

2007-04-29 Thread Klaus Hartl
xavier schrieb: Hi, Sorry, I'm completely lost. I tried to dig into your tabs plugin, I don't understand where you call it. I found: if (settings.bookmarkable && trueClick) { // add to history only if true click occured, not a triggered click $.ajaxH

[jQuery] Re: history in ajax and setting the ajax url

2007-04-28 Thread Klaus Hartl
xavier schrieb: Hello, I want to have an application that works both with and without ajax. Eg: without ajax, I get /contentWithMenu and with ajax I .load / contentonly into #content jQuery("[EMAIL PROTECTED]/]").bind("click",function(){ jQuery("#main").load ("/xajax/"+this.pathname,{},f

[jQuery] Re: jQuery Tabs: activate on rollover instead of click?

2007-04-27 Thread Klaus Hartl
Fabyo Guimaraes schrieb: http://stilbuero.de/jquery/tabs/mouseover.html if to select the text tab 2 change active tab1 etc... Ah, now I see. As I wrote a few mails before, this is *intended*: "In that demo, after mouseout and a delay of one second the 1st tab is activated again (because tha

[jQuery] Re: Interface: bounce with fixed positioning?

2007-04-27 Thread Klaus Hartl
Jörn Zaefferer schrieb: I wanted to use Interface's bounce effect for a fixed positioned element - an element that gets moved into view from the top and than bounces a little at the end (like it was falling down). Should I commit my fix? I'd find that quite useful. I've committed the fix f

[jQuery] Re: jQuery Tabs: activate on rollover instead of click?

2007-04-27 Thread Klaus Hartl
Fabyo Guimaraes schrieb: It tries to select a text, dumb it of pagina this not is good it uses the effect only on of the border and not of the document all I'm sorry, I really don't know what you're talking of... -- Klaus

[jQuery] Re: jQuery Tabs: activate on rollover instead of click?

2007-04-27 Thread Klaus Hartl
Fabyo Guimaraes schrieb: I did not like, and of bug Pardon? What do you mean and what exactly are you refering to? -- Klaus

[jQuery] Re: Getting href value

2007-04-26 Thread Klaus Hartl
Karl Swedberg schrieb: Hey, if you're impressed by that, you should see my Tabs plugin! Cool! I'm using it all of the time ;-) -- Klaus

[jQuery] Re: plugin sizes, part 2

2007-04-26 Thread Klaus Hartl
Ariel Jakobovits schrieb: What I meant to ask before I submit hastily was whether all the feature requests we, I included, are sending to the plugin developers are bloating the plugins? (sorry for 2 emails) Yes, they do. I'm experiencing exactly the same with Tabs and especially with Thic

[jQuery] Re: Getting href value

2007-04-26 Thread Klaus Hartl
Karl Swedberg schrieb: On Apr 26, 2007, at 6:23 PM, Klaus Hartl wrote: Karl Swedberg schrieb: Hi Shelane, Looks like you just forgot the $ or jQuery before the opening parenthesis. This should work: var initlink = $('a', 'div.nav_one_selected').attr("href");

[jQuery] Re: Getting href value

2007-04-26 Thread Klaus Hartl
Karl Swedberg schrieb: Hi Shelane, Looks like you just forgot the $ or jQuery before the opening parenthesis. This should work: var initlink = $('a', 'div.nav_one_selected').attr("href"); --Karl This would still not work, but this: var initlink = $('a', $('div.nav_one_selected')).attr("h

[jQuery] Re: jQuery Tabs: activate on rollover instead of click?

2007-04-26 Thread Klaus Hartl
[EMAIL PROTECTED] schrieb: Is it possible to change Karl's tab plugin to activate the tabs and their content when rolling over a tab, instead of clicking on it? I browsed the source and didn't see anything that stuck out as a config option to change this, and I'd like to avoid changing the core.

[jQuery] Re: Interface: bounce with fixed positioning?

2007-04-26 Thread Klaus Hartl
Klaus Hartl schrieb: Hi there, I wanted to use Interface's bounce effect for a fixed positioned element - an element that gets moved into view from the top and than bounces a little at the end (like it was falling down). Unfortunately the effect is messed up for such fixed posit

[jQuery] Interface: bounce with fixed positioning?

2007-04-26 Thread Klaus Hartl
Hi there, I wanted to use Interface's bounce effect for a fixed positioned element - an element that gets moved into view from the top and than bounces a little at the end (like it was falling down). Unfortunately the effect is messed up for such fixed positioned element. From a quick look

[jQuery] Re: datePicker v2 beta

2007-04-24 Thread Klaus Hartl
Mike Alsup schrieb: This is awesome, Kelvin!! +1 Just in time to make it into plazes probably... :-) -- Klaus

[jQuery] Re: what's the best way to catch malformed xml in an ajax call?

2007-04-23 Thread Klaus Hartl
Diego A. schrieb: You may find the isXMLDoc function useful... I don't think that will work, because with an ill-formed XML there is no DOM to operate... -- Klaus

[jQuery] Re: ajax and links

2007-04-23 Thread Klaus Hartl
Tom Shafer schrieb: is it possible to have the url and the data come from the link href using the ajax funtions in jquery? Absolutely. I did that with my history/remote plugin for example: http://stilbuero.de/jquery/history -- Klaus

[jQuery] Re: what's the best way to catch malformed xml in an ajax call?

2007-04-22 Thread Klaus Hartl
Ⓙⓐⓚⓔ schrieb: I use the error callback, but it doesn't get called back when the xml is malformed. Do I need to use the complete callback?? Yes, I think so. Or the success callback. The reason is, that the response has been successfully delivered, just with ill-formed XML. You may need a t

[jQuery] Re: Why this code is so slow?

2007-04-22 Thread Klaus Hartl
Christof Donat schrieb: Hi, How can I change this to my code runs faster? I don't think, that you should change jQuery here. As much as I understand it, that function is called whenever you use a more complex expression than just an ID, a tag name or a classname. 1. Try to give your inp

[jQuery] Re: Why this code is so slow?

2007-04-22 Thread Klaus Hartl
Web Specialist schrieb: Thanks Christof and Klaus. After change my code(using your suggestions) I have improvements: isXMLDoc 14285 16.33% 765.625ms 765.625ms 0.054ms 0ms 15.625ms jquery.js (line 298) merge 529 15% 703.125ms 765.625ms 1.447ms 0ms 46.875msjque

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-22 Thread Klaus Hartl
Andy Matthews schrieb: Simple way to do it might be to use javascript itself to do a forward or something like that. I've seen people set up a meta refresh of 5 seconds in the header, then use javascript to do a location.href as soon as the page loads. If they have js, they get redirected immedi

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-22 Thread Klaus Hartl
Klaus Hartl schrieb: Dan G. Switzer, II schrieb: self.location = "page.htm?js=true"; In this example if JS is enabled, the JS code would be executed redirecting the user to page w/a URL parameter indicating that JS was enabled. If the JS code doesn't execute, then t

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-22 Thread Klaus Hartl
Dan G. Switzer, II schrieb: self.location = "page.htm?js=true"; In this example if JS is enabled, the JS code would be executed redirecting the user to page w/a URL parameter indicating that JS was enabled. If the JS code doesn't execute, then the meta refresh would take over. However, I c

[jQuery] Re: Why this code is so slow?

2007-04-22 Thread Klaus Hartl
Christof Donat schrieb: $('#dadosAuxiliares').tabs( {fxShow: {height: 'show', opacity: 'show'}, tabStruct:'.fragment'}); $('#dadosAuxiliares').triggerTab(0); can be $('#dadosAuxiliares').tabs( { fxShow: {height: 'show', opacity: 'show'}, tabStruct:'.fragment'} ).triggerTab

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Klaus Hartl
Rick Faircloth schrieb: If JS is enabled, then I can use Ajax to send them back, if not, then the page will have to be refreshed. If you use JavaScript in the sense of Progressive Enhancement, this should be no problem at all. First build your form working in the traditional way, afterward

[jQuery] Re: Erratic behavior of cookie plugin

2007-04-20 Thread Klaus Hartl
Jörn Zaefferer schrieb: Ⓙⓐⓚⓔ schrieb: "/" for a path is great. every page will share the cookies, KLAUS & Jörn, wouldn't it be a nice default? This is "server wide cookies". If you added a domain ".example.com" You have "all 'subhost' cookies". If you added a domain "example.com

[jQuery] Re: Desperately Lost in Space with the Tabs Plugin

2007-04-19 Thread Klaus Hartl
Digislick schrieb: Hi again, I believe I understood where you told me to put the CSS - inline in the http://digislick.com/news/events_calendar_example.html page. Is that correct? If so, I have tried it (deleted the CSS out in all the files named by month and inserted the CSS in the events c

[jQuery] Re: Desperately Lost in Space with the Tabs Plugin

2007-04-18 Thread Klaus Hartl
Digislick schrieb: Hi and nice to meet you :-) I kinda figured you're busy as most of you seem to be very much so :-) Just thought I'd give the group a shot as I'm pretty desperate at the moment. Sorry for so much code but I wasn't sure which was the most important to be included. The CSS

[jQuery] Re: Desperately Lost in Space with the Tabs Plugin

2007-04-18 Thread Klaus Hartl
Hi there, I'm the maker of the plugin. If I am not responsive, than its because I'm pretty busy right now. That's a lot of code to scan through. How do you include the CSS and scripts you're talking of? You need to include all of that in the page that contains the tabs, not the one that g

[jQuery] Re: [PATCH] jQuery 1.1 star rating fix

2007-04-18 Thread Klaus Hartl
Jörn Zaefferer schrieb: Ian Eure schrieb: I ran into some problems with the star rating plugin for jQuery 1.1. The issue is that (at least in Firefox) links with "#foo" get expanded to include the current page URL. The plugin assumes the href attribute is a simple "#5", so the rating isn't ex

[jQuery] Re: Tabs plugin: Is there a way to trigger a tab with a URL to load?

2007-04-18 Thread Klaus Hartl
Phillip B Oldham schrieb: I'd like to be able to trigger a tab using the following format (or something similar): $('#container').triggerTab(3, 'http://mysite.com/updates.html'); The second parameter is a URL I'd like to load, which can change depending on user input. Is this possible? N

[jQuery] Re: ThickBox question

2007-04-18 Thread Klaus Hartl
Chris Jordan schrieb: Hi folks, I've searched the archives, but didn't find what I was looking for. So if this has already been discussed and someone can point me to the old thread, that'd be awesome. Otherwise: Is it possible to trigger the opening of a thickbox without a link? In other words

[jQuery] Re: Question about jQuery + CSS

2007-04-18 Thread Klaus Hartl
howard chen schrieb: sorry, a:hover is just an example, what i want is to style pseudo class, such as a:visited, a:active etc There are no properties in JavaScript that represent these pseudo classes, thus it cannot be done. -- Klaus

[jQuery] Re: Erratic behavior of cookie plugin

2007-04-17 Thread Klaus Hartl
joomlafreak schrieb: Hi Klaus Thanks for your prompt reply as always. That was Jake replying so promptly, while I was asleep ;-) So let's thank Jake! -- Klaus

[jQuery] Re: Library showdowns

2007-04-17 Thread Klaus Hartl
Glen Lipka schrieb: On 4/16/07, *Sean Catchpole* <[EMAIL PROTECTED] > wrote: Interesting find Karl, Thanks I'm still trying to see if I can find a graceful way to implement curried functions, but that method is elegant in it's own sense. ~Sean Doe

[jQuery] Re: Reducing this code.

2007-04-16 Thread Klaus Hartl
Klaus Hartl schrieb: I'd choose this approach in order to avoid typing the class name "on" in more than one place (which may lead to errors if you want to change that one and forget it somewhere - not here maybe but in larger chunks of code). It actually avoids duplicating th

[jQuery] Re: Reducing this code.

2007-04-16 Thread Klaus Hartl
Sean Catchpole schrieb: Hello, Perhaps this would be a faster way of typing this (yet still easy to read): $(function(){ $("fieldset").find("intput,select,textarea") .focus(function(){ $(this).parent().addClass("on"); }) .blur(function(){ $(this).parent().removeClass("on"); }); });

[jQuery] Re: selecting elements containing colons

2007-04-15 Thread Klaus Hartl
Dan G. Switzer, II schrieb: Sean, I know that jQuery made the decision not to allow selection of elements with colons in them, however it is valid XML. Here is an example piece of code I am getting back from an ajax call: Free chicken!news:special> Any ideas how I can select

[jQuery] Re: Showing a bind(click...) as clickable

2007-04-15 Thread Klaus Hartl
Diego A. schrieb: in IE: .hover{ cursor:hand; } This is only required for IE 5. IE 6 supports cursor: pointer. -- Klaus

[jQuery] Re: clone does copy the accesskey attribute

2007-04-13 Thread Klaus Hartl
xavier schrieb: Hi, When I clone an element that has an accesskey, it's copied to the cloned element as well. Then you end up with two different elements having the same accesskey. Obvioulsy no good. Do I have to call .removeAttr('accesskey') method on each cloned node or is there a better wa

[jQuery] Re: Flexible jCarousel

2007-04-13 Thread Klaus Hartl
Jan Sorgalla schrieb: ok, i see now. One of the main differences between the old and the new version of jCarousel is, that you no longer have to pass itemsVisible as option. The number of visible items are calculated on the fly depending on the sizes of the clip and the items. I've done that mai

[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 (JavaScrip

[jQuery] Re: Autocomplte plugin status

2007-04-12 Thread Klaus Hartl
Jörn Zaefferer schrieb: Klaus Hartl schrieb: Jörn, thanks for this. One question: I once modified Dylan's autocomplete a bit, so that if the autocomplete list is shown, tabbing would tab through the list instead of to the next form element. Is it possible to take into account? Have a

[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(''); }); 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 element cannot contain a block level element like a pa

[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, b

[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(wi

[jQuery] Re: Flexible jCarousel

2007-04-12 Thread Klaus Hartl
Klaus Hartl schrieb: 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

[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 even

[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 .jcar

[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 evalu

[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 follo

[jQuery] Re: can you do this with JQuery

2007-04-12 Thread Klaus Hartl
Alexandre Plennevaux schrieb: Tweaking jqAccordion should be able to do this I think a while back John prototyped something similiar while they were trying to recreate a mootools menu with jQuery... -- Klaus

[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 o

[jQuery] Re: Autocomplte plugin status

2007-04-11 Thread Klaus Hartl
[EMAIL PROTECTED] schrieb: I don't believe using tab to iterate through an auto-complete list would be the expected behavior. In my opinion, an auto-complete list should mirror the behavior of a regular select element, whereby hitting tab would select the currently high-lighted list option and

[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 a

[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). Th

[jQuery] Re: How do you write custom callback functions in jQuery?

2007-04-11 Thread Klaus Hartl
Jörn Zaefferer schrieb: $.fn.delayHide(time, callbackArgument) { var self = this; setTimeout(function() { callbackArgument.call(self); }, time); } $("input").delay(3000, function() { this.hide(); }); That should delay hiding an element by three seconds, using a callback.

[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

[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 = $(th

[jQuery] Re: AJAX Problem

2007-04-07 Thread Klaus Hartl
dropx schrieb: I know how to call from another host with javascript without using JQuery. my question: is it possible to solve this with just JQuery's ajax functions? XmlHttpRequest ("Ajax") does not allow cross-domain requests. jQuery nor any other library can solve this, because it is not s

[jQuery] Re: problems with the starterkit

2007-04-07 Thread Klaus Hartl
Jörn Zaefferer schrieb: Mike Alsup schrieb: > 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 for example will focus the first input in the page: Yes, but those events have to be bo

[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 out-of-the-b

[jQuery] Re: problems with the starterkit

2007-04-06 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 followin

[jQuery] Re: Unique parameter in Ajax

2007-04-06 Thread Klaus Hartl
Diego A. schrieb: I ended up changing my server application to look for the header "x-Method = Ajax" and it works just fine. Oh well, jQuery already adds a custom header to each Ajax request: "X-Requested-With: XmlHttpRequest" -- Klaus

[jQuery] Re: Unique parameter in Ajax

2007-04-06 Thread Klaus Hartl
Mike Alsup schrieb: Oops, wrong thread, sorry. Klaus had a nice post on this one: http://groups.google.com/group/jquery-en/browse_thread/thread/5ec973dd2ca45738/3794cc7ced0f3ee0#3794cc7ced0f3ee0 I think you meant: http://groups.google.com/group/jquery-en/browse_thread/thread/68592545316c1e4

[jQuery] Re: Body Browser Classes

2007-04-06 Thread Klaus Hartl
[EMAIL PROTECTED] schrieb: There is an easier way that is not jQuery-or-Javascript-dependent, since mostly we just want to know is the browser IE or not. Use conditional comments around the BODY tag. See http://www.puidokas.com/updating-my-css-for-ie7/ . I use : Dan

[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 ha

[jQuery] Re: Body Browser Classes

2007-04-05 Thread Klaus Hartl
Glen Lipka schrieb: Regarding conditional comments to include other CSS: I find it annoying. Here is why. When I declare a class like div.header ul.global li.something span.other {margin-top: 10px} (or whatever) and realize that IE6 is 3 px off, and I cant figure out why. And my boss is

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

2007-04-05 Thread Klaus Hartl
stylo~ schrieb: All I'm saying is that jQuery supports an ifModified option for Ajax requests and that I'm not sure if that option still works as expected with an automatic time stamp added to each request. I see. I would assume not bc a different url. Btw, I wouldn't want an automatic stamp

[jQuery] Re: Png fix for ie 6

2007-04-05 Thread Klaus Hartl
Weaver, Scott schrieb: Watch out for using scripting in IE styles to fix png transparencies. I tried this approach and it is inefficient to say the least, especially if your images are involved in any type of effect on the page. I caught IE calling the style script 3 times for a single image i

<    4   5   6   7   8   9   10   >