[jQuery] Re: Drag and Drop in Tabs

2009-08-13 Thread Klaus Hartl
On 13 Aug., 07:30, Applecore i...@applecorestudios.com wrote: The jquery.tabs.js file uses the jQuery.load function to load content from a file. The problem is that this function will remove all scripts from the file because it can't handle them. The only function that will allow this is the

[jQuery] Re: jCarousell and tabs problem

2009-08-01 Thread Klaus Hartl
Please see: http://docs.jquery.com/UI/Tabs#...my_slider.2C_Google_Map.2C_sIFR_etc._not_work_when_placed_in_a_hidden_.28inactive.29_tab.3F On 30 Jul., 20:01, vvaz vfp...@gmail.com wrote: Hello all. I have a problem with the jCarousel Plugin when i try to display a second carousel inside one

[jQuery] Re: Switching a tabs content from a remote source to a local source

2009-07-23 Thread Klaus Hartl
That shouldn't happen and a similiar bug was fixed for IE long time ago. Which browser do you encounter this bug in and which version of jQuery UI do you use? --Klaus On 22 Jul., 19:22, WR willrya...@googlemail.com wrote: It seems that if you change the url of a tab from a remote source

[jQuery] Re: UI Tabs and xStandard Object

2009-07-20 Thread Klaus Hartl
Could you try this? http://docs.jquery.com/UI/Tabs#...my_slider.2C_Google_Map.2C_sIFR_etc._not_work_when_placed_in_a_hidden_.28inactive.29_tab.3F --Klaus On 19 Jul., 15:25, blackmeta...@googlemail.com blackmeta...@googlemail.com wrote: Hi I seem to have found the following bug. (I am

[jQuery] Re: Jquery UI Tabs and Ajax

2009-07-16 Thread Klaus Hartl
$(#tabs).tabs(); should be just fine, the type of tab is detected automatically. Unless you're using a very, very old version of Tabs. --Klaus On 17 Jul., 00:49, havanna thomas.blas...@diacs.de wrote: Hi together, I tried it in the group Jquery UI - but nobody answer there?! I'm really

[jQuery] Re: POST method not working for AJAX Tabs

2009-06-22 Thread Klaus Hartl
$('#tabs').tabs({ spinner: 'Loading...', ajaxOptions: { dataType:'text' } }); http://docs.jquery.com/UI/Tabs#options --Klaus On 21 Jun., 22:18, Hardip hardi.per...@gmail.com wrote: a small correction. the method is working. what wasn't working is the dataType. if i

[jQuery] Re: jQuery 1.3.2 in IE5.5

2009-06-19 Thread Klaus Hartl
On 18 Jun., 19:32, Rodrigo rodrigo.s.alfo...@gmail.com wrote: I'm trying the simplest task ever, like an alert thrown on the $ (document).ready, but no luck :-( Also, I slightly remember that alerts are one of the things that do not work in the standalone IEs... --Klaus

[jQuery] Re: jQuery Cookie Plugin

2009-06-08 Thread Klaus Hartl
Did you try $.cookie('the_cookie', 'the_value', { expires: 7 }); // expires after 7 days ? The expires option will also accept a Date object. --Klaus On 8 Jun., 20:27, Richard Walsh deviantstu...@me.com wrote: Hey guys, I'm working on a project where I am using the jquery plugin that

[jQuery] Re: tabs and ajax

2009-05-30 Thread Klaus Hartl
Which version are you using? I've fixed a similiar bug (if not the same) bug a while ago... --Klaus On 28 Mai, 19:30, nextpulse rob...@nextpulse.com wrote: I have 3 tabs that each loads using ajax (via href). The problem i am having is that while a tab is loading - the user can click on

[jQuery] Re: Submit form when hitting enter

2009-05-22 Thread Klaus Hartl
Why don't you use an input type=image? --Klaus On 21 Mai, 06:40, Nic Hubbard nnhubb...@gmail.com wrote: I have a form that I built, and I replaced the submit button with an image.  When you click the image, it calls the .submit() jQuery function and submits the form. Because I am not

[jQuery] Re: Tabs Custom HTML

2009-05-09 Thread Klaus Hartl
Not really. You have to meet only one condition - the list to tabify has to be nested in a container. You can then put your panels whereever you want. Of course you can't ask for Themeroller support in that case. --Klaus On 9 Mai, 17:31, kim...@gmail.com kim...@gmail.com wrote: Hi everyone,

[jQuery] Re: val ( ) prefers labels over values?

2009-05-08 Thread Klaus Hartl
is not widely supported: http://www.w3schools.com/TAGS/att_option_label.asp On May 7, 3:47 pm, Klaus Hartl klaus.ha...@googlemail.com wrote: Don't speculate, look up:http://www.w3.org/TR/html401/interact/forms.html#h-17.6 It's valid. This attribute allows authors to specify a shorter label

[jQuery] Re: val ( ) prefers labels over values?

2009-05-07 Thread Klaus Hartl
Don't speculate, look up: http://www.w3.org/TR/html401/interact/forms.html#h-17.6 It's valid. This attribute allows authors to specify a shorter label for an option than the content of the OPTION element. When specified, user agents should use the value of this attribute rather than the

[jQuery] Re: $().someFunction(); -- The First Pair of Parentheses?

2009-05-03 Thread Klaus Hartl
$() === $(document) --Klaus On 3 Mai, 07:39, kiusau kiu...@mac.com wrote: QUESTION:  What does the first pair of parentheses indicate in the following statement:         $().getBrowserInformation(); BACKGROUND:  I have noticed that their presence or absence can make or break

[jQuery] Re: How to get JQuery to parse text as HTML

2009-04-21 Thread Klaus Hartl
Try: $(.targetMe, $(testHTML)).html(); or: $(testHTML).find('.targetMe').html(); You might get into trouble with that and the html and body tags, not sure. In that case you had to create your own document fragment... --Klaus On 21 Apr., 03:28, default_user ayapej...@gmail.com wrote: I'm

[jQuery] Re: tabs collapsed by default on open

2009-04-16 Thread Klaus Hartl
On 16 Apr., 20:38, robintrain...@yahoo.com robintrain...@yahoo.com wrote: Hello everyone. Is there a way to have tabs created in jQuery that are collapsed when the page loads? I use this: $(document).ready(function(){ $(#tabs).tabs({ collapsible: true }); }); to allow the user to click

[jQuery] Re: Calling a function from a non-jQuery .JS file

2009-04-15 Thread Klaus Hartl
On 14 Apr., 19:15, dhtml dhtmlkitc...@gmail.com wrote: problem is that that Dreamweaver method is using document.write which can cause a problem depending on where the function is being called and which is usually avoided in jQuery land. Calling document.write in a jQuery ready callback

[jQuery] Re: Calling a function from a non-jQuery .JS file

2009-04-14 Thread Klaus Hartl
On 14 Apr., 15:41, MorningZ morni...@gmail.com wrote: So what is the error The error is obviously that toDate is not a jQuery method. Another problem is that that Dreamweaver method is using document.write which can cause a problem depending on where the function is being called and which is

[jQuery] Re: JQuery UI tabs and pagination

2009-04-11 Thread Klaus Hartl
Use: $(.to_be_replaced, ui.panel).load(this.href); --Klaus On 11 Apr., 12:00, Claudio Poli masterk...@gmail.com wrote: hi everyone, I've this situation: an X number of tabs; in tabs content there's a div classed .to_be_replaced and links for paginating. when I click on a link it should

[jQuery] Re: How to tell apart focus event

2009-04-07 Thread Klaus Hartl
In the past I distinguished between true and triggered events via the e.clientX property (a triggered event has no such property). Not sure if it's the same with focus events (especially since you're calling elem.focus and there is no elem.click) and if there is a better way... --Klaus On 6

[jQuery] Re: All div content showing up in jQuery Tabs

2009-04-03 Thread Klaus Hartl
There's no need for all this ranting. You're simply not meeting the markup requirements to make the tabs work. A tab has to look like: lia href=#fragment-identifierspanA Tab/span/a/li I m pretty sure the documentation is showing this fact and I don't understand why you took straight code out

[jQuery] Re: All div content showing up in jQuery Tabs

2009-04-03 Thread Klaus Hartl
On 3 Apr., 20:01, expresso dschin...@gmail.com wrote: In fact you know what the problem is?  The damn documentation doesn't tell you that you MUST use the stylesheets given.  All I assumed was is that I had to have the matching IDs and correct jQuery which I DID. What if we do not want to

[jQuery] Re: All div content showing up in jQuery Tabs

2009-04-03 Thread Klaus Hartl
On 3 Apr., 20:12, expresso dschin...@gmail.com wrote: now I have to figure out how to get rid of these imposed styles. As already mentioned above, the only thing you will need for tabs to work is the following rule: .ui-tabs-hide { display: none !important; } So the only thing that's

[jQuery] Re: Good Server-Side tabs to compliment jQuery tabs

2009-04-01 Thread Klaus Hartl
You can just use the CSS used by jQuery UI by adding the necessary classes to the HTML right away. Here's an example of the static HTML: http://jquery-ui.googlecode.com/svn/trunk/tests/static/tabs/tabs.html You can easily create themes with Themeroller: http://jqueryui.com/themeroller/ --Klaus

[jQuery] Re: Work on one specific node and not on the window.document

2009-03-31 Thread Klaus Hartl
On 31 Mrz., 08:38, Steven Yang kenshin...@gmail.com wrote: do you have a special reason to find an element by id in a specific node?isn't id suppose to be unique in the whole document? Could think of: It may have different behavior depending on wether it's in the main content or the sidebar.

[jQuery] Re: AJAX - ignore mime type

2009-03-31 Thread Klaus Hartl
! I just need to ignore the XML mime type, and everything would be sorted!!! On Mar 31, 6:30 am, Klaus Hartl klaus.ha...@googlemail.com wrote: I am wondering why the server would not serve html in the first place. --Klaus On 30 Mrz., 15:37, the_woodsman elwood.ca...@gmail.com wrote

[jQuery] Re: AJAX - ignore mime type

2009-03-30 Thread Klaus Hartl
I am wondering why the server would not serve html in the first place. --Klaus On 30 Mrz., 15:37, the_woodsman elwood.ca...@gmail.com wrote: Hi, My ajax requests return xml, with the corresponding mime type. I'm using $.get, as so:         $.get(                                      

[jQuery] Re: Delay function to wait for post

2009-03-25 Thread Klaus Hartl
async:false may freeze the browser and is in general not a good idea unless you know that your network, server etc will 100% work. Why don't you simply put the last line into the callback as well? --Klaus On 24 Mrz., 22:40, James james.gp@gmail.com wrote: Add the {async:false} option to

[jQuery] Re: Wouldn't inArray() be more intuitive if called arrayPosition()?

2009-03-23 Thread Klaus Hartl
Read inArray as positionInArray rather than isInArray here... --Klaus On 23 Mrz., 21:25, MorningZ morni...@gmail.com wrote: Yeah, like what he is suggesting is to return a boolean value   so now if someone wants the position of the item, it would be a whole separate function to do

[jQuery] Re: ui tabs how to link to a new page

2009-03-22 Thread Klaus Hartl
http://docs.jquery.com/UI/Tabs#...open_a_tab_in_a_new_window_instead --Klaus On 22 Mrz., 18:16, David omertacod...@gmail.com wrote: Hi all, Is it possible to if you click a tab i get to a new page ? i've tried the option to load a page into the tab content but that's not what i'm looking

[jQuery] Re: ui tabs how to link to a new page

2009-03-22 Thread Klaus Hartl
Well, then you will have to adapt that script and use window.open... --Klaus On 22 Mrz., 21:07, David omertacod...@gmail.com wrote: This opens the external page IN the tabs page ... does not help me On 22 mrt, 20:52, Klaus Hartl klaus.ha...@googlemail.com wrote: http://docs.jquery.com/UI

[jQuery] Re: Help tracking down error in IE8 / jquery 1.3.2

2009-03-21 Thread Klaus Hartl
On 20 Mrz., 16:43, Martijn Houtman martijn.hout...@gmail.com wrote: On Mar 20, 2009, at 4:35 PM, Adam Drew wrote: name = outline value = 0 none !important Those values breaks it every time it comes around.. I'm going to see what is setting these values..

[jQuery] Re: How to select nested tabs

2009-03-21 Thread Klaus Hartl
The problem might be that you're selecting too much with your first selector, a common error. http://docs.jquery.com/UI/API/1.5.3/Tabs#...the_call_to_tabs_tabify_all_li_elements_-_even_those_in_a_panel_-_although_I_did_not_want_to_create_nested_tabs.3F --Klaus On 20 Mrz., 20:03,

[jQuery] Re: JQuery selectors and Umlaute

2009-03-20 Thread Klaus Hartl
Even if it would work I recommend to avoid Umlaute. They're invalid in ids. http://www.w3.org/TR/REC-html40/types.html#type-name --Klaus On 20 Mrz., 16:52, Karl Swedberg k...@englishrules.com wrote: Which version of jQuery are using? Are you seeing any JavaScript   errors? I just tested

[jQuery] Re: Select class=class1 class2 using jQuery

2009-03-18 Thread Klaus Hartl
http://www.w3.org/TR/CSS21/selector.html#class-html --Klaus On 19 Mrz., 00:04, Karl Rudd karl.r...@gmail.com wrote: Yes, it's standard CSS selector behaviour, so it's also standard jQuery behaviour. Karl Rudd On Thu, Mar 19, 2009 at 6:32 AM, bill123 bi...@ssec.wisc.edu wrote: I need

[jQuery] Re: Safari + triggerTab() = fail

2009-03-11 Thread Klaus Hartl
History is broken in Safari 3, one of the reasons it was taken out of UI Tabs. --Klaus On 11 Mrz., 21:46, ZAP michael...@gmail.com wrote: Hello - I'm using Klaus' Tabs plugin (Version: 2.7.4) with jQuery 1.2.6, but the triggerTab() function just isn't working for me in Safari 3. No

[jQuery] Re: cancelling default click handler for label/

2009-03-10 Thread Klaus Hartl
On 10 Mrz., 16:00, Karl Swedberg k...@englishrules.com wrote: label for =myid         input type=checkbox id=myid name=myid / /label Not saying that I prefer this way, just that it's possible. --Karl Cool. I've never tried that... --Klaus

[jQuery] Re: cancelling default click handler for label/

2009-03-09 Thread Klaus Hartl
One reason not doing it is probably because IE only supports explicitly associated labels. --Klaus On 9 Mrz., 04:13, Karl Swedberg k...@englishrules.com wrote: having the input inside the label is perfectly valid. http://www.w3.org/TR/html401/interact/forms.html#h-17.9.1 To associate a

[jQuery] Re: [Exception... Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE)

2009-03-09 Thread Klaus Hartl
Looks like you tried to make a cross-domain ajax request. --Klaus On 9 Mrz., 21:14, Tom Shafer tom.sha...@gmail.com wrote: what does this error mean [Exception... Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIXMLHttpRequest.open] nsresult: 0x80070057

[jQuery] Re: Modify hash in Tabs plugin

2009-03-05 Thread Klaus Hartl
nas...@gmail.com wrote: I'm learning about JQuery and I'm absolute begginer. I've looking for help about one issue that imagine is easy but I can't find the answer till now. I supose Klaus Hartl has the solution for this: How I modify the hash of the tabs plugin? I'm using the version 2

[jQuery] Re: What do you recommend to generate UUID with jQuery ?

2009-03-05 Thread Klaus Hartl
I've been using the data method for this, you need to pass a DOM element though: var uuid = $.data(el); --Klaus On 6 Mrz., 03:48, Mike Alsup mal...@gmail.com wrote:       What do you recommend to generate UUID with jQuery ?       Thank you ! I've been using something like this:

[jQuery] Re: How to use anchor text as title attribute?

2009-03-04 Thread Klaus Hartl
$('a').attr('title' , function() { $(this).text() } ); I must be missing something simple here. Yes, a return statement. $('a').attr('title' , function() { return $(this).text(); }); --Klaus

[jQuery] Re: jquery ajax tabs with normal forms

2009-03-02 Thread Klaus Hartl
You will have to use the Form plugin. --Klaus On 2 Mrz., 12:48, Iswaria iswar...@gmail.com wrote: Hi, I am using jquery ajax tabs. In one of the tab, i am using a form ( i didn't use jquery form). while submitting the form, it is going a fresh page. But i want to retain the tabs.

[jQuery] Re: jQuery tabs problem with language

2009-02-27 Thread Klaus Hartl
You have a # too much in your panel ids... Should read: div id=tabs-1 ... --Klaus On 27 Feb., 17:35, hitautodestruct yotam.pr...@gmail.com wrote: Hi, I have a problem implementing jQuery tabs using hebrew content in the li and div elements. I get the error jQuery UI Tabs: Mismatching

[jQuery] Re: Can't get onclick of tab to fire....

2009-02-26 Thread Klaus Hartl
On 26 Feb., 16:14, Richard D. Worth rdwo...@gmail.com wrote: Your code sample doesn't have version numbers. Can you verify you're using compatible versions of jQuery and jQuery UI? jQuery UI 1.5.3 is only compatible with jQuery 1.2.6 jQuery UI 1.6rc6 is only compatible with jQuery 1.3+

[jQuery] Re: UI/Tabs Losing selected tab on updatepanel postback

2009-02-25 Thread Klaus Hartl
You're giving way too less information to answer the question if this has been sorted out. Maybe it needs to be sorted out in your own code. Please provide a pastebin or test page. --Klaus On 25 Feb., 11:22, Intelligent Penguin phalling...@googlemail.com wrote: Hello I've got some of the

[jQuery] Re: UI/Tabs Losing selected tab on updatepanel postback

2009-02-25 Thread Klaus Hartl
On 25 Feb., 14:11, David Muir davidkm...@gmail.com wrote: I think what P is referring to is what using cookies enables: remember what tab you were on when refreshing the page. Which makes me wonder, why not have an option to have the hash set instead of using a cookie? eg index.html:

[jQuery] Re: adding tabs dynamically

2009-02-23 Thread Klaus Hartl
modify the template? and then who would i access these two input boxes dynamically? thanks heaps paul On Feb 21, 12:41 am, Klaus Hartl klaus.ha...@googlemail.com wrote: Why don't you put the desired label in the first place? $('#tabs').tabs('add', '#new', 'Label'); Other than that you

[jQuery] Re: jQuery 1.3.2 + Dialog + Tabs = Bug

2009-02-22 Thread Klaus Hartl
Not sure yet what the bug is actually, but I found that the following fixes it: setTimeout(function() { tabdiv.children('#tabs').tabs(select,#tabs-2); }, 0); Lead me to changing the order of opening the dialog and selecting the other tab: content.dialog('open');

[jQuery] Re: jQuery 1.3.2 + Dialog + Tabs = Bug

2009-02-22 Thread Klaus Hartl
:03, Klaus Hartl klaus.ha...@googlemail.com wrote: Not sure yet what the bug is actually, but I found that the following fixes it: setTimeout(function() {     tabdiv.children('#tabs').tabs(select,#tabs-2); }, 0); Lead me to changing the order of opening the dialog and selecting the other

[jQuery] Re: adding tabs dynamically

2009-02-20 Thread Klaus Hartl
Why don't you put the desired label in the first place? $('#tabs').tabs('add', '#new', 'Label'); Other than that you could utilize the add callback: $('#tabs').tabs({ add: function(event, ui) { // add additional html to the tab $('span', ui.tab).html(...); } }); Or you

[jQuery] Re: .css('line-height', 'auto') doesnt work

2009-02-19 Thread Klaus Hartl
There is no auto value for line-height. That's normal. http://www.w3.org/TR/CSS21/visudet.html#propdef-line-height --Klaus On 20 Feb., 07:33, Anjanesh anjanesh.for...@gmail.com wrote: $('.div p').css('line-height', '25px'); works but $('.div p').css ('line-height', 'auto'); doesnt. Is

[jQuery] Re: Guidelines on Graceful Degradation When JavaScript Disabled?

2009-02-16 Thread Klaus Hartl
Since 'detection' requires javascript, you can't 'detect' if javascript is not running. What I do is have a p/p or div/div with text like Additional features available with javascript enabled. Give it a class with display:block and then have javascript change it to display:none. You should

[jQuery] Re: how do I code jquery image gallery inside ajax tabs?

2009-02-16 Thread Klaus Hartl
I can only guess here, but probably both of you have this issue: http://docs.jquery.com/UI/Tabs#...my_slider.2C_Google_Map.2C_sIFR_etc._not_work_when_placed_in_a_hidden_.28inactive.29_tab.3F --Klaus On 17 Feb., 01:29, Talya ta...@studio-taj.com wrote: Hi There, Im using the jquery cycle

[jQuery] Re: Does IE simply not work or...

2009-02-16 Thread Klaus Hartl
Look out for trailing commas in object literals... { foo: bar, that: this, } ^ --Klaus On 16 Feb., 21:58, Dean C. Reed webspee...@gmail.com wrote: Or is there a common work around? I spent a few days getting familiar with JQuery and it works perfectly   in

[jQuery] Re: checking if there is a select in the form/html?

2009-02-15 Thread Klaus Hartl
The jQuery way: $('#state').filter('select').doSomething(); --Klaus On 16 Feb., 00:23, RobG rg...@iinet.net.au wrote: On Feb 15, 9:20 pm, angelochen...@gmail.com angelochen...@gmail.com wrote: Hi Rob, Thanks for the quick reply, actually state has a  id='state', I can obtain it :

[jQuery] Re: Feature Detection Best Practice?

2009-02-15 Thread Klaus Hartl
On 15 Feb., 20:59, Ricardo Tomasi ricardob...@gmail.com wrote: I thought that was the point of $.support - If it doesn't support the standard implementation, then it's false. Probably you're right. I had just a different interpretation... I would still be confused that this value is false in

[jQuery] Re: Feature Detection Best Practice?

2009-02-15 Thread Klaus Hartl
It's false in IE because it tests for use of the 'opacity' style, not whether the browser has opacity support.  Since IE uses filters to achieve opacity this results in a false value.  I think it makes sense when you think of it that way. Sure. Although I would have called the property

[jQuery] Re: Feature Detection Best Practice?

2009-02-14 Thread Klaus Hartl
Are you saying that IE changes its UA string depending on whether ClearType is enabled or not? No.

[jQuery] Re: Feature Detection Best Practice?

2009-02-14 Thread Klaus Hartl
On 14 Feb., 20:31, Chris cpot...@siolon.com wrote: On Feb 13, 2:34 am, Klaus Hartl klaus.ha...@googlemail.com wrote: That will not avoid IE's ClearType issue, since IE is supporting opacity and you still end up in the else branch. I think it's one of he rare cases where you need to do

[jQuery] Re: how to catch mouse click if it is also an onblur event

2009-02-13 Thread Klaus Hartl
Events do fire sequentially. Recommended read: http://dev.opera.com/articles/view/timing-and-synchronization-in-javascript/ --Klaus On 13 Feb., 21:54, pantagruel rasmussen.br...@gmail.com wrote: Never mind, obviously should just catch the onmousedown. On Feb 13, 9:47 pm, pantagruel

[jQuery] Re: Feature Detection Best Practice?

2009-02-12 Thread Klaus Hartl
That will not avoid IE's ClearType issue, since IE is supporting opacity and you still end up in the else branch. I think it's one of he rare cases where you need to do browser sniffing. I don't think there's a way to find out, if the ClearType issue is happening or not. --Klaus On 13 Feb.,

[jQuery] Re: tabs, ajax mode, spinner not removed

2009-02-11 Thread Klaus Hartl
in there... It surely needs a proper unit test this time! --Klaus On 11 Feb., 02:51, brian bally.z...@gmail.com wrote: On Tue, Feb 10, 2009 at 4:17 PM, Klaus Hartl klaus.ha...@googlemail.com wrote: I've created the ticket aready: http://dev.jqueryui.com/ticket/4109 Thanks, Klaus. I think I've sorted

[jQuery] Re: tabs, ajax mode, spinner not removed

2009-02-10 Thread Klaus Hartl
Hello Brian, would you mind to file a bug for this? --Klaus On 10 Feb., 06:18, brian bally.z...@gmail.com wrote: jquery 1.3.1, UI.Tabs 1.6rc6, FF3.0.6 Whenever any tabs load the spinner img will remain visible. I'm using the following for the spinner option for tabs (I've removed

[jQuery] Re: tabs, ajax mode, spinner not removed

2009-02-10 Thread Klaus Hartl
) no-repeat; } Interestingly you're already keeping the image inside the css folder ;) Nevertheless, despite the workarounds, I'm going to fix this bug of course. --Klaus On 10 Feb., 19:44, brian bally.z...@gmail.com wrote: On Tue, Feb 10, 2009 at 4:21 AM, Klaus Hartl klaus.ha...@googlemail.com

[jQuery] Re: tabs, ajax mode, spinner not removed

2009-02-10 Thread Klaus Hartl
I've created the ticket aready: http://dev.jqueryui.com/ticket/4109 --Klaus

[jQuery] Re: UI/Tabs docs mismatch for multiple ul

2009-02-07 Thread Klaus Hartl
The FAQ applies to UI 1.5. UI 1.6 requires slightly different markup (additional container) and works fine for me. --Klaus On 6 Feb., 22:32, Nathaniel Whiteinge whitei...@gmail.com wrote: The UI Tabs documentation for using ul in a panel [1] has conflicting info and I'm not sure how to

[jQuery] Re: UI/Tabs docs mismatch for multiple ul

2009-02-07 Thread Klaus Hartl
Yes, I'm using 1.5.3 (the current release) and it does not work. Are you saying this is not possible with 1.5 and I need to run the preview release instead? No, it's absolutely possible. Otherwise there wouldn't be a FAQ ;-) If you follow the code example in here it'll should work fine.

[jQuery] Re: $.browser and jQuery 1.3

2009-02-05 Thread Klaus Hartl
I know it still works in 1.3, just wondering why we are advised not to use it. Because feature detection is much more future proof and stable than browser sniffing. With browser sniffing you simply make wrong assumptions. CSS may be a different beast, although I've never had the need for an

[jQuery] Re: $('#xxx').html() changing xhtml to html

2009-02-05 Thread Klaus Hartl
You can try as long as you want - as long as you serving XHTML as text/ html, from the browsers point of view (e.g. its parser) it's HTML it's dealing with, thus it'll remove those slashes internally. Have you ever wondered why in Firefox' source code view those slashes are marked red (as in

[jQuery] Re: How to submit a form with an Anchor rather than an Input tag?

2009-02-04 Thread Klaus Hartl
The name attribute is deprecated for the form element. Using an id ist good practice. --Klaus On 4 Feb., 14:41, Liam Potter radioactiv...@gmail.com wrote: why you using get element by id? make sure your form has a name ( form name=myform ) then use this a class=button

[jQuery] Re: How to submit a form with an Anchor rather than an Input tag?

2009-02-04 Thread Klaus Hartl
Try something like: $('#contact-form a').click(function() { $(this).parents('form').submit(); return false; }); Or: Simply style a submit input like a link (this is what I would do). --Klaus On 4 Feb., 15:38, Tintin81 tkleem...@gmail.com wrote: Hi Liam and Klaus, thanks for your

[jQuery] Re: setting focus to the first empty field

2009-02-04 Thread Klaus Hartl
$('form input[value=]:first').focus(); --Klaus On 4 Feb., 20:57, Massiverse august.massive...@gmail.com wrote: Hello I'm a newbie, here's what I need to do (searched the forums first but couldn't find the answer). 1. Search form for an empty input field. 2. If an empty field exists,

[jQuery] Re: Damn ie7!

2009-02-01 Thread Klaus Hartl
And for some common CSS bugs check: http://positioniseverything.net/ --Klaus On 1 Feb., 00:31, Karl Swedberg k...@englishrules.com wrote: On Jan 30, 2009, at 5:06 PM, david.0pl...@gmail.com wrote: Ok, thank you very much i got this! Also, just to know is there any site/books that

[jQuery] Re: Guidelines on Graceful Degradation When JavaScript Disabled?

2009-02-01 Thread Klaus Hartl
It's as simple as that: in the first step build a page completely without JavaScript so that everything works fine. Then add JavaScript/ jQuery to the game and improve the user experience.This concept is also referred to as Progressive Enhancement. You will find quite some information about it on

[jQuery] Re: jQuery UI Tabs Flash

2009-02-01 Thread Klaus Hartl
Add the class ui-tabs-hide to your panels beforehand. I will not encourage bad practice (usage of inline styles). Note to self: Make FAQ for this. --Klaus On 2 Feb., 05:38, Chris cpot...@siolon.com wrote: On Jan 12, 9:29 am, tlphipps tra...@brandyandtravis.com wrote: This is because of

[jQuery] Re: tabs, ui.panel

2009-02-01 Thread Klaus Hartl
I think I've answered to that question already somewhere else, but here we go. Yes, ui.panel is a reference to the div DOM node that contains the content of a tab. You can do with it whatever you want to/ can do with a DOM node, for example wrap it in a jQuery object or retrieve its id

[jQuery] Re: Does anybody make Sifr work with uitabs?

2009-02-01 Thread Klaus Hartl
http://docs.jquery.com/UI/Tabs#...my_slider.2C_Google_Map.2C_etc._not_work_when_placed_in_a_hidden_.28inactive.29_tab.3F --Klaus On 2 Feb., 02:37, slake424 iamtakashii...@googlemail.com wrote: Oh my god! Cam Spiers  saved my life. I just added position:absolute;left:-1px to the

[jQuery] Re: Does anybody make Sifr work with uitabs?

2009-02-01 Thread Klaus Hartl
I've added sIFR...: http://docs.jquery.com/UI/Tabs#...my_slider.2C_Google_Map.2C_sIFR_etc._not_work_when_placed_in_a_hidden_.28inactive.29_tab.3F On 2 Feb., 08:18, Klaus Hartl klaus.ha...@googlemail.com wrote: http://docs.jquery.com/UI/Tabs#...my_slider.2C_Google_Map.2C_etc._not... --Klaus

[jQuery] Re: jquery tabs ajax mode

2009-01-29 Thread Klaus Hartl
Well, with Tabs 2 you could actually do: $('#box').tabs({ remote: true }); --Klaus On 29 Jan., 13:08, jampov jam...@gmail.com wrote: I love you stepahn. A million thanks.

[jQuery] Re: How do I show the label text in an input

2009-01-24 Thread Klaus Hartl
I assume you use the for attribute to associate labels with their inputs. Try (of course you need to adapt the selector probably): $('label').each(function() { $('#' + this.htmlFor).val( $(this).text() ); }); --Klaus osu schrieb: Hi, Apologies for this noob question, but I really need

[jQuery] Re: jquery ui tabs 3 problem

2009-01-21 Thread Klaus Hartl
Attach the class to hide a tab panel beforehand: div id=... class=ui-tabs-hidden.../div In the future please post jQuery UI related questions to the jQuery UI mailing list. --Klaus On 21 Jan., 18:03, aaron subne...@gmail.com wrote: I am using jQuery UI Tabs 3

[jQuery] Re: ui.tabs question

2009-01-21 Thread Klaus Hartl
Seems to be using a fairly outdated version. The event's name to bind has changed since quite a while. Why not take a look at the documentation: http://docs.jquery.com/UI/Tabs#Events --Klaus On 21 Jan., 16:36, MorningZ morni...@gmail.com wrote: I've got this code working if it helps

[jQuery] Re: ui.tabs question

2009-01-21 Thread Klaus Hartl
working well, but for that one missing callback. ah, it's hard to have a reproach to make to jquery. First in 3 years in my case, and it's not like i'm mad or anything. Just ... annoyed. :) On Wed, Jan 21, 2009 at 7:30 PM, Klaus Hartl klaus.ha...@googlemail.com wrote: Seems to be using

[jQuery] Re: Documentation on comparative operators?

2009-01-20 Thread Klaus Hartl
On 20 Jan., 20:06, MorningZ morni...@gmail.com wrote: but just comparing value a to value b, it doesn't get any easier/ better than JavaScript's native == operator Not so fast. Be aware that the equality operator may give you unexpected results because of type conversion, example: 0 == '' //

[jQuery] Re: Solution To Many Of Your CSS Nightmares!

2009-01-20 Thread Klaus Hartl
On the other hand - I've seen much worse offtopic threads here. And yes, I've been annoyed by them. That said, sorry for putting fuel into the discussion. --Klaus On 21 Jan., 05:25, Karl Swedberg k...@englishrules.com wrote: On Jan 20, 2009, at 10:31 PM, johny why wrote: what does this

[jQuery] Re: Problems with finding parental a-tag

2009-01-19 Thread Klaus Hartl
First of all, you need to fix your HTML. An anchor is an inline element and may not contain div, p etc. This may give you unexpected results cross-browser and scripting on top of an invalid DOM is not a good idea to begin with. --Klaus On 19 Jan., 12:11, Christoph Neymeyr christ...@uddebo.net

[jQuery] Re: Solution To Many Of Your CSS Nightmares!

2009-01-18 Thread Klaus Hartl
On 18 Jan., 19:16, Ricardo Tomasi ricardob...@gmail.com wrote: They're named **Cascading** Style Sheets for a reason. Third party CSS Candy that is supposed to be inserted in other's pages should be coded with this issue in mind, protecting all it's styles in it's own container, or writing

[jQuery] Re: Solution To Many Of Your CSS Nightmares!

2009-01-18 Thread Klaus Hartl
On 18 Jan., 21:45, johny why johny...@gmail.com wrote: a 3rd party widget...should...use...important declarations. Nevertheless there is no guarantee that the site's CSS will not override styles. --why? unless the site css ALSO uses !important, how else could it override the candy-css? Yes,

[jQuery] Re: Solution To Many Of Your CSS Nightmares!

2009-01-17 Thread Klaus Hartl
One thing to keep in mind: If two declarations use !important! the conflict is solved by specificity again, e.g. as if there were no ! important: div id=foo class=bar #foo { width: 200px !important; /* higher specificity */ } .bar { width: 300px !important; } Applied width will be

[jQuery] Re: UI Tabs bug

2009-01-15 Thread Klaus Hartl
Could you please file a ticket... thanks. --Klaus On 16 Jan., 06:13, brian bally.z...@gmail.com wrote: sorry, jQuery 1.2.6 UI 1.6rc4 On Thu, Jan 15, 2009 at 10:49 PM, brian bally.z...@gmail.com wrote: synopsis: UI.tabs faisl hard when there is no UL for which to apply tabs. I have

[jQuery] Re: jQuery UI tabs widget problem

2009-01-11 Thread Klaus Hartl
').tabs(disable, 1);                 jQuery('#product').tabs(disable, 2);                 jQuery('#product').tabs(disable, 3);                 jQuery('#product').tabs(disable, 4); J On Jan 10, 4:25 am, Klaus Hartl klaus.ha...@googlemail.com wrote: $(#tabs).data('disabled.tabs', [1,2

[jQuery] Re: is accessing element by a class faster than accessing X element by ID

2009-01-05 Thread Klaus Hartl
In any event, using the element's type together with a class selector will improve performance (otherwise every single element in the current context is checked for that class): $('div.toto').hide(); With a single element (or very few) using an id will probably be faster, but with 50+ elements,

[jQuery] Re: How to set the HTML background

2009-01-02 Thread Klaus Hartl
That's not true. You can set the html element's background... html { background: yellow; } The reason it doesn't work here is that there is no document.html property. You either can reference the element via document.documentElement or just via html selector: $(html).css(background,

[jQuery] Re: Jquery Tabs issue, linking to another tab from within the same document...

2008-12-31 Thread Klaus Hartl
I assume you're using UI Tabs... http://docs.jquery.com/UI/Tabs#...select_a_tab_from_a_text_link_instead_of_clicking_a_tab_itself --Klaus On 30 Dez., 19:09, Ted theodorew...@gmail.com wrote: I'm having a problem with Jquery's tab plugin. Specifically, I've got a page with a couple of tabs.

[jQuery] Re: jQuery UI tabs widget problem

2008-12-31 Thread Klaus Hartl
No suggestions unless you show us some code... --Klaus On 31 Dez., 08:11, JasonR jbra...@yahoo.com wrote: Hello, I have some content and am using the tabs widget to reload without refreshing. Everything is working fine except for one problem...the ui- tabs-disabled class is not being

[jQuery] Re: UI tabs problem - ui-tabs-disabled class not being assigned

2008-12-31 Thread Klaus Hartl
The disabled class is not supposed to be assigned to all but the selected tab. Where did you get that information from? It is only assigned to tabs that either are disabled via option $(...).tabs({ disabled: [1, 2]}); or if a single tab is manually disabled: $(...).tabs('disable', 1); There

[jQuery] Re: HELP: Screening questions for JavaScript developer candidates:

2008-12-30 Thread Klaus Hartl
On 30 Dez., 08:45, Alexandre Plennevaux aplennev...@gmail.com wrote: JavaScript enclosures? i think it has to do with encapsulating your code inside a function so that all vars are inside the function's scope, so not cluttering the global namespace. This, to avoid memory leak. Are you

[jQuery] Re: Selecting disparate elements in unobtrusive javascript without parameters?

2008-12-27 Thread Klaus Hartl
That would work fine, but it involves parsing the ID for a name component that is common to the link and the DIV. Yes, indeed, that is exactly what you would do. But it's so simple - it takes less code to do it than describe it. For example:     $(function() {         $('#left

[jQuery] Re: Selecting disparate elements in unobtrusive javascript without parameters?

2008-12-26 Thread Klaus Hartl
You said you don't want to litter your code with bogus classes, but - speaking of unobtrusive - you do litter it with bogus anchors (href=#). That said, the most obvious solution to me is to give these anchors a little more meaning by letting them point to the div they seem to be connected to

  1   2   3   4   5   6   7   8   9   >