[jQuery] Re: what does this selector mean ?

2009-10-19 Thread Karl Swedberg
On Oct 18, 2009, at 2:05 AM, Michael Geary wrote: $('div',this) is simply a confusing way of writing $ (this).find('div'). The only reason it exists at all is for "historical reasons": it was added to jQuery before the .find() method existed. Never use $('div',this) in your code. Always us

[jQuery] Re: jQuery UI datepicker

2009-10-19 Thread Karl Swedberg
Hi there, Would you mind posting this question to the jquery-ui google group if you haven't done so already? That group is dedicated to questions such as yours that are specifically related to jQuery UI. http://groups.google.com/group/jquery-ui/ Thanks! --Karl Karl Swe

[jQuery] Re: what does this selector mean ?

2009-10-17 Thread Karl Swedberg
ts of an element with id="myid" -- two arguments. One way to include "this" in the selection would be to use .add(). For example: $(this).add('div'); -- select this and all div elements. Hope that helps. --Karl Karl Swedberg www.englishrules.com www.l

[jQuery] Re: safari flashes hidden text from hide()

2009-10-16 Thread Karl Swedberg
This has served me well: http://www.learningjquery.com/2008/10/1-way-to-avoid-the-flash-of-unstyled-content --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Oct 16, 2009, at 4:53 PM, derek allard wrote: Hello. I'm relatively new to jQuery and wr

[jQuery] Re: Finding previous & next "siblings" encapsulated in other ?

2009-10-16 Thread Karl Swedberg
s selects all checkboxes and text inputs and binds both a change and a focus handler to them. The doSomething() method will fire on change regardless of the input type (event.type == 'change') and on focus for text inputs only (this.type == 'text') --Karl K

[jQuery] Re: Best way to construct DOM objects

2009-10-15 Thread Karl Swedberg
ed to keep the append chain, you'd have to add a traversal method in between: $('#result').append('').find('table').append('>').find('tr').append('') ( you could use .children() instead of .find() ) That seems like quite a bit of work, though. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: Finding previous & next "siblings" encapsulated in other ?

2009-10-15 Thread Karl Swedberg
OM traversal to match the others as well. --Karl ____ Karl Swedberg www.englishrules.com www.learningjquery.com On Oct 15, 2009, at 12:07 PM, Julien wrote: Hi again, My question was probably too long as I got no answer... When a change occurs is one of the following text fields,

[jQuery] Re: jQuery Flash Stacking Order

2009-10-15 Thread Karl Swedberg
, thanks in advance for any help. One thing that often helps in these cases is to set wmode=transparent in the object's params --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: loading message shows up after page has loaded

2009-10-14 Thread Karl Swedberg
Wow, easy there Karl. I was just showing you working examples of the issue I was experiencing. easy there? I was just trying to help. You showed examples that didn't include my suggestions, after we had already established that your first attempts were not going to work. Your code does no

[jQuery] Re: Several callbacks?

2009-10-14 Thread Karl Swedberg
Try this ... var pageCounter = 0; var pagesTotal = $('.pages').length; $(".page").fadeTo(fadeSpeed,0,function() { if (++pageCounter == pagesTotal) { alert("test"); } }); I'm assuming you have declared a variable for fa

[jQuery] Re: loading message shows up after page has loaded

2009-10-13 Thread Karl Swedberg
ile the query is running) - http://meded.ucsd.edu/testStatic.cfm (does work as expected, shows the loading message while the images are loading) Josh On Oct 12, 5:30 pm, Karl Swedberg wrote: You've lost me there. If you're trying to block the page based on some user interaction,

[jQuery] Re: jQuery UI widgets leaks memory for dynamic content manipulation

2009-10-13 Thread Karl Swedberg
Would you mind posting this question to the jquery-ui google group if you haven't done so already? That group is dedicated to questions such as yours that are specifically related to jQuery UI. http://groups.google.com/group/jquery-ui/ Thanks! --Karl Karl Swe

[jQuery] Re: loading message shows up after page has loaded

2009-10-12 Thread Karl Swedberg
resented: http://test.learningjquery.com/blockui.html Note that I added a setTimeout inside the $(window).load() function to simulate a heavy page. --Karl ____ Karl Swedberg www.englishrules.com www.learningjquery.com On Oct 12, 2009, at 4:59 PM, sdtacoma wrote: Thanks for you hel

[jQuery] Re: jQuery Documentation for Visual Studio

2009-10-12 Thread Karl Swedberg
('a[href=somthing.html]') . For more information about getting Intellisense working with Visual Studio, see this article: http://www.learningjquery.com/2009/07/setting-up-visual-studio-intellisense-for-jquery --Karl Karl Swedberg www.englishrules.com www.learningjque

[jQuery] Re: $.post and form data

2009-10-11 Thread Karl Swedberg
t('/path/to/file/', formData, function() { // do something when post is successful. }); return false; }); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: Select element in form?

2009-10-11 Thread Karl Swedberg
You have a space between form and [name=...] . In CSS a space is a descendant selector, so it's expecting some descendant of the form to have a name equal to formName. Remove the space and you should be fine. --Karl Karl Swedberg www.englishrules.com www.learningjquer

[jQuery] Re: Obfuscated jQuery

2009-10-11 Thread Karl Swedberg
acked") version of jQuery anymore. You'll almost certainly get better performance by using the minified version and having it gzipped on the server side. The minified version is available from the jQuery homepage ( http://jquery.com/ ). --Karl ____ Karl Swed

[jQuery] Re: jQuery update (internal) function

2009-10-10 Thread Karl Swedberg
Well, all you have to do to see for yourself is to set an element's height and width with CSS while setting its display property to inline and see what you get. this is a test then try it without display: inline; --Karl Karl Swedberg www.englishrule

[jQuery] Re: Fade in/ out image

2009-10-10 Thread Karl Swedberg
it: $('#something img').fadeOut(400, function() { $(this).remove(); }); --Karl ____ Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: Textarea and newlines

2009-10-10 Thread Karl Swedberg
ution for about 3 hours, nothing works. Cheers. I wouldn't rely on JavaScript for handling user input. Why not just do it with your server-side code when the form is handled (before the input is stored in the database or sent by mail)? --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: jquery tabs

2009-10-10 Thread Karl Swedberg
I think you'll have more success getting an answer if you post the question to the jquery-ui group. That group is dedicated to questions such as yours that are specifically related to jQuery UI. http://groups.google.com/group/jquery-ui/ Thanks! --Karl Karl Swe

[jQuery] Re: When choosen a checked then other checked disable and else

2009-10-10 Thread Karl Swedberg
This looks like it's going to cause a problem. What happens if someone clicks #check1 but then changes her mind? She can't click #check2 anymore, because it's disabled. --Karl ____ Karl Swedberg www.englishrules.com www.learningjquery.com On Oct 10, 2009, at 11:5

[jQuery] Re: How to pass a Jquery variable to php?

2009-10-10 Thread Karl Swedberg
$_GET['name'] will be "John" and $_GET['time'] will be "2pm" --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: loading message shows up after page has loaded

2009-10-10 Thread Karl Swedberg
x27;#uiblocker').hide(); }); So, that /should/ work. For IE6 support, you'll need to either simulate position: fixed with a css expression or change it to position: absolute and hope for the best. Hope that helps. --Karl Karl Swedberg www.englishrules.com www.learnin

[jQuery] Re: Jquery tabs load external file that uses a jquery plugin

2009-10-10 Thread Karl Swedberg
load file into the DOM first and then run the JS that is expecting the loaded html. For example: $('#someID').load('/path/to/file', function() { // run the JS here, now that the ajax loaded content is available }); --Karl Karl Swedberg www.englishru

[jQuery] Re: how to get next div with class of clear

2009-10-08 Thread Karl Swedberg
xtAll('.clear') instead of .next(.'clear') . If it isn't, maybe you could paste a snippet of your html so that we can see the relationship between the elements? --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: format number

2009-10-05 Thread Karl Swedberg
doing this, but one way is to use a regex replace: var someFormattedNumber = '15,000'; +someFormattedNumber.replace(/\D/g,'') --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: stopping and restarting the auto scrolling

2009-10-04 Thread Karl Swedberg
. --Karl ____ Karl Swedberg www.englishrules.com www.learningjquery.com On Oct 4, 2009, at 9:42 PM, Macsig wrote: Thanks Karl, it does exactly what I was looking for. Is there a parameter to set in order to avoid the automatically pause on mouseenter and resume it on mouseleave? I

[jQuery] Re: stopping and restarting the auto scrolling

2009-10-04 Thread Karl Swedberg
e) { $(document).trigger('pauseCarousel'); } else { $(document).trigger('resumeCarousel'); } Hope that helps. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Oct 4, 2009, at 3:32 PM, Macsig wrote: Any ideas at all? I'm really stuck on this

[jQuery] Re: what is call()

2009-10-02 Thread Karl Swedberg
On Oct 3, 2009, at 1:21 AM, runrunforest wrote: I see it is used in many plugins. I try to find document about it but no help. It's a JavaScript function: https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Function/call --Karl Karl Swe

[jQuery] Re: How to disable text inputs lying near checkboxes ?

2009-10-02 Thread Karl Swedberg
On Oct 2, 2009, at 3:02 PM, Julien wrote: Here the way to enable/disable several text inputs depending on the state of checkboxes located just after each one. $(':text~:checkbox').change( function(){ $(this).prev()[0].disabled = !(this.checked); } ); Hope this can help others. ah, t

[jQuery] Re: keeping table header fix

2009-10-02 Thread Karl Swedberg
On Oct 2, 2009, at 12:11 PM, Jack Killpatrick wrote: Hmm, I gave this a try. Setting height stretches the table rows out vertically if there are less records than the height. I tried putting a fixed height div around the table and not setting a height on the tbody, but then the tbody overfl

[jQuery] Re: how to replace all the '[]' to be '' in $.SortSerialize('MDEExportedList').hash

2009-10-01 Thread Karl Swedberg
ialize('MDEExportedList').hash is all about, but the replace() function should work. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: keeping table header fix

2009-10-01 Thread Karl Swedberg
have you tried overflow-y: auto; ? more information: https://developer.mozilla.org/en/CSS/overflow-x --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Oct 1, 2009, at 8:25 PM, Jack Killpatrick wrote: bump... anyone know? If there's no nice css way, ma

[jQuery] Re: How to manipulate an object containaing HTML

2009-10-01 Thread Karl Swedberg
and then just add a class to the td elements. Whether you do that server-side or in the success callback is up to you. Also, you ought to append table rows to a , not to a . --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Oct 1, 2009, at 11:52 AM, Charlie wrot

[jQuery] Re: How to disable text inputs lying near checkboxes ?

2009-10-01 Thread Karl Swedberg
x27;background-color','yellow') [0].disabled = true; } } ); You could also replace [0].disabled = true with .attr('disabled', true) --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Oct 1, 2009, at 11:31 AM, Julien wrote: Hi,

[jQuery] Re: Selectors .each

2009-10-01 Thread Karl Swedberg
their parent. --Karl ____ Karl Swedberg www.englishrules.com www.learningjquery.com On Oct 1, 2009, at 11:19 AM, Dave Maharaj :: WidePixels.com wrote: I am trying to add a class to the first item each time it appears inside set_list $('.set_list').each(function(){ $('dl.set

[jQuery] Re: Trying to match just the first descendent in each tree of descendents

2009-10-01 Thread Karl Swedberg
ith them here I added 'div' to the initial selector, since it looks like all of your top-level widgets are divs. It's going to be quite a bit faster if you limit the selector to a specific tag name rather than inspecting every single element for a particular attribute. Let me

[jQuery] Re: array object

2009-09-30 Thread Karl Swedberg
I try your code, the result is: [object Object] On Sep 30, 8:05 pm, Karl Swedberg wrote: On Sep 30, 2009, at 1:00 AM, Poloman wrote: Can I get value and text of an option and put them into an array object? britney jackson I'd like to have something like

[jQuery] Re: array object

2009-09-30 Thread Karl Swedberg
ike this ... var arrayob = {}; $('option').each(function() { arrayob[this.value] = $(this).text(); }); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: fade and rotate text

2009-09-29 Thread Karl Swedberg
try the Cycle plugin. Lots and lots of transition effects: http://malsup.com/jquery/cycle/ --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Sep 29, 2009, at 4:49 PM, koolkat wrote: I am looking for the best way to rotate the displayed text . Text should

[jQuery] Re: what does this selector mean ?

2009-09-29 Thread Karl Swedberg
t are descendants of "this" in the DOM tree. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: Mouseout event problem

2009-09-28 Thread Karl Swedberg
uery("#tab").mouseenter(function() { if (!$panel.is(':animated')) { $panel.slideDown("slow"); } }); // Collapse Panel jQuery("#toppanel").mouseleave(function() { if (!$panel.is(':animated')) { $panel.slideUp(&

[jQuery] Re: Every post I make, I get an mail error.

2009-09-27 Thread Karl Swedberg
Hmmm. I just searched through all jquery-en members and couldn't find r...@localhost listed. Maybe one of the other admins already deleted it? --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Sep 26, 2009, at 4:38 PM, Scott Haneda wrote: I believe

[jQuery] Re: a little problem with checking all checkboxes

2009-09-27 Thread Karl Swedberg
ill toggle between checked and unchecked to match the state of the parent. Here is the code I used: $(document).ready(function() { $('#city-id-120').click(function() { $('.child-checkboxes').attr('checked', this.checked); }); }

[jQuery] Re: Mailing list for general JavaScript discussion?

2009-09-27 Thread Karl Swedberg
If you have a very thick skin and can look past the ranting of arrogant know-it-alls, the comp.lang.javascript Usenet group can be a great resource. You can access it through Google Groups, too: http://groups.google.com/group/comp.lang.javascript/topics --Karl Karl Swedberg

[jQuery] Re: XHTML or HTML when creating elements?

2009-09-25 Thread Karl Swedberg
On Sep 25, 2009, at 11:56 AM, Bertilo Wennergren wrote: Karl Swedberg wrote: Internally, jQuery determines whether to use document.createElement by checking the string against a regular expression: rsingleTag = /^<(\w+)\s*\/?>$/ Unless I'm missing something, allowing for bo

[jQuery] Re: XHTML or HTML when creating elements?

2009-09-25 Thread Karl Swedberg
checking the string against a regular expression: rsingleTag = /^<(\w+)\s*\/?>$/ Unless I'm missing something, allowing for both syntaxes would be trivial. Just change the regex to something like this (untested): rsingleTag = /^<(\w+)\s*\/?>(<\/\w+&

[jQuery] Re: cycle plugin and dropdown menu

2009-09-25 Thread Karl Swedberg
Hi Vitto, Add these declarations to your ul#mainNav rule (main.css, line 149) position: relative; z-index: 50; For IE, you'll probably also need to add these to div#content (main.css, line 26) position: relative; z-index: 1; --Karl Karl Swedberg www.englishrule

[jQuery] Re: jQuery plugin help

2009-09-25 Thread Karl Swedberg
Hi Nalum, It's pretty straightforward. Instead of doing this: $.fn.pluginname = function(args) { }; You can do this: $.pluginname = function(args) { }: --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Sep 24, 2009, at 10:59 AM, Nalum wrote:

[jQuery] Re: Find top-level elements

2009-09-25 Thread Karl Swedberg
find('p'); // Actual paragraphs --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Sep 24, 2009, at 8:01 AM, Grimace of Despair wrote: Working on WinXP in FireFox 3.0.14 with JQuery 1.3.2, I'm trying the following code: $.ajax({ url: "http://foo.ba

[jQuery] Re: Trouble with backgroundPosition Plugin

2009-09-25 Thread Karl Swedberg
Karl Swedberg www.englishrules.com www.learningjquery.com On Sep 24, 2009, at 2:11 PM, rob wrote: Having some trouble with this plugin. I've tried in both IE8 and FF3, but it doesn't seem to work. Basically the background position isn't moving... the function toArray(s

[jQuery] Re: Fix for Giva Labs linkselect plugin

2009-09-25 Thread Karl Swedberg
Nice one! Thanks for posting this. Chances are good that if you ran into the problem, someone else has, too. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Sep 25, 2009, at 2:38 AM, boermans wrote: We noticed an issue with the jquery.linkselect plugin

[jQuery] Re: How to combine event?

2009-09-25 Thread Karl Swedberg
default' : 'url(hand.cur), default'; $(this).css({cursor: myCursor}); }); Hope that helps. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Sep 25, 2009, at 1:48 AM, David .Wu wrote: event mousedown and mouseup an

[jQuery] Re: Unlock Documentation

2009-09-23 Thread Karl Swedberg
course). If that isn't the case, please let me know and I'll ping John Resig or someone on the infrastructure team about it. thanks, --Karl ____ Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: Vertical Text

2009-09-22 Thread Karl Swedberg
On Sep 22, 2009, at 7:39 PM, a1anm wrote: Is it possible to rotate text so that is displays vertically using jQuery? Thanks! You might find this article useful: http://snook.ca/archives/html_and_css/css-text-rotation --Karl Karl Swedberg www.englishrules.com

[jQuery] Re: Doubts on Multiple selection employment

2009-09-21 Thread Karl Swedberg
I'd use a filter function. Something like this maybe: $('#MyTable tr').filter(function() { return /^(Row(?!Header)|Line(?!Empty))/.test(this.id); }) It's a kind of crazy regular expression, with negative lookaheads, but it works (as of JavaScript 1.5). --Karl __

[jQuery] Re: help to simplify code

2009-09-20 Thread Karl Swedberg
mouseenter or mouseleave) for the element that matches the selector represented by id. // So, when the user's mouse enters , it will trigger mouseenter for . //And we've already bound mouseenter and mouseleave for those divs, so we're all set. $(id).trigger(event.type);

[jQuery] Re: help to simplify code

2009-09-20 Thread Karl Swedberg
oundColor: '#404040'}, 500); }); $navigation.find('a') .bind('mouseenter mouseleave', function(event) { if (this.id.indexOf('nav') === 0) { var id = '#' + this.id.replace(/^nav/,''); $(id).trigger(event.type); }

[jQuery] Re: Using append() - each element or string of HTML?

2009-09-19 Thread Karl Swedberg
... is now faster than this: for (var i=0; i < 250; i++) { $('ul').append('some thing'); } cf. http://www.slideshare.net/jeresig/recent-changes-to-jquerys-internals (slide 35) --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Se

[jQuery] Re: ClueTip problem on initially hidden fields

2009-09-18 Thread Karl Swedberg
); (you don't need position: 'auto' since that's the default.) I grabbed your markup and created a demo page for you to look at: http://plugins.learningjquery.com/cluetip/demo-more/hidden-divs.html Hope that helps, --Karl Karl Swedberg www.englishrules.com

[jQuery] Re: cluetips only loads the first tip but not the rest

2009-09-18 Thread Karl Swedberg
That's really odd. I don't recall having run across that problem before. I just tested it out and had no problem: http://plugins.learningjquery.com/cluetip/demo-more/temp.html --Karl ____ Karl Swedberg www.englishrules.com www.learningjquery.com On Sep 18, 2009, at 8:37

[jQuery] Re: is there a JQuery solution for multiple sticky tooltips?

2009-09-17 Thread Karl Swedberg
Someone correct me if I'm wrong, but I think jQuery UI Dialog allows for multiple dialogs open at a time. You might be able to get these to work the way you want. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Sep 17, 2009, at 11:49 AM, rvdb

[jQuery] Re: Simple CSS selector Question

2009-09-17 Thread Karl Swedberg
etter'; $("input[name=" + foo + "]") Hope that helps explain. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Sep 17, 2009, at 12:22 PM, Charlie Griefer wrote: Hi Karl: Hate to hijack the thread, but hopefully it's somewhat relevant to

[jQuery] Re: detecting jQuery objects && "constructor" property

2009-09-17 Thread Karl Swedberg
Since you're talking about modifying the core jQuery file itself, you might want to pose the question on the jquery-dev Google Group instead. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Sep 17, 2009, at 9:49 AM, Nico wrote: I just try a l

[jQuery] Re: Simple CSS selector Question

2009-09-17 Thread Karl Swedberg
Try this: $(document).ready(function() { alert( $("input[name=bar]").val() ); }); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: Jquery Newbie needing help..

2009-09-16 Thread Karl Swedberg
click(function() { if (!$(this).is(':animated')) { $ (this).fadeOut('fast').fadeIn('fast').fadeOut('fast').fadeIn('fast'); } }); }); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Sep 16, 2009, a

[jQuery] Re: From adult google group.

2009-09-16 Thread Karl Swedberg
On Sep 16, 2009, at 3:37 PM, moiramethot45250 wrote: For jquery-en group members. HD tube adult movies. Sorted by rating of millions users... Sorry that one slipped through. User is now banned. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: serializeArray() only for enabled form elements

2009-09-16 Thread Karl Swedberg
m is submitted, user agents are not required to treat it as a successful control. There are a couple other caveats that I didn't paste here. For the full deal, follow this link: http://www.w3.org/TR/html401/interact/forms.html#h-17.13.2 --Karl Karl Swedberg www.englishr

[jQuery] Re: Sortable inside an accordion

2009-09-15 Thread Karl Swedberg
Hi Pedro, That sounds like a great question for the jQuery UI Google Group. Would you mind posting it there? http://groups.google.com/group/jquery-ui/ Thanks, --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Sep 15, 2009, at 4:04 PM, Pedro wrote: Hi

[jQuery] Re: How animate in sortable ?

2009-09-15 Thread Karl Swedberg
Would you mind posting this question to the jquery-ui google group if you haven't done so already? That group is dedicated to questions such as yours that are specifically related to jQuery UI. http://groups.google.com/group/jquery-ui/ Thanks, --Karl Karl Swe

[jQuery] Re: shadowbox / ajax IE8.0.6 issue

2009-09-14 Thread Karl Swedberg
I'm not sure what's going on there, but you may have better luck at the Shadowbox forum: http://www.shadowbox-js.com/forum.html --Karl ____ Karl Swedberg www.englishrules.com www.learningjquery.com On Sep 13, 2009, at 8:17 PM, Duncan wrote: Hi All, We have an issue i

[jQuery] Re: Unknown pseudo-class or pseudo-element 'odd'.

2009-09-14 Thread Karl Swedberg
Not sure why you're having this problem, but take a look at the very simple test case here: http://test.learningjquery.com/alt-rows.html It seems to work fine. Maybe something else is going on in your code or markup? Hard to tell from that snippet. --Karl Karl Swe

[jQuery] Re: Why no entire text is replaced when I pick a date on the datepicker?

2009-09-14 Thread Karl Swedberg
Would you mind posting this question to the jquery-ui google group if you haven't done so already? That group is dedicated to questions such as yours that are specifically related to jQuery UI. http://groups.google.com/group/jquery-ui/ Thanks! --Karl Karl Swe

[jQuery] Re: jquery validate and datepicker.

2009-09-14 Thread Karl Swedberg
elect method to your datepicker options: http://jqueryui.com/demos/datepicker/#event-onSelect That way, the validation thing will be triggered when the user clicks or tabs out of the field after that point. Hope that helps. --Karl ____ Karl Swedberg www.englishrules.com www.learningjque

[jQuery] Re: select element "change" event doesn't bubble - does jQuery try to fix that?

2009-09-12 Thread Karl Swedberg
from a container element via jQuery? not really. you might be able to get away with using click, but no guarantees. --Karl ____ Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: Ajax not working in Firefox

2009-09-08 Thread Karl Swedberg
I was having ajax problems with a certain combination of Firefox 3.5.x and Firebug. Can't remember which versions exactly, but I do recall that unchecking the "Show XMLHttpRequests" option in the Console tab made the problem go away. --Karl On Sep 8, 2009, at 2:41 PM, Mike McNally wrote:

[jQuery] Re: Some questions about selector

2009-09-07 Thread Karl Swedberg
ct/text.html#h-9.3.1 --Karl ____ Karl Swedberg www.englishrules.com www.learningjquery.com On Sep 7, 2009, at 11:35 AM, TSAI wrote: I have the following source code: **

[jQuery] Re: Preventing browser scrollbars from bumping content in slideDown()

2009-09-05 Thread Karl Swedberg
A not-so-pretty way would be to set body { overflow-y: scroll; } in your stylesheet. I suppose another would be to set a min-height on the body. For IE6, you could just set the body's height, since it treats height as min- height. --Karl Karl Swedberg www.englishrule

[jQuery] Re: Reverse slideUp/slideDown

2009-09-04 Thread Karl Swedberg
with animate and scrollTop? Yes. Set the element's position and bottom properties in CSS. See here for details: http://www.learningjquery.com/2009/02/slide-elements-in-different-directions --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: How to detect window is scroll or not using window.scrollTo()

2009-09-01 Thread Karl Swedberg
e scrollTop property is part of IE's DHTML object model, not a w3c spec. Gecko and Webkit seem to implement it, so you should be relatively safe, but your mileage may vary on obscure browsers. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Sep 1, 2

[jQuery] Re: focus() killed by return false;

2009-08-27 Thread Karl Swedberg
/jquery-en/ . Then click the "Unsubscribe" button on the page that appears. To unsubscribe via email, send an email to jquery-en+unsubscr...@googlegroups.com --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: Any documentation for element.nodeIndex?

2009-08-27 Thread Karl Swedberg
On Aug 27, 2009, at 8:49 AM, Justin Dearing wrote: Hello, I was editing some javascript code yesterday that happened to use jquery. Part of the code selected two elements via jquery. Then the original author used nodeIndex to determine the position of each of these nodes in their parents. I co

[jQuery] Re: Var in the Succes: part of Ajax

2009-08-27 Thread Karl Swedberg
a couple ideas. 1. add "var" so you're not creating a global variable (unrelated to your question, but a good practice, nonetheless): var anc_pv = $('.pv_act').attr("pv"); 2. put another alert right after the var anc_pv = $ ('.pv_act').attr("pv"); var anc_pv = $('.pv_act').

[jQuery] Re: not working in IE6

2009-08-26 Thread Karl Swedberg
9.aspx#oATTable http://msdn.microsoft.com/en-us/library/ms536945%28VS.85%29.aspx#oATTable An alternative approach might be to convert the select element to something prettier: http://www.filamentgroup.com/lab/jquery_ui_selectmenu_an_aria_accessible_plugin_for_styling_a_html_select/ --Karl __

[jQuery] Re: focus() killed by return false;

2009-08-26 Thread Karl Swedberg
); $("#login a").hide("slide", null, 500, loginCallback); }); }); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Aug 26, 2009, at 1:20 AM, shenry wrote: I have an anchor tag that, when clicked, reveals a login form.

[jQuery] Re: Looping through all unchecked checkboxes - how to do it?

2009-08-26 Thread Karl Swedberg
Hi Brett, this should do it. $(':checkbox').each(function() { this.disabled = +this.value > diff; }); :-) --Karl ____ Karl Swedberg www.englishrules.com www.learningjquery.com On Aug 26, 2009, at 3:42 PM, Brett DeWoody wrote: I have a function which is exec

[jQuery] Re: Access elements in dynamically loaded markup

2009-08-23 Thread Karl Swedberg
This FAQ topic should answer your question: http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_Ajax_request.3F If you still have problems after reading through it and trying one of the many solutions, let us know. --Karl Karl Swedberg

[jQuery] Re: new site on the "sites using jquery list?

2009-08-22 Thread Karl Swedberg
Go for it. It's a wiki, so you just have to sign up with username/ password. There is a 24-hour waiting period before you can post something after you've registered (to help reduce spam). --Karl ____ Karl Swedberg www.englishrules.com www.learningjquery.com On Aug 20,

[jQuery] Re: JQuery ClueTip Arrow Issue

2009-08-21 Thread Karl Swedberg
"out of the box." You could turn arrows off and then put your own within the #cluetip div. Shouldn't be too hard with a little CSS --Karl ____ Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: plugin problem with jQuery 1.3.2

2009-08-14 Thread Karl Swedberg
ll, so no guarantees. But it might at least give you a head start if you need to hack it some more yourself. If you want to try it, you can find it here: http://plugins.learningjquery.com/jquery.minmax.js Let me know how it goes. --Karl ____ Karl Swedberg www.englishrules.com www.learn

[jQuery] Re: FadeOut - Pause - FadeIn (Force jQuery to wait for fade event to complete before continuing)

2009-08-12 Thread Karl Swedberg
matter. It will take 2000ms trying to do it. Then it will fade the element back in. --Karl ____ Karl Swedberg www.englishrules.com www.learningjquery.com On Aug 11, 2009, at 7:31 PM, webhead81 wrote: My apologies is this is a double post - It seems Google Groups just dropped my l

[jQuery] Re: refactoring help/ suggestions?

2009-08-11 Thread Karl Swedberg
y: 'toggle'}, speed, easing, callback); }; $(document).ready(function() { $('p.a, p.b, p.c').hide(); var hash = {'one': 'a', 'two': 'b', 'three': 'c'} $('.one, .two, .three').hover(function() { $('a

[jQuery] OT: 3-day jQuery class next week

2009-08-10 Thread Karl Swedberg
deafoundry.info/jquery . Contact information is at http://ideafoundry.info/contact . Also, feel free to contact me off list if you have any questions. Cheers, --Karl ____ Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: Detect Capital Letters

2009-08-09 Thread Karl Swedberg
haha, you got me! so, yeah, it would be a bit more work. point taken! :-p --Karl On Aug 9, 2009, at 1:55 PM, Michael Geary wrote: That would work for you and for me, but would it work for everyone? alert( isUpperCase('JÖRN') ? 'good' : 'bad' ); // ;

[jQuery] Re: Regular Expression validation

2009-08-09 Thread Karl Swedberg
you store the result of the regex test in a variable and use that variable as the condition. But that part is irrelevant to what I was saying to Michael. Am I missing something, or have we interpreted the OP's request differently? --Karl Karl Swedberg www.englishrules.com www

[jQuery] Re: Regular Expression validation

2009-08-08 Thread Karl Swedberg
or lower case letter from a to z. The OP wanted to disallow numbers, so this should do it: if ( !(/\d/).test("string") ) { return 'valid'; } else { return 'not valid'; } --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: Detect Capital Letters

2009-08-08 Thread Karl Swedberg
n't be too much work. Wouldn't this do it? function isUpperCase( string ) { return /^[A-Z]+$/.test(string); } --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: Replace string characters using jQuery

2009-08-05 Thread Karl Swedberg
e and set the global (g) flag: var test = searchval.replace(/ /g,'+') But that isn't much better. What you really ought to use is encodeURIComponent: var test = encodeURIComponent(searchval); see how that works. --Karl Karl Swedberg www.englis

[jQuery] Re: Live function being weird

2009-08-05 Thread Karl Swedberg
() method does not currently support the following event types: submit, change, focus, blur, mouseenter, and mouseleave. --Karl ____ Karl Swedberg www.englishrules.com www.learningjquery.com On Aug 5, 2009, at 4:44 AM, Jaggi wrote: I have two snippets of code: This one doesn&

<    1   2   3   4   5   6   7   8   9   10   >