[jQuery] Re: Weird Tabs Question

2007-10-28 Thread Klaus Hartl
Tobias Parent schrieb: Hey, all - I've got a strange situation going on with tabs: The first tab in the list needs to be a 'Show All Links' tab (which will display all of the other tabs in one long list). The thing is, using something like this: -=-=-=-=-=-=-=-=-=-=-=-=-=- var

[jQuery] OT: a very simple download indicator (marquee strikes back)

2007-10-26 Thread Klaus Hartl
marquee direction=right.../marquee ;-) http://www.stilbuero.de/2007/10/26/a-very-simple-download-indicator-the-glorious-return-of-the-marquee-tag/ --Klaus

[jQuery] Datepicker bug in latest Opera

2007-10-24 Thread Klaus Hartl
Hi, I just came across a hard to find bug in Opera 9.23 (Win), that made the datepicker not work properly. In short, Opera failed on number- only keys in objects, even if you convert the number to a string*. Thus I made some changes to use the date as a string itself, which worked properly with

[jQuery] Re: Sorting links alphabetically with jQuery

2007-10-22 Thread Klaus Hartl
On 22 Okt., 12:19, Wizzud [EMAIL PROTECTED] wrote: function sortText(a, b) { var A = $(a).text(), B = $(b).text(); if ( A B ) return -1; else if ( A B ) return 1; return 0;} var tgt = $('#test') , arr = $(tgt.find('a').get().sort(sortText)) ; tgt.empty().append(arr); arr

[jQuery] Re: how to select this ?

2007-10-21 Thread Klaus Hartl
On 21 Okt., 15:25, photoboy [EMAIL PROTECTED] wrote: Wow Mike, thanks. I'm not sure why that worked, but it definitely did the trick! Much appreciated. Because in your code you're assigning the text method of the jQuery object: $(this).text; That's why the content of the alert is a

[jQuery] Build plugins throws an error

2007-10-21 Thread Klaus Hartl
All, is it just me or is the current plugin build file somewhat broken? Whenever I try to minify and pack a file I get the following error: js: uncaught JavaScript runtime exception: TypeError: Cannot read property 0.0 from null Java Result: 3 Does anybody know what is going on? --Klaus

[jQuery] Re: ui.tabs bug

2007-10-20 Thread Klaus Hartl
On 20 Okt., 16:16, Mayowa [EMAIL PROTECTED] wrote: Sorry if this is the wrong place to post this but i've found a ui.tabs bug. To recreate 1. create a tab that uses ajax to load the tabs script type=text/javascript $(function() { $('#maintab

[jQuery] Re: Tabs and Cookies

2007-10-18 Thread Klaus Hartl
On 17 Okt., 20:48, khinester [EMAIL PROTECTED] wrote: Hello, I am trying to implement the tabs jquery, but I would like for the browser to remember the tab selected on page refresh. Following details within another post, I have the following: code head link type=text/css rel=stylesheet

[jQuery] Re: draggable and droppable tabs

2007-10-16 Thread Klaus Hartl
On 15 Okt., 16:35, scottnath [EMAIL PROTECTED] wrote: I am trying to create draggable/droppable tabs. I've got it partly built, but I'd love some community input on this. A working model can be seen here: http://scottnath.com/tabs/draggable_tabs.html Below I will paste the jquery code I'm

[jQuery] Re: Ajax tabs detect automatically

2007-10-15 Thread Klaus Hartl
On 15 Okt., 20:05, zorba [EMAIL PROTECTED] wrote: last question, it seems that triggerTab() is no more useful. How can I replace it please? thanks It has changed to tabsClick() in Tabs 3... Documentation: http://docs.jquery.com/UI/Tabs --Klaus

[jQuery] Re: How to use history remote with search results

2007-10-13 Thread Klaus Hartl
On 12 Okt., 22:18, ogurec [EMAIL PROTECTED] wrote: Hi, i use history remote plugin and i try to make it work when i send request from search form. I tried this approach: $('#search_form').submit ( function() { var aurl = this.action; var

[jQuery] Re: Ajax tabs detect automatically

2007-10-13 Thread Klaus Hartl
On 10 Okt., 18:39, zorba [EMAIL PROTECTED] wrote: The best woud be if you could just have a look at this site I'm currently developping. http://maroc.visages-trekking.com/beta/randonnee-ski-rando.php access with login 'zorba' / password 'kazantzakis' As you see there is a list of items

[jQuery] Re: How to use history remote with search results

2007-10-13 Thread Klaus Hartl
On 12 Okt., 22:18, ogurec [EMAIL PROTECTED] wrote: Hi, i use history remote plugin and i try to make it work when i send request from search form. I tried this approach: $('#search_form').submit ( function() { var aurl = this.action; var

[jQuery] Re: How to apply tabs to content loaded by ajax

2007-10-12 Thread Klaus Hartl
On 12 Okt., 14:47, sukhminder [EMAIL PROTECTED] wrote: Hi All, I am loading an .html file using ajax and then trying to do: $ ('#tabholder ul').tabs(); to apply tabbing but am unable to do it. I am loading content is the div like: div id=showcontent/div and my .html file looks

[jQuery] Re: Ajax tabs detect automatically

2007-10-10 Thread Klaus Hartl
zorba wrote: hi, using that wonderful plugin for a while. Thanks Klaus Hartl ! Now, I've just been updating with version 3.0 My problem is that in older versions, you had to precise { remote: true } in order to load tab content dynamically via Ajax. Well now, tabs() detect

[jQuery] Re: How to check is element exist

2007-10-08 Thread Klaus Hartl
zidoo wrote: if home some like this: $('div id=editLng_'+lng_id+'/div').appendTo('body'); now when i create new element i need to check if that element already exist, if exist focus, else create. I cant find in jquery documentation isExist statement or something like that. Thanks.

[jQuery] Re: jQuery Tabs onmouseover

2007-10-01 Thread Klaus Hartl
jm wrote: I was wondering if there was a way that I could have the jQuery tabs plugin (http://stilbuero.de/jquery/tabs/) select a tab onmouseover. I didn't find anything when I tried a few searches here or on Google. Thanks! UI Tabs (Tabs 3) has that build-in: $('ul#tabs').tabs({ event:

[jQuery] Re: ui tabs inside ui tabs

2007-10-01 Thread Klaus Hartl
Justin Sepulveda wrote: I'm sure there's something simple i'm missing here. http://www.robustness.org/temp/tabs/tester.html When you click on the second tabset (four,five six) that is within the first tab, it hides the entire second tabset. Why? UI tabs do not require a container any

[jQuery] Re: jquery math functions?

2007-10-01 Thread Klaus Hartl
FrankTudor wrote: Is there a place that I can see the math functions available? Frank That's POSJ (Plain Old Simple JavaScript), no need for jQuery here, for example: var max = Math.max(1, 2); --Klaus

[jQuery] Re: 3,6,9,12...

2007-10-01 Thread Klaus Hartl
Adam Stacoviak wrote: I'm trying to find out how to add a class to every third occurrence of an element. Basically, I have a DIV with an undefined number of DIVs inside of it, and I want to add a class to every third DIV Try: $('div:nth-child(3n)').addClass(...); --Klaus

[jQuery] Re: BUG ? cannot detect the id with :

2007-09-14 Thread Klaus Hartl
Adwin Wijaya wrote: I just wonder why in jquery we need to escape such an unusuall characters ? (I found in prototype, we dont need to do that, I am not trying to compare, but i just wonder about that). The colon has special meaning in CSS, it denotes all kind of pseudo selectors:

[jQuery] Re: is working with position:absolute a possible issue?

2007-09-13 Thread Klaus Hartl
Alexandre Plennevaux wrote: ... unless you want your layout to be centered. In such case you need javascript to feed the position absolute's top and left value. Not in all cases. If you know the width and height of an element you can do: #center { position: absolute; top: 50%;

[jQuery] Re: Problem trying to select a ul with only one li in JQuery

2007-09-13 Thread Klaus Hartl
smuggyuk wrote: Given a ul hierarchy as below, I'm struggling to write a JQuery selector that will give me a ul that contains only one li element, that I can then add a class to, in this example the ul is the one that contains the li Only Child. ul lidiva href=#First/a/div ul lidiva

[jQuery] Re: [NEWS] Firebug 1.1 Beta Released

2007-09-13 Thread Klaus Hartl
Jörn Zaefferer wrote: losing interest and not enough time aren't that much a difference. Its mostly a question of priorities: Is it interesting enough to spend your free time for it? What if there is no free time? ;-) --Klaus

[jQuery] Re: jquery 1.2 feedback

2007-09-12 Thread Klaus Hartl
Eridius wrote: The tabs don't work since they use .eq() function(ofcourse you just need the 1.1 patch js and it works fine) The reason they don't work is because there is UI Tabs (aka Tabs 3) now that works fine with jQuery 1.2 - I'm not planning to update the Tabs 2 branch any longer.

[jQuery] Re: position in selector

2007-09-12 Thread Klaus Hartl
[EMAIL PROTECTED] wrote: I have the following code $('a').click(function() { console.log('anchor'+ pos+' in page); }); I'd like to be able to get the matched position number (pos) of each element found, so if my page has 5 anchor tags, if i click on the first a element in the page, its pos

[jQuery] Re: Multiple XPath selectors, or other, for custom attributes

2007-09-11 Thread Klaus Hartl
Will B. wrote: I currently know how to do this: $(//[EMAIL PROTECTED]'123']).remove() ; This removes a table row that of the style: tr customID=123 However, these rows in this complex table also have another fashion that I've been using: tr customID=123 aID=1 bID=2 cID=3 How can I use

[jQuery] Re: 1.2 stopping animation

2007-09-11 Thread Klaus Hartl
John Resig wrote: Stop animations were added in 1.2: http://docs.jquery.com/Effects/stop Full release notes: http://docs.jquery.com/Release:jQuery_1.2 Just tried it with UI Tabs... works great! Much better then setting a flag! :-) --Klaus

[jQuery] Re: tabs not working

2007-09-11 Thread Klaus Hartl
Eridius wrote: I am using the tabs from http://stilbuero.de/jquery/tabs/ and they dont work in IE 7 for me: http://dev.studentcity.com/test.php The bar is coming up above the tabs instead of below the tabs, anyone know why this would be happening? I mean i am not icluding anything extra

[jQuery] Re: 1.2/1.1 slice() vs lt(): what is preferred way to handle both of these cases?

2007-09-11 Thread Klaus Hartl
Stephan Beal wrote: Hi, all! i'm going through my plugins and making sure they work in 1.1.{3,4} and 1.2, and i've come across an ugly case... i use lt(), which isn't available in 1.2. Of course, lt() can be replaced by slice(), but that isn't in 1.1.x. My plugin would work in both versions

[jQuery] Re: Repeat a load

2007-09-11 Thread Klaus Hartl
Renaud wrote: $(document).ready(function() { myload(); }); In such a situation, when already having a perfect function reference you don't need another anonymous function...: $(document).ready(myload); or with the shorthand: $(myload); --Klaus

[jQuery] Re: Another site using jQuery...

2007-09-10 Thread Klaus Hartl
Rick Faircloth wrote: The tabs display on the same page might be the tabs plug-in, also. If you find a not gracefully degrading href like javascript:void(null); you can be sure it's not the Tabs plugin :-) --Klaus

[jQuery] Re: filter(fn)

2007-09-10 Thread Klaus Hartl
Pluthos wrote: Hi everyone, I am new to this group. I have been trying to get filter(function) to work for a few days without success. My goal was to remove DOM elements that did not belong to a pre-arranged array. Out of desperation I tried the example given in the on line documentation at

[jQuery] Re: Another site using jQuery...

2007-09-10 Thread Klaus Hartl
Rick Faircloth wrote: Oops! Sorry about that, Klaus! Rick Rick, no need to apologize of course! Just wanted to give a hint for how to detect the tabs plugin :-) --Klaus

[jQuery] Re: A definitive way to wait all images are loaded

2007-09-08 Thread Klaus Hartl
Giovanni Battista Lenoci wrote: Hi, I've searched in the list but didn't find the way to solve. I'm using jquery to change the position of different elements, but these positions depends on the image size of multiple images on the page. If I use document.ready jquery start to work before all

[jQuery] Re: OT: No form submit without JavaScript?

2007-09-07 Thread Klaus Hartl
Andy Matthews wrote: Change your type=submit button to a type=button button and trigger the form submission via javascript. you can still always submit the form by hitting enter. --klaus

[jQuery] Re: Simple list don't work in IE

2007-09-07 Thread Klaus Hartl
mrjoops wrote: Hi all, I expect from the following code to display only the submenu of the active menu. It works like a charm under Firefox and Opera but not under IE (at least under version 7). If someone could help, I would appreciate. Here is the code: $(document).ready(function() {

[jQuery] Re: OT: No form submit without JavaScript?

2007-09-07 Thread Klaus Hartl
Pete wrote: I have some forms that I perform validation on using the Validation plugin for jQuery. My sole purpose for this, is that I'd like to reduce spam (and my company gets quite a bit). I understand the NOSCRIPT tag, but is there a way to prevent form submission if a user does not have

[jQuery] Re: jQuery getElementsByName Equivalent ?

2007-09-07 Thread Klaus Hartl
Michael Stuhr wrote: 0xCAFE schrieb: Is there a jQuery equivalent for getElementsByName that will return an array ? Thanks! 0xCAFE well id's generally should be only used once per site. that's what they are made for. it's an identificator. what you look for is probably a class He's not

[jQuery] Re: jQuery getElementsByName Equivalent ?

2007-09-07 Thread Klaus Hartl
Andy Matthews wrote: Ah...thank you for clarifying Klaus...so he wants all elements that have a name attribute. Yes, that DOM method translates to: document.getElementsByName('foo'); = $('*[name=foo]') // jQuery 1.2, maybe 1.1.4 already $('[EMAIL PROTECTED]') // pre jQuery 1.2 The

[jQuery] Re: jQuery getElementsByName Equivalent ?

2007-09-07 Thread Klaus Hartl
Gabriel Lovison wrote: but if I put one name for a element, like this: a name= how can I take this element with this name? The answer is already in this thread elsewhere, but here's a solution for that special example: $('a[name=]') And that is a basic CSS attribute selector by

[jQuery] Re: IE vs FF with height: issues

2007-09-07 Thread Klaus Hartl
Pops wrote: I have a tree with I noticed that when the UL are collapsed, with IE there is visible space where with FF there is none. The solution for me was to add logic in my initialization code: function prepareTree(idTree) { ... // // IE Needs this

[jQuery] Re: Request: Quick tutorial on jQuery filtering/limiting methods

2007-09-06 Thread Klaus Hartl
Pops wrote: Sorry if I am a dounce, but I still don't see the invalidity of it. Do you have an example to show how this is incorrect in relationship to anything (DOM? CSS?) ? ul and ol elements may only have li elements as children, that's written in the DTD.

[jQuery] Re: Request: Quick tutorial on jQuery filtering/limiting methods

2007-09-06 Thread Klaus Hartl
Karl Rudd wrote: Thanks for finishing that off Joel. :) Joel and Karl, well explained, let's have a beer sometime :-) --Klaus

[jQuery] Re: Large clickable boxes

2007-09-06 Thread Klaus Hartl
jason wrote: Klaus, Why not simply: $(function(){ $('li.deal').click(function(){ location.href = $('h2 a', this).attr('href'); }); }); Ha! I thought I'd need to disable the contained anchor element (thus I captured the href in a closure), but that's

[jQuery] Re: IE 2px out on event.pageX/Y

2007-09-06 Thread Klaus Hartl
Wizzud wrote: Found the solution here - http://ajaxian.com/archives/javascript-tip-cross-browser-cursor-positioning http://ajaxian.com/archives/javascript-tip-cross-browser-cursor-positioning - not that anyone seems to give a ! Reported as bug : http://dev.jquery.com/ticket/1571

[jQuery] Re: 1.1.4 Bug: IE7, TD, append element

2007-09-06 Thread Klaus Hartl
traunic wrote: confirmed fixed in jquery-nightly.pack.js (although a previously working .eq(0) now tosses an error ;) eq() has been deprecated (but not yet removed) in jQuery 1.1.4 and as we're aproaching jQuery 1.2 it is replaced with slice(). Use slice(0, 1) instead of eq(0).

[jQuery] Re: Request: Quick tutorial on jQuery filtering/limiting methods

2007-09-05 Thread Klaus Hartl
Pops wrote: Thanks Klaus. I'm still learning. Maybe should show the light here. I have a 7 year old Windows HELP TOC generator that creates an UL list of about 500 links, its about 4 levels deep. ul lia ../ali lia ../ali lia ../ali ul lia ../ali lia ../ali /ul

[jQuery] Re: remove a single css-property?

2007-09-05 Thread Klaus Hartl
[EMAIL PROTECTED] wrote: is there any solution to remove a single css-property? i've the problem, that .show() leaves filter: ; in the inline-style (MSIE). now i want to remove only this property, but only this and not e.g. the whole inline-style (.removeAttr('style')). is there a plugin or a

[jQuery] Re: Bug in before, and after??

2007-09-05 Thread Klaus Hartl
Andy Matthews wrote: Klaus... The docs don't seem to indicate that it will insert something AND close a tag at the same time. It just says Inserts some HTML before all paragraphs. That's what I want, but I want full control over it. There's plenty of times where a developer might be working

[jQuery] Re: Off-topic: Disabling the mouse scroll

2007-09-05 Thread Klaus Hartl
[EMAIL PROTECTED] wrote: Does anyone know how to disable the mouse scroll so that it does not move the browser window up and down? We only want to do this when the mouse is hovering a particular div. Thanks $(window).bind('scroll', function() { return false; }); That blocks

[jQuery] Re: Large clickable boxes

2007-09-05 Thread Klaus Hartl
Frantisek Malina wrote: Hi all, I need large clickable boxes which span the whole area of the .deal box. Href attribute should be extracted from links wrapped in heading2. I tried loads of experimants and ended up with the following disfunctional code. It should work, but it simply doesn't.

[jQuery] Re: Large clickable boxes

2007-09-05 Thread Klaus Hartl
Klaus Hartl wrote: $(function() { $('li.deal').each(function() { var $a = $('h2 a', this); $(this).bind('click', function(e) { if (e.target != $a[0]) { location.href = $a.attr('href'); } }); }); }); shorter, shorter

[jQuery] Re: history_remote: how to use it with JSON ?

2007-09-04 Thread Klaus Hartl
xavier wrote: Hi, I'm using json to update a list and it works fine, but the goodies (back button, bookmarks...) are obviously not working. My goal is to keep a version that generates the html lists (for the ones without js enabled), keep the json update features, and add the history working.

[jQuery] Re: $ in jQuery, Prototype and Mochikit

2007-09-04 Thread Klaus Hartl
jack.tang wrote: Hi John $ shortcut is convenient and it also make the namespace pollution so easy. Here is my reply to Rey jQuery.noConflict(); // Put all your code in your document ready area jQuery(document).ready(function($){ // Do jQuery stuff using $ -[ time 1 ]

[jQuery] Re: jQuery Merchandise for Sale. Help Support the Project

2007-09-04 Thread Klaus Hartl
Glen Lipka wrote: I see no merchandise on that link. Glen is blinded by the light ;-) --Klaus

[jQuery] Re: Request: Quick tutorial on jQuery filtering/limiting methods

2007-09-04 Thread Klaus Hartl
Pops wrote: You can so do multiple selects, like find all divs and h3 $('div h3') but if you use the comma: $('div,h3') that says find the H3 tag that is within div, I think g It's vice versa. Find all div and h3 *elements*: $('div, h3') // grouping Find all h3 elements that are

[jQuery] Re: Bug in before, and after??

2007-09-04 Thread Klaus Hartl
Andy Matthews wrote: I'm getting some unexpected results using these three functions and I wondered if this was a bug. This is what I'm trying to accomplish: div id=leads class=module div class=moduleHeader h2Lead Submissions/h2 div class=cap/div /div /div I can

[jQuery] Re: select two class elements

2007-09-03 Thread Klaus Hartl
John Resig wrote: $(.next.open) The same works in normal CSS. Not in IE 6 of course, and in IE 7 only in Strict mode[1], just for the record... [1]http://blogs.msdn.com/ie/archive/2005/09/02/460115.aspx --Klaus

[jQuery] Re: jQuery tabs and onClick

2007-09-03 Thread Klaus Hartl
Massimiliano Marini wrote: Hi all, I'm using the amazing jQuery tabs plugin, but I'm having problem with this code: $('#container-1').tabs(2,{ fxFade: true, fxSpeed: 'fast', onClick: function() { alert(Clicked!);

[jQuery] Re: Passing arguments to Hover and Toggle??

2007-09-01 Thread Klaus Hartl
Andy Matthews wrote: Is there a way to pass arguments from one anonymous function, (in either Toggle, or Hover) to the second? Ideally I'd like to be able to pass in whatever variables I choose, but I'd settle for being able to pass in $(this), the item that triggered the event. Here's the

[jQuery] Re: Accordion v1.5 and interface together cause accordion to stop working

2007-09-01 Thread Klaus Hartl
henry wrote: Hi, Do I just do a search and replace? Can you maybe share your modified interface.js that's compatible with the latest jQuery with us? Thanks. Henry Yes, I did a simple search and replace. I can't access the files right now. But in my case that were only two or three files

[jQuery] Re: Some jQuery Questions

2007-08-31 Thread Klaus Hartl
Pops wrote: Now that getting a handle on the JS/jQuery language, I have these basic questions 1) For an JSON object, how do you get the key name? Example var json = {field1: data2, field2: data2}; I know how to get the data, but how do you get the field names? IOW, I want to get the names

[jQuery] Re: Accordion v1.5 and interface together cause accordion to stop working

2007-08-31 Thread Klaus Hartl
jman wrote: Hi, I am trying to use accordion and interface on the same page and the accordion will not work. On line 177 of the accordion file the execution goes to the interface file when it is included. If I remove the interface file from the page line 177 of the accordion jumps to the

[jQuery] Re: Document Ready - It lost me!?

2007-08-30 Thread Klaus Hartl
Pops wrote: Whoa! I thought I was beginning to understand this stuff, and then. Ok, I thought that this piece of JS code in the head tag like so: html head script type='text/javascript' (function($) { ... Does it see HTML tags? ... })(jQuery); /script /head body html tags

[jQuery] Re: Document Ready - It lost me!?

2007-08-30 Thread Klaus Hartl
Pops wrote: where did I get this from? (function($) { ... you code.. })(jQuery); I must of pulled if from an example. What would be its purpose to have this wrap? Simulating block scope in which you can safely use the $ shortcut... --Klaus

[jQuery] Re: What's wrong with my coding?

2007-08-30 Thread Klaus Hartl
Joe L wrote: Hi, I added the click event to a few a and they work perfectly fine, but when I try to do it with a FOR loop, it doesn't work anymore, does anyone has any idea about it? Thank you. /* works well */ $(a#1-a).click(function(){toggleTab(0);});

[jQuery] Re: Weird behavior of CSS float! Different in IE and Firefox

2007-08-30 Thread Klaus Hartl
seedy wrote: Just as a follow up on this, it doesn't have to be overflow hidden, just any overflow attribute. Applying the overflow forces the browser to calculate the size of the div to see if it needs to show the scrollbar or not. ...any overflow value *other than visible* which is the

[jQuery] Re: DIV clipping or autofit question

2007-08-29 Thread Klaus Hartl
Feed wrote: Yes, Firefox does this. I'm not sure if it's a bug or a feature, though. I don't think Firefox, which is known for it's good standards compliance, would suffer from such a stupid bug. Or maybe I'm wrong. :) Nowhere in the spec (up to CSS 2.1) is defined how to handle wrapping

[jQuery] Re: Select range of table rows

2007-08-29 Thread Klaus Hartl
Stuart wrote: I'm trying to figure out an efficient way to select a range of table rows. What I'd like to do is select perhaps rows 11 through 19. I want to have the selector put the desired rows into the jquery object instead of grabbing all rows and looping through them to operate only on

[jQuery] Re: unsubscribe

2007-08-29 Thread Klaus Hartl
Rey Bango wrote: Carl, you need to go to your Google Groups page and unsubscribe there. Rey It'll probably also work like subscribing. Send a mail to [EMAIL PROTECTED] --Klaus

[jQuery] Re: [Resolved] Re: How optimize $(this).children(span).children(a).html(it works);

2007-08-28 Thread Klaus Hartl
Nico wrote: Wonderfull! :-) It works with this one: $(this).find('/span/a').html('it works'); Thanks a lot for your help You could write that even shorter: $('/span/a', this).html('it works'); --Klaus

[jQuery] Re: textareas and contains()

2007-08-27 Thread Klaus Hartl
MrNase wrote: $('#myTextarea').attr('val').indexOf('hello') != -1 --Klaus $('#myTextarea').val().indexOf('hello') != -1 works. Thanks! :) Now, when I extend my code it doesn't work anymore. if ($('#myTextarea').val().indexOf('hello') != -1) {

[jQuery] Re: Toggling the html of an element

2007-08-27 Thread Klaus Hartl
Benjamin Sterling wrote: script type=text/javascript $(document).ready(function(){ $('#toggleTwo').click(function(){ var $this = $(this); // add a reference to this relating to the A tag $('#rubricTwo').toggle(function(){ $this.html = hide;} ,function(){$this.html =show;}

[jQuery] Re: Tabs plugin scrolling issue

2007-08-25 Thread Klaus Hartl
Renaud wrote: One workaround is to not use history for the tabs. --Klaus Klaus, Thanks! Indeed the problem seems to have disappeared since I've done that. Renaud Yes, for sure. It has to do with changing the URL's fragment identifier to make history possible. --Klaus

[jQuery] Re: jQuery 1.1.4: Faster, More Tests, Ready for 1.2

2007-08-24 Thread Klaus Hartl
John Resig wrote: Hi Everyone - jQuery 1.1.4 has just been released! The full details of this release can be found on the jQuery blog: http://jquery.com/blog/2007/08/24/jquery-114-faster-more-tests-ready-for-12/ Suffice it to say that some significant speed increases, test coverage increases,

[jQuery] Re: jQuery 1.1.4: Faster, More Tests, Ready for 1.2

2007-08-24 Thread Klaus Hartl
Dave Cardwell wrote: On 24/08/07, John Resig [EMAIL PROTECTED] wrote: jQuery 1.1.4 has just been released! Can you Digg it*? http://digg.com/programming/jQuery_1_1_4_Faster_More_Tests_Ready_for_1_2 Ha, Dave, you've been one second faster or something :-) --Klaus

[jQuery] Re: jQuery 1.1.4: Faster, More Tests, Ready for 1.2

2007-08-24 Thread Klaus Hartl
John Resig wrote: Hi Everyone - jQuery 1.1.4 has just been released! The full details of this release can be found on the jQuery blog: http://jquery.com/blog/2007/08/24/jquery-114-faster-more-tests-ready-for-12/ Suffice it to say that some significant speed increases, test coverage increases,

[jQuery] Re: jQuery 1.1.4: Faster, More Tests, Ready for 1.2

2007-08-24 Thread Klaus Hartl
SeViR wrote: I am confused, in the blog I read [...] new functionality have been introduced. [...] slide() ... but I download the direct link of jQuery and also, I updated from the SVN trunk and build. I don't see any slide() method, also I test with $(#something).slide(1) but I get:

[jQuery] Re: [NEWS] jQuery's Fearless Leader on Ajaxian

2007-08-24 Thread Klaus Hartl
Rey Bango wrote: jQuery's fearless leader John Resig is in the news today on Ajaxian.com. The post is about John's recent chat over at Google on Best Practices in Javascript Library Design. The cool thing is that its a video presentation so you get to see the man in action!!

[jQuery] Re: jQuery's Fearless Leader on Ajaxian

2007-08-24 Thread Klaus Hartl
Pops wrote: In JS, we already have a few pseudo-standard nomemclature, for example a popular patten of starting functions with a lowercase letter: function initProcess() I personally prefer using capitalized words for processes/functions and lower case words for data. Anyway, is there

[jQuery] Re: IE hover effect

2007-08-24 Thread Klaus Hartl
Eridius wrote: Does anyone know if IE support hover effects on divs? Starting with IE 7. For IE 6 I wrote an easy to use snippet a while ago: http://www.stilbuero.de/2005/07/19/whateverhover-fast-and-easy/ --Klaus

[jQuery] Re: jd menu issue

2007-08-24 Thread Klaus Hartl
Eridius wrote: here is my code: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; head meta http-equiv=Content-Type content=text/html; charset=utf-8 / titleKaizen Digital/title script

[jQuery] Re: jQuery 1.1.4: Faster, More Tests, Ready for 1.2

2007-08-24 Thread Klaus Hartl
Glen Lipka wrote: I dont quite understad how the slice() feature works. I am assuming this is zero based. So let's say I had 10 DIVs. 0 1 2 3 4 5 6 7 8 9 What does the first and second number in the parens mean? Apparently you do not need to have both. And negative numbers mean

[jQuery] Re: jQuery 1.1.4: Faster, More Tests, Ready for 1.2

2007-08-24 Thread Klaus Hartl
Bernd Matzner wrote: Thanks to everyone on the dev team for the new release! @Klaus: are you planning to update your tabs plugin to the new release? It uses eq(), which I understand are deprecated now. I'd rather work on UI Tabs aka Tabs 3 at the moment... :-) But ok, I'll fix that, I only

[jQuery] Re: Tabs plugin scrolling issue

2007-08-24 Thread Klaus Hartl
Renaud wrote: Hello, I'm using the tabs plugin (2.7.4) and I'm experiencing problems using firefox. When I'm clicking on a tab, sometimes, but not always, it scrolls down to the div that is being activated by the tab, it actually even does that when trying the samples at

[jQuery] Re: [NEWS] Brandon Aaron on Ajaxian...AGAIN!

2007-08-23 Thread Klaus Hartl
Rey Bango wrote: jQuery team member and JS superstar Brandon Aaron is all over the place these days and with good reason; his coding skills rock. Brandon's Live Query plugin made it to Ajaxian, Brandon's second mention on the premier Ajax blog! http://ajaxian.com/archives/jquery-live

[jQuery] [NEWS] Minglets - jQuery on the iPhone

2007-08-23 Thread Klaus Hartl
Just read on Ajaxian that Minglets.com, a social chat app for the iPhone uses jQuery and YShout... http://ajaxian.com/archives/iphone-apps-facebook-and-minglets http://minglets.com/ I don't have an iPhone, so I couldn't see for myself. --Klaus

[jQuery] Re: how to delay a event?

2007-08-23 Thread Klaus Hartl
james_027 wrote: hi, I have a small jQuery script, that get some data over the server on every keypress by the user, but I don't to perform such action every time when the user presses a key, specially if between key presses happens in short amount of time. How do I delay this event? Here is

[jQuery] Re: how to delay a event?

2007-08-23 Thread Klaus Hartl
Klaus Hartl wrote: var delayed; $('[EMAIL PROTECTED]').keyup(function() { clearTimeout(delayed); var value = this.value; if (value) { delayed = setTimeout(function() { $.get('/main/search_item/', { search_item: value }, function(data

[jQuery] Re: Can someone explain this string behavior?

2007-08-23 Thread Klaus Hartl
Pops wrote: I think I have a theory about why this is happen and it might not be jQuery related but just Javascript, but maybe someone can explain this because it is so odd. This is the code: logln(wcError +IsHidden('wcError')?hidden:not hidden); logln() is a function tha basically

[jQuery] Re: Can someone explain this string behavior?

2007-08-23 Thread Klaus Hartl
Pops wrote: On Aug 23, 9:36 am, Klaus Hartl [EMAIL PROTECTED] wrote: That is a matter of operator precedence. The plus operator has higher precedence than the conditional operator, thus wcError +IsHidden('wcError') gets evaluated first, afterwards the ?: Ahh! That didn't hit me

[jQuery] Re: [ANNOUNCE] LavaLamp for jQuery lovers released!

2007-08-23 Thread Klaus Hartl
Ganeshji Marwaha wrote: Hi friends, Thank you! both for all your patience and valuable feedback. This sure helped shaped this plugin into whatever it is today. LavaLamp is a very simple menu plugin for jQuery. As many of you already know, fancy hover effects is what gives it character. It

[jQuery] Re: textareas and contains()

2007-08-23 Thread Klaus Hartl
MrNase wrote: I am currently at war with the contains function. :-( Here's my snippet which doesn't work. $('#myTextarea').bind(keyup, function(){ if ($('#myTextarea').attr('val').contains('hello')) {

[jQuery] Re: Get size for elements that don't exist yet

2007-08-22 Thread Klaus Hartl
Stephan Beal wrote: On Aug 22, 11:42 am, Gordon [EMAIL PROTECTED] wrote: flickering occurs. You can mitigate the flickering problem by making sure the elements you add to the dome have a css ('visibility', 'hidden') but that still leaves the other problems. FYI: visibility:hidden is

[jQuery] Re: jQuery Ajax Bugs?

2007-08-21 Thread Klaus Hartl
F8R wrote: I have use jQuery to send AJAX call to PHP script using POST. It's always execute error function callback. I check using FireBug Firefox extention, the passed XMLHTTPRequest to error function callback has some of this value : readyState : 4 status : 200 responseText : {The expected

[jQuery] Re: Get the element that's appended directly without using second step?

2007-08-20 Thread Klaus Hartl
Estevão Lucas wrote: the way that i use is: $( body ).append(div class='testDiv'/div).find( .testDiv ); Thus the created element will be returned I usually code that like the following to save one expensive search operation and code duplication like the class name: var div = $('div

[jQuery] Re: store checkbox id's in array object.

2007-08-18 Thread Klaus Hartl
Potluri wrote: Hi, I'm using this method to store id's of checked checkboxes in array object like $([EMAIL PROTECTED]'checkbox']:checked).each( function() { arrayName.push(this.id); } ); it works but above way takes .656 secs for storing in array object with 50 checkboxes. Is there a 1 line

[jQuery] Re: ColdFusion tag for Tabs

2007-08-17 Thread Klaus Hartl
Klaus Hartl wrote: jQuerians and ColdFusionistas! Andrea Campolonghi wrote me an email the other day: I played a bit with your plug-in ( very nice ) and I made up a ColdFusion Custom Tag for an easy implemntation of your plg-in in CF. I am a CF developer learning jQuery ( really impressed

[jQuery] Re: ajax - tabs plugin question: proper anchor tags

2007-08-17 Thread Klaus Hartl
Geert Baven wrote: Hi I am using the ajax version of klaus hartl tabs plugin. I try to do crosslinking between the files which are called ahah_1.html etc by using a href=ahah_2.htmllink/a this does not render properly. So what is the proper html to put in the anchor tag? Geert, what do

<    1   2   3   4   5   6   7   8   9   >