[jQuery] Re: Drag and Drop in Tabs

2009-08-13 Thread Klaus Hartl
On 13 Aug., 07:30, Applecore 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.ajax function

[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 wrote: > Hello all. > > I have a problem with the jCarousel Plugin when i try to display a > second carousel inside one tab. > > Ok,

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

2009-07-22 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 wrote: > It seems that if you change the url of a tab from a remote source > (ajax request) to a local

[jQuery] Re: UI Tabs and xStandard Object

2009-07-19 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" wrote: > Hi > I seem to have found the following bug. > > (I am using the the latest vers

[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 wrote: > Hi together, > I tried it in the group Jquery UI - but nobody answer there?! > > I'm really new to jQuery and U

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

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

[jQuery] Re: jQuery 1.3.2 in IE5.5

2009-06-19 Thread Klaus Hartl
On 18 Jun., 19:32, Rodrigo 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 wrote: > Hey guys, I'm working on a project where I am using the jquery plugin > that Klaus made. The cooki

[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 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 another tab (as they

[jQuery] Re: Submit form when hitting enter

2009-05-22 Thread Klaus Hartl
Why don't you use an ? --Klaus On 21 Mai, 06:40, Nic Hubbard 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 using the normal submit input butt

[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" wrote: > Hi everyone, > > With the la

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

2009-05-07 Thread Klaus Hartl
ported: > > http://www.w3schools.com/TAGS/att_option_label.asp > > On May 7, 3:47 pm, Klaus Hartl wrote: > > > Don't speculate, look > > up:http://www.w3.org/TR/html401/interact/forms.html#h-17.6 > > > It's valid. > > > "This attribute al

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

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

2009-05-03 Thread Klaus Hartl
$() === $(document) --Klaus On 3 Mai, 07:39, kiusau 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 JavaScript's acknow

[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 wrote: > I'm trying to get jqu

[jQuery] Re: tabs collapsed by default on open

2009-04-16 Thread Klaus Hartl
On 16 Apr., 20:38, "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 on the tab

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

2009-04-15 Thread Klaus Hartl
On 14 Apr., 19:15, dhtml 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 won't work > con

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

2009-04-14 Thread Klaus Hartl
On 14 Apr., 15:41, MorningZ 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 usually avoided in j

[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 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 replace the con

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

[jQuery] Re: Jquery ui tabs "select a tab from a text link instead of clicking a tab itself"

2009-04-07 Thread Klaus Hartl
On 16 Mrz., 14:25, jjsanders wrote: > Hello, > > I am using still the old version of ui (not the 1.7) > > I saw > herehttp://docs.jquery.com/UI/Tabs#...select_a_tab_from_a_text_link_inste... > the posibility to navigate between tabs by using a link and not the > tabs. > > I implemented the cod

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

2009-04-03 Thread Klaus Hartl
On 3 Apr., 20:12, expresso 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 imposed here seems to

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

2009-04-03 Thread Klaus Hartl
On 3 Apr., 20:01, expresso 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 use those styles.

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

2009-04-02 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: A Tab I m pretty sure the documentation is showing this fact and I don't understand why you took "straight code out of the example" and then changed it to not w

[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: AJAX - ignore mime type

2009-03-31 Thread Klaus Hartl
fine when i send XML without the mime type! > I just need to ignore the XML mime type, and everything would be > sorted!!! > > On Mar 31, 6:30 am, Klaus Hartl wrote: > > > I am wondering why the server would not serve html in the first place. > > > --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 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-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 wrote: > Hi, > > My ajax requests return xml, with the corresponding mime type. > > I'm using $.get, as so: > >         $.get( >                                                 $(th

[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 wrote: > Add the {async:false} option to your $.get. This tell

[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 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 so > > to me, one

[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 wrote: > This opens the external page IN the tabs page ... does not help me > > On 22 mrt, 20:52, Klaus Hartl wrote: > > >http://docs.jquery.com/UI/Tabs#...open_a_tab_in_a_

[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 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 for. > > basicall

[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, "randy...@gma

[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 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.. > > http://www.w3schools.com/CSS/pr_outl

[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 wrote: > Which version of jQuery are using? Are you seeing any JavaScript   > errors? I just tested this and it worked fi

[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 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 wrote: > > > I need to select an element like this:

[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 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 > matter how I create B

[jQuery] Re: cancelling default click handler for

2009-03-10 Thread Klaus Hartl
On 10 Mrz., 16:00, Karl Swedberg wrote: > >         > > > Not saying that I prefer this way, just that it's possible. > > --Karl Cool. I've never tried that... --Klaus

[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 wrote: > what does this error mean > > [Exception... "Component returned failure code: 0x80070057 > (NS_ERROR_ILLEGAL_VALUE) [nsIXMLHttpRequest.open]" nsresult: > "0x80070057 (NS_ERROR_ILLEGAL_VALUE

[jQuery] Re: cancelling default click handler for

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 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 label with anothe

[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 wrote: > >       What do you recommend to generate UUID with jQuery ? > > >       Thank you ! > > I've been using something like this: > > function uid

[jQuery] Re: Modify hash in Tabs plugin

2009-03-05 Thread Klaus Hartl
ing 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

[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 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. > > Any suggest

[jQuery] Re: jQuery tabs problem with language

2009-02-27 Thread Klaus Hartl
You have a "#" too much in your panel ids... Should read: ... --Klaus On 27 Feb., 17:35, hitautodestruct 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 fragment identifier" when > cl

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

2009-02-26 Thread Klaus Hartl
On 26 Feb., 16:14, "Richard D. Worth" 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+ Judging from th

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

2009-02-25 Thread Klaus Hartl
On 25 Feb., 14:11, David Muir 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: 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 wrote: > Hello > > I've got some of the UI/Tabs (which are very

[jQuery] Re: adding tabs dynamically

2009-02-23 Thread Klaus Hartl
wo textboxes, should i 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 wrote: > > > Why don't you put the desired label in the first place? > > > $(

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

2009-02-22 Thread Klaus Hartl
y. --Klaus On 22 Feb., 12:03, Klaus Hartl 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); >

[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'); tabdiv.children('#tabs')

[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 wrote: > $('.div > p').css('line-height', '25px'); works but $('.div > p').css > ('line-height', 'auto'); doesnt. > Is there anyway to se

[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" wrote: > Or is there a common work around? > > I spent a few days getting familiar with JQuery and it works perfectly   > in Firefox. I go

[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 wrote: > Hi There, > > Im using the jquery "cycle" plug in with jquery

[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 or 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 us

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

[jQuery] Re: Feature Detection Best Practice?

2009-02-15 Thread Klaus Hartl
On 15 Feb., 20:59, Ricardo Tomasi 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 IE, although if I'd u

[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 wrote: > On Feb 15, 9:20 pm, "angelochen...@gmail.com" > > wrote: > > Hi Rob, > > > Thanks for the quick reply, actually state has a  id='state', I can > > obtain it : > > > element = document.getElem

[jQuery] Re: Feature Detection Best Practice?

2009-02-14 Thread Klaus Hartl
On 14 Feb., 20:31, Chris wrote: > On Feb 13, 2:34 am, Klaus Hartl 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 d

[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: 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 wrote: > Never mind, obviously should just catch the onmousedown. > > On Feb 13, 9:47 pm, pantagruel wrote: > > > I hope the above

[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., 0

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

2009-02-11 Thread Klaus Hartl
here... It surely needs a proper unit test this time! --Klaus On 11 Feb., 02:51, brian wrote: > On Tue, Feb 10, 2009 at 4:17 PM, Klaus Hartl > wrote: > > > I've created the ticket aready: > >http://dev.jqueryui.com/ticket/4109 > > Thanks, Klaus. I think I'v

[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: tabs, ajax mode, spinner not removed

2009-02-10 Thread Klaus Hartl
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 wrote: > On Tue, Feb 10, 2009 at 4:21 AM, Klaus Hartl > wrote: > > > Hello Brian, would you mind to file a bug

[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 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 everything > else with the

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

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: UI/Tabs docs mismatch for multiple

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 wrote: > The UI Tabs documentation for using in a panel [1] has > conflicting info and I'm not sure how to proceed. > > I'd like t

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

[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: 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 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, set the focus on the

[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 wrote: > Hi Liam and Klaus, > > thanks for your swift feedback. >

[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 wrote: > why you using get element by id? > > make sure your form has a name ( ) > > then use this > > Send > > || > > Tintin81 wrote: > > Hi, > > > I have a very simple

[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 wrote: > http://docs.jquery.com/UI/Tabs#...my_slider.2C_Google_Map.2C_etc._not... > > --Klaus > &

[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 wrote: > Oh my god! Cam Spiers  saved my life. I just added > position:absolute;left:-1px to the .ui-tabs-hide selector. and > it's wo

[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 (ui.panel.i

[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 wrote: > On Jan 12, 9:29 am, tlphipps wrote: > > > This is because of how browsers work.  What's happening is t

[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: 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 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 specifically 'speak

[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 wrote: > I love you stepahn. A million thanks.

[jQuery] Re: jQuery 1.3.x & XPath

2009-01-28 Thread Klaus Hartl
On 29 Jan., 06:05, Neil Craig wrote: > I have tried it, but it yields no results when searching for elements. > > What I loved about the xpath functionality was that I could have used > the same functions on XML documents, not only on XHTML. Huh? CSS selectors will also work with XML. --Klaus

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

[jQuery] Re: Problem when using JQuery UI Tabs 3

2009-01-24 Thread Klaus Hartl
Do you have access to that Flash via JavaScript? You could then stop the movie manually in the select handler. $(...).tabs({ select: function() { // stop certain movie } }); Other than that I can only think of deleting the movie entirely. --Klaus On 24 Jan., 08:24, f22raptorf

[jQuery] Re: ui.tabs question

2009-01-21 Thread Klaus Hartl
arting point, redoing things that > were actually 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 W

[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 wrote: > I've got this code working if it helps > > $("#TabContainer ul.ta

[jQuery] Re: jquery ui tabs 3 problem

2009-01-21 Thread Klaus Hartl
Attach the class to hide a tab panel beforehand: ... In the future please post jQuery UI related questions to the jQuery UI mailing list. --Klaus On 21 Jan., 18:03, aaron wrote: > I am using jQuery UI Tabs 3 fromhttp://stilbuero.de/jquery/tabs_3/. > The problem I have is the delay before t

[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 wrote: > On Jan 20, 2009, at 10:31 PM, johny why wrote: > > > > > "what does this have to do with

[jQuery] Re: Documentation on comparative operators?

2009-01-20 Thread Klaus Hartl
On 20 Jan., 20:06, MorningZ 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 == '' // => true 0 =

[jQuery] Re: Problems with finding parental -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 wrote: > Hi, > > I ha

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

2009-01-18 Thread Klaus Hartl
On 18 Jan., 21:45, johny why 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, that's exac

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

2009-01-18 Thread Klaus Hartl
On 18 Jan., 19:16, Ricardo Tomasi 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 styles in-line (

[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": #foo { width: 200px !important; /* higher specificity */ } .bar { width: 300px !important; } Applied width will be 200px. --Klaus On

[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 wrote: > sorry, > > jQuery 1.2.6 > UI 1.6rc4 > > On Thu, Jan 15, 2009 at 10:49 PM, brian wrote: > > synopsis: UI.tabs faisl hard when there is no UL for which to apply tabs. > > > I have an admin section for which I'm

[jQuery] Re: jQuery UI tabs widget problem

2009-01-11 Thread Klaus Hartl
wever this does work > >                 jQuery('#product').tabs(); >                 jQuery('#product').tabs("disable", 1); >                 jQuery('#product').tabs("disable", 2); >                 jQuery('#product').tabs(&

[jQuery] Re: jQuery UI tabs widget problem

2009-01-10 Thread Klaus Hartl
              $("#tabs").tabs("disable", 1);  //works >                 $("#tabs").tabs("disable", 2); //works >                 //$("#tabs").tabs({disabled: [1,2]}); >         }); > The array versions dont work - should they in this context?

[jQuery] Re: How it should be done?

2009-01-10 Thread Klaus Hartl
Using toggleClass it can be further simplified, with less redundancy: var handleHover = function() { $(this).toggleClass ('columnSelected'); } $('ul li').hover(handleHover, handleHover); --Klaus On 10 Jan., 08:52, "jQuery Lover" wrote: > Or if you have just one ul on your page, simply: > > $(

[jQuery] Re: teaching jquery instead of javascript ?

2009-01-08 Thread Klaus Hartl
jQuery is JavaScript, and at some point you need to know JavaScript. I would never hire anyone who claims to know jQuery but not JavaScript. my 0.02$ --Klaus On 8 Jan., 22:23, pixeline wrote: > Hello mates, > > I will start to teach web usability to freshly graduated youngsters in > a graphic

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

  1   2   3   4   5   6   7   8   9   10   >