[jQuery] Re: Please help me

2009-03-17 Thread Karl Swedberg
This should get you started: http://www.learningjquery.com/ http://www.jqueryfordesigners.com/ http://docs.jquery.com/Tutorials http://net.tutsplus.com/category/tutorials/javascript-ajax/ --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 17, 2009, at 3:30

[jQuery] Re: exclude input types

2009-03-16 Thread Karl Swedberg
with type=hidden, try this: $('#tabs input[type!=hidden]').each(function(){ //functionality }); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: busy indicator

2009-03-16 Thread Karl Swedberg
Take a look at Mike Alsup's BlockUI plugin: http://malsup.com/jquery/block/ --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 16, 2009, at 1:43 PM, miro wrote: is there any available plugin which works for showing busy indicator ? I am looking

[jQuery] Re: JavaScript Loading Question

2009-03-16 Thread Karl Swedberg
This is the best way I've found to initially hide content with JavaScript without having the flash of unstyled content. http://www.learningjquery.com/2008/10/1-awesome-way-to-avoid-the-not-so-excellent-flash-of-amazing-unstyled-content --Karl Karl Swedberg www.englishrules.com

[jQuery] Re: dropShadow intermittent Height/Width issue

2009-03-16 Thread Karl Swedberg
() --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 16, 2009, at 12:17 PM, micha...@gmail.com wrote: I'm having an issue with a drop shadow on a table element. Sometimes when the page loads, the drop shadow is the wrong width and height for the table. I can't

[jQuery] Re: loop through div

2009-03-16 Thread Karl Swedberg
); })(); }); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 16, 2009, at 10:23 PM, Tom Shafer wrote: im getting too much recursion in firebug, any thought? On Mar 16, 7:26 pm, ricardobeat ricardob...@gmail.com wrote: jQuery.fn.showLoop = function(i){ var i = i || 0

[jQuery] Re: SlideUp() Question

2009-03-12 Thread Karl Swedberg
-elements-in-different-directions --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 12, 2009, at 10:53 AM, kellyjandr...@sbcglobal.net wrote: Let me preface this by stating, showing the code is not going to be possible, nor do I think it to be needed. I

[jQuery] Re: simple function not working on IE

2009-03-12 Thread Karl Swedberg
One problem I see is that you're trying to set display: inline-table, but IE doesn't recognize that value for the display property. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 12, 2009, at 11:43 AM, Andri wrote: Look at this : http

[jQuery] Re: Sliding list items won't stop sliding

2009-03-12 Thread Karl Swedberg
Hi Mike, I think this article should help with the never-ending sliding: http://www.learningjquery.com/2009/01/quick-tip-prevent-animation-queue-buildup --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 12, 2009, at 8:03 AM, mike wrote: Hi, using

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

2009-03-10 Thread Karl Swedberg
this way, just that it's possible. --Karl On 9 Mrz., 04:13, Karl Swedberg k...@englishrules.com wrote: having the input inside the label is perfectly valid. http://www.w3.org/TR/html401/interact/forms.html#h-17.9.1 To associate a label with another control implicitly, the control element

[jQuery] Re: filter(fn)

2009-03-10 Thread Karl Swedberg
if(($out).filter(':contains(Invalid)')) That is always going to be true since it returns a jQuery object regardless of whether there are any matched elements. Try this instead: if(($out).filter(':contains(Invalid)').length) --Karl Karl Swedberg www.englishrules.com

[jQuery] Re: A simple jQuery script that throws errors and fails in IE6-7. Thoughts?

2009-03-09 Thread Karl Swedberg
On Mar 9, 2009, at 4:05 PM, Thomas Allen wrote: Oh, I thought that was a recommended practice to reduce bugs when changing the number of items in an object. Thanks! It is a recommended practice in PHP, but not in JavaScript. --Karl On Mar 9, 9:58 am, pete higgins phigg...@gmail.com

[jQuery] Re: Stripping last html tag within an area.

2009-03-08 Thread Karl Swedberg
Do you just want to remove the p and /p tags? Or do you want to remove the paragraph along with along with all of its contents? If the latter, then, yes, use ('article p:last').remove(); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 8, 2009, at 7

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

2009-03-08 Thread Karl Swedberg
element. The label itself may be positioned before or after the associated control. I don't prefer doing it this way for my own sites, but it's not incorrect. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 8, 2009, at 9:49 PM, David Muir wrote

[jQuery] Re: Regular Expression that works everywhere but in jQuery

2009-03-07 Thread Karl Swedberg
. ;) This should work: scrubbed = code.html().replace(/!--.*?--/gi,); It might be kind of slow if you throw a ton of html at it. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: Slide : Making it go from right to left

2009-03-06 Thread Karl Swedberg
Hi Martin, Maybe this tutorial will help: http://www.learningjquery.com/2009/02/slide-elements-in-different-directions --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 6, 2009, at 4:51 AM, Martin wrote: Hello All, I am not sure if this question has

[jQuery] Re: lose focus on txtbox and div, do something

2009-03-05 Thread Karl Swedberg
) { $(this).attr('tabIndex', index+1); }); I wouldn't try this with just div in the selector, though, if you have a fairly complex page. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: lose focus on txtbox and div, do something

2009-03-05 Thread Karl Swedberg
On Mar 5, 2009, at 11:57 PM, mkmanning wrote: Which is why I said short answer. Long answer: You can set a tabindex for a div, and you don't need to resort to JavaScript to do it: of course not. I was assuming that the tabindex wasn't already in the html. But doing so is not a good

[jQuery] Re: [Cluetip] Anchor text as title

2009-03-04 Thread Karl Swedberg
(); }); }); If you want to set some options, you can do that in the second argument: $(document).ready(function() { $('a').cluetip(function(el) { return $(el).text(); }, { sticky: true }); }); Hope that helps. --Karl Karl Swedberg www.englishrules.com

[jQuery] Re: jQuery UI Question - Tool tip

2009-03-03 Thread Karl Swedberg
themeRoller scoping. Here is a quick demo I put together: http://plugins.learningjquery.com/cluetip/demo/ui.html Maybe that will do in a pinch. (I'm offline the rest of the day, so won't be able to reply anymore to this thread until late tonight.) --Karl Karl Swedberg

[jQuery] Re: History/Remote - problem with jquery 1.3.1

2009-03-01 Thread Karl Swedberg
The first thing I would do is check for any instances of the old xpath syntax for attribute selectors: [...@attribute]. For example: a...@href $ ... ] --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 1, 2009, at 9:00 PM, kingofthelowend wrote: I

[jQuery] Re: How to find a parent

2009-03-01 Thread Karl Swedberg
On Mar 2, 2009, at 12:07 AM, Rick Faircloth wrote: Only up the DOM, huh? Yes, that's right. http://docs.jquery.com/Traversing/closest#expr It's a convenience method for those who want to roll their own event delegation rather than use .live() --Karl Karl Swedberg

[jQuery] Re: problems extracting links and redirecting to function

2009-02-28 Thread Karl Swedberg
I think it would be a lot simpler to rely on jQuery's implicit iteration: $( #wiki_content a ).click(function(event) { event.preventDefault(); var link = $(this).text(); searchDelay( link ); }); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 28

[jQuery] Re: problems extracting links and redirecting to function

2009-02-28 Thread Karl Swedberg
Ah, in that case you might want to use the .live() binding: $( #wiki_content a ).live('click', function(event) { event.preventDefault(); var link = $(this).text(); searchDelay( link ); }); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 28, 2009

[jQuery] Re: Advertising in jquery docs: normal?

2009-02-28 Thread Karl Swedberg
I'm a co-author of it). In fact, I don't recommend that people buy the jQuery Reference Guide because it's out of date. thanks again, --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 28, 2009, at 7:42 PM, Alexandre Plennevaux wrote: Hi there, Since

[jQuery] Re: Advertising in jquery docs: normal?

2009-02-28 Thread Karl Swedberg
Please be assured that I had nothing to do with the placement of that link (even though I'm a co-author of it). And by co-author of it I meant co-author of the book. --Karl

[jQuery] Re: Newbie clueTip Plugin style removal

2009-02-27 Thread Karl Swedberg
the cluetipClass option, it appends that class to cluetip-, so you'll have to use the combination; hence, cluetip-fdFaq. Hope that helps. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 27, 2009, at 1:34 PM, alanfluff wrote: Hi cleverer people than me

[jQuery] Re: Help please with toggling a class

2009-02-27 Thread Karl Swedberg
, callback) { return this.animate({opacity: 'toggle'}, speed, easing, callback); }; $(function() { $('a.aboutlink').click(function() { $('.aboutbox').fadeToggle(); $(this).toggleClass('yourClass'); return false; }); }); --Karl Karl Swedberg

[jQuery] Re: $('#foo p') or $('p', $('#foo'))

2009-02-24 Thread Karl Swedberg
Hi Stephan, Thanks for doing this testing! Would you mind profiling $ ('#foo').find('p') as well? I suspect it will be roughly equivalent to $('p', $('#foo')) Cheers, --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 24, 2009, at 8:28 AM, Stephan

[jQuery] Re: Expander Plugin and z-index ie7 Issues

2009-02-24 Thread Karl Swedberg
it position: relative). Hope that helps. --Karl Karl Swedberg www.learningjquery.com www.englishrules.com On Feb 23, 2009, at 2:32 PM, Jessica Hammer wrote: Hello JQuery Geniuses I am using Karl Swedberg's expander plugin as a expand/collapse for a contact form. However

[jQuery] Re: Stopping emails

2009-02-24 Thread Karl Swedberg
ok, I just set your Subscription type to No Email. Let me know if you run into any more problems. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 24, 2009, at 8:37 AM, sunshine gerodias wrote: can anyone also help me with mine? it's flooding my email

[jQuery] Re: Plugin hosting?

2009-02-24 Thread Karl Swedberg
There is no official cdn for plugins, except for jQuery UI, which is hosted by Google as well --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 24, 2009, at 9:03 AM, Oskar Rough wrote: Hi, I'm really glad it's possible to use the Google hosted jQuery

[jQuery] Re: My published plugins are not appearing in the jQuery Plugin list

2009-02-24 Thread Karl Swedberg
No problem, Dave. Glad I could help. And congrats on the plugins. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 24, 2009, at 2:57 PM, Dave Stewart wrote: Hooray! That's it sorted. Thanks again Karl :)

[jQuery] Re: My published plugins are not appearing in the jQuery Plugin list

2009-02-23 Thread Karl Swedberg
Hmm. I just took a look at your Form Highlight plugin. I'm guessing that it's not showing up in the list because you don't have any published releases for it: http://plugins.jquery.com/node/2736/release --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: preventing redirection when opening modal dialog box

2009-02-23 Thread Karl Swedberg
Without seeing the page, it's a little hard to guess, but is it possible that you have more than one element with either an id or a name of btnAddSession? --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 23, 2009, at 12:56 PM, bittermonkey wrote

[jQuery] Re: Stopping emails

2009-02-23 Thread Karl Swedberg
You can go to this page to edit your membership settings: http://groups.google.com/group/jquery-en/subscribe --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 23, 2009, at 6:04 PM, Syed Munir wrote: Can you please do it to mine too. I'm getting way too

[jQuery] Re: Stopping emails

2009-02-23 Thread Karl Swedberg
...@englishrules.com To: jquery-en@googlegroups.com Subject: [jQuery] Re: Stopping emails Date: Mon, 23 Feb 2009 18:17:56 -0500 You can go to this page to edit your membership settings: http://groups.google.com/group/jquery-en/subscribe --Karl Karl Swedberg www.englishrules.com

[jQuery] Re: jquery upgrade issue

2009-02-22 Thread Karl Swedberg
Hi there, The problem could be that the script is using an older version of jQuery UI as well. In order for it to work with jQuery 1.3.x you'll need to update it to at least 1.6rc6. http://ui.jquery.com/download --Karl Karl Swedberg www.englishrules.com

[jQuery] Re: how can i close cluetips without using crose button.

2009-02-21 Thread Karl Swedberg
In the submit handler of the form, you could trigger a click on the close link. Something like this: $('yourform').submit(function() { // do your business here. $('#cluetip-close').trigger('click') }); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: .click to start dropdown, hover out to clear (mixing the two)

2009-02-18 Thread Karl Swedberg
Hi Pete, You don't need to use .hover() with an empty function. You can use .mouseleave() in jQuery 1.3.x or .bind('mouseleave') in 1.2.6. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 18, 2009, at 12:28 AM, pedalpete wrote: Ok, actually got

[jQuery] Re: save pointer to element in a cookie

2009-02-17 Thread Karl Swedberg
(' + $.cookie('mylink') + ')') // .doSomething(); } --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 16, 2009, at 10:14 PM, junk.mail...@gmail.com wrote: I need to save state for a nav in a cookie. I've managed to learn enough jquery so far to be able

[jQuery] Re: class weirdness in loaded XML?!?

2009-02-16 Thread Karl Swedberg
, and the closing mark is to the right of the closing bracket. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 16, 2009, at 11:15 AM, Michael Lawson wrote: You should wrap your string in ' so your code would be $('span[class*='mycategory'],xml).length cheers

[jQuery] Re: A Way to view currently bound event handlers

2009-02-16 Thread Karl Swedberg
This Visual Event bookmarklet might help: http://www.sprymedia.co.uk/article/Visual+Event --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 16, 2009, at 1:43 PM, jtrim wrote: Does anyone know if there is a way to view the function names

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

2009-02-16 Thread Karl Swedberg
a link to a test page would help us diagnose your problem. or at least a little of your code. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 16, 2009, at 3:58 PM, Dean C. Reed wrote: Or is there a common work around? I spent a few days getting

[jQuery] Re: Superfish - Still Need Help - Vertical Menu

2009-02-16 Thread Karl Swedberg
First thing to do is deal with the conflict between Mootools and jQuery. Firebug reports this on page load: jQuery(ul.sf-menu).superfish is not a function See this: http://docs.jquery.com/Using_jQuery_with_Other_Libraries --Karl Karl Swedberg www.englishrules.com

[jQuery] Re: Expander and Dynamic DIV content

2009-02-15 Thread Karl Swedberg
Yes, it probably has to do with the content being added dynamically. Can you take a look at this FAQ page and see if it helps solve your question? http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request.3F thanks, --Karl Karl

[jQuery] Re: Is there a way to make a textarea that auto expands as needed?

2009-02-12 Thread Karl Swedberg
If Ricardo's solution doesn't work for you, you could try Brandon Aaron's plugin. http://github.com/brandonaaron/jquery-expandable/tree/master --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 12, 2009, at 8:14 AM, Ricardo Tomasi wrote: Did you skip

[jQuery] Re: cluetip ajax issue/question

2009-02-12 Thread Karl Swedberg
. return data; }; Or, to do it for a specific call to .cluetip(), do this: $('your selector').cluetip({ ajaxProcess: function(data) { //do something else with the data if you want. return data; } }); Hope that helps. --Karl Karl Swedberg www.englishrules.com

[jQuery] Re: IE7 Zoom and the cluetip plugin

2009-02-11 Thread Karl Swedberg
IE7 reports its offsets. Would be interested to hear if others have found solutions. In the meantime, I do some research of my own. Thanks for reporting the problem. Sorry I don't have a quick fix for you. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: Tutorials on jQuery

2009-02-11 Thread Karl Swedberg
spam. :( Sorry it got through. Just banned the email address. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 11, 2009, at 10:11 AM, andy wrote: A basic introduction to jQuery and the concepts that you need to know to use

[jQuery] Re: typo in docs for post entry

2009-02-11 Thread Karl Swedberg
Hmm. that page isn't the official page for $.post(). I just set up a redirect for it so it would go to this one instead: http://docs.jquery.com/Ajax/jQuery.post#urldatacallbacktype --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 10, 2009, at 11:18 PM

[jQuery] Re: Delayed Checkboxes in IE

2009-02-10 Thread Karl Swedberg
is necessary here. click should work for both mouse and key interaction. actually, click would probably suffice without change as well. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: Errors

2009-02-10 Thread Karl Swedberg
hmmm. I got no errors here on FF3 Mac. Took a very long time for the page to load, but didn't see any errors. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 10, 2009, at 12:36 PM, atomk wrote: Thanks for looking. In FF3 on a Mac I get tons

[jQuery] Re: selector to return the number of rows in a table before the row I just selected

2009-02-09 Thread Karl Swedberg
Oh yeah! Good point, Rob. I always forget these DOM properties. Thanks for the reminder. :) --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 9, 2009, at 2:37 AM, RobG wrote: On Feb 9, 4:23 am, pantagruel rasmussen.br...@gmail.com wrote: Hi, I am

[jQuery] Re: selector to return the number of rows in a table before the row I just selected

2009-02-08 Thread Karl Swedberg
You could use prevAll() $('#myrow').prevAll().length; --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 8, 2009, at 2:30 PM, James wrote: I did a search but I could only find a selector that selected after something: http://docs.jquery.com/Selectors

[jQuery] Re: selector to return the number of rows in a table before the row I just selected

2009-02-08 Thread Karl Swedberg
Oops. Sorry, I didn't see Ricardo's reply before posting. In any case, there's no need to filter the .prevAll() with 'tr', since no other element is allowed as a sibling of a tr. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 8, 2009, at 6:06 PM

[jQuery] Re: how do I invoke a cluetip from code?

2009-02-07 Thread Karl Swedberg
Hmm. If you have a link or some element that would fire up the cluetip normally, you can trigger the event that is set to invoke it: $('yourelement').triggerHandler('mouseover'); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 7, 2009, at 6:02 AM

[jQuery] Re: live works in IE6?

2009-02-07 Thread Karl Swedberg
could be a number of things. do you have a test page up somewhere that we can look at? --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 6, 2009, at 5:19 PM, Dhana wrote: On a project I am currently working on, I decided to test out the new live

[jQuery] Re: list traversing

2009-02-06 Thread Karl Swedberg
Just for the record, if you weren't able to modify the html, you could use my Text Children plugin, which, unlike .text(). isn't recursive: http://plugins.learningjquery.com/textchildren/ --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 5, 2009, at 5

[jQuery] Re: What is difference between ADO and RDO

2009-02-06 Thread Karl Swedberg
sorry about that, folks. The user is now banned.. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 6, 2009, at 1:36 AM, Michael Geary wrote: And let me Google that for you: http://groups.google.com/groups?q=agile.scrapping%40gmail.com -Mike From

[jQuery] Re: Click Links in the Nnavigation Bar

2009-02-04 Thread Karl Swedberg
a close look at Sizzle, so my understanding of it could be off. Please, anyone, feel free to correct me. Cheers, --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: toggle checkbox when clicking td

2009-02-04 Thread Karl Swedberg
On Feb 2, 2009, at 10:37 PM, Karl Swedberg wrote: On Feb 2, 2009, at 6:47 PM, Slafs wrote: Karl thanks for your tutorial. But it seems that examples for adding the selected class doesn't work when I click the row but only the checkbox itself Well, that is very strange. It works

[jQuery] Re: toggle checkbox when clicking td

2009-02-03 Thread Karl Swedberg
Hello again, Thanks a lot for pointing out the problem in the tutorial. I have fixed it to work for 1.3.1: http://www.learningjquery.com/2008/12/quick-tip-click-table-row-to-trigger-a-checkbox-click#update1 --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: toggle checkbox when clicking td

2009-02-03 Thread Karl Swedberg
, that was exactly the problem. I updated the post with a couple workarounds, but I'd love to get your feedback :) ... http://www.learningjquery.com/2008/12/quick-tip-click-table-row-to-trigger-a-checkbox-click#update1 --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: clueTip - can you parse out heading when reading from external file?

2009-02-03 Thread Karl Swedberg
Hi Eric, If you get rid of the splitTitle option, the plugin will just use the title attribute of #popup1 for the clueTip title, by default. You can also set it to a different attribute with the titleAttribute option if you want. --Karl Karl Swedberg www.englishrules.com

[jQuery] Re: Performance suggestion: Use object hash instead of regexp

2009-02-03 Thread Karl Swedberg
/ attended to more quickly there. Thanks! --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: toggle checkbox when clicking td

2009-02-03 Thread Karl Swedberg
like the last style rule of that css file being on a single line. Totally choked on it. Anyway, all should be well again, if you wouldn't mind taking another look. :) --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: Complex selector: bug on IE

2009-02-02 Thread Karl Swedberg
Plugin. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: the ready not working properly

2009-02-02 Thread Karl Swedberg
, especially on WebKit-based browsers such as Safari. http://docs.jquery.com/Events/ready --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Mon, Feb 2, 2009 at 3:57 PM, thomtomdup thomtom...@hotmail.com wrote: Hello. I discovered some time ago that in browsers

[jQuery] Re: access table row[y] cell[x]

2009-02-02 Thread Karl Swedberg
To set the html contents of matched elements using jQuery's .html() method, you would do it like this: $(#myTable tr:eq(4) td:eq(3)).html(new text) http://docs.jquery.com/Attributes/html#val --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 2, 2009

[jQuery] Re: Odd IE7 problem with (I think) a selector and LiveQuery.

2009-02-02 Thread Karl Swedberg
. I'm not sure what the workaround is for this. Hope someone else can help you out here. If you don't have a huge number of inputs, you could bind to the inputs themselves. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 2, 2009, at 12:01 PM, Dan wrote

[jQuery] Re: toggle checkbox when clicking td

2009-02-02 Thread Karl Swedberg
to investigate. (and it doesn't work at all on Konqueror). I don't have Konqueror, but I'll take your word for it. Wonder if it's related to the other issue. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: Click Links in the Nnavigation Bar

2009-02-01 Thread Karl Swedberg
)). --Karl On Feb 1, 12:02 am, Pedram pedram...@gmail.com wrote: I just had some Doubt , the performance is great On Jan 31, 11:54 am, Karl Swedberg k...@englishrules.com wrote: Hi Pedram, I agree with Nic. Especially if you're only dealing with 4 elements, binding directly on them seems like

[jQuery] Re: not selector

2009-02-01 Thread Karl Swedberg
Try $('div.first:not(.second)') and $('li:not(.jq-first)') (without tag names in the :not() selector) --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 1, 2009, at 12:40 PM, Javier Martinez Fernandez wrote: I'm having some problems using

[jQuery] Re: toggle checkbox when clicking td

2009-02-01 Thread Karl Swedberg
Yeah, what Dave said. Also, I wrote a tutorial a couple months ago about this very topic: http://www.learningjquery.com/2008/12/quick-tip-click-table-row-to-trigger-a-checkbox-click --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 1, 2009, at 4:20 PM

[jQuery] Re: Large images IE ready event

2009-01-31 Thread Karl Swedberg
Hi Alex, Which version of jQuery are you using? If it's 1.3.1, there was a regression that caused this problem. This has been fixed in the svn version. See the bug report here: http://dev.jquery.com/ticket/3988 --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: Click Links in the Nnavigation Bar

2009-01-31 Thread Karl Swedberg
optimizations you could implement, if necessary. Something like this: var $navBarLinks = $('#your-nav-bar-id a'); $navBarLinks.click(function() { $navBarLinks.removeClass('active'); $(this).addClass('active'); }); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: plugins.jquery.com does not have 1.3.x

2009-01-31 Thread Karl Swedberg
(unless someone else beats me to it). --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jan 31, 2009, at 12:02 PM, Ariel Flesler wrote: Ping Mike Hostetler about this. I told him about this and he did indeed added it. Maybe he forgot to add it somewhere else

[jQuery] Re: Selecting parent ID

2009-01-31 Thread Karl Swedberg
If you want the id of the parent table, you can get it this way: $(this).parents('table')[0].id --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jan 31, 2009, at 4:57 PM, Christoffer wrote: Hi everyone, I have a lot of tables, like this: table id

[jQuery] Re: Damn ie7!

2009-01-31 Thread Karl Swedberg
Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: None of the tutorials I try work for jquery

2009-01-29 Thread Karl Swedberg
if any errors are reported in the console. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: Unobtrusive javascript with jQuery

2009-01-29 Thread Karl Swedberg
? You can get around this problem pretty easily: http://www.learningjquery.com/2008/10/1-awesome-way-to-avoid-the-not-so-excellent-flash-of-amazing-unstyled-content --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: Opening a div causes jump to top of page

2009-01-29 Thread Karl Swedberg
) { event.preventDefault(); $(this).parents().find('.pPictureStrip').toggle(); }); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: cluetip with an dynamic aspx content

2009-01-28 Thread Karl Swedberg
Hi Christian, Sounds like the problem is on the server end of things? I really don't know, given the little information that I have. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jan 28, 2009, at 3:45 AM, chrs wrote: do anyone have a solution

[jQuery] Re: jQuery 1.3.x XPath

2009-01-28 Thread Karl Swedberg
at http://plugins.jquery.com/project/xpath/ . Is that no longer working for you? --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: Reversing the SlideUp and SlideDown functions to slide from the bottom and not the top

2009-01-28 Thread Karl Swedberg
at the bottom of the viewport, you'll see the close bar slide up into view. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: How to wait for load() to finish executing

2009-01-28 Thread Karl Swedberg
? -Mike Hi Adam, I'm with Ricardo and Mike: Put the code in the callback of the .load() method. Also, you might be better off using the onShow option than the onActivate one. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com From: Ricardo Tomasi You can

[jQuery] Re: None of the tutorials I try work for jquery

2009-01-28 Thread Karl Swedberg
Karl Swedberg www.englishrules.com www.learningjquery.com On Jan 28, 2009, at 5:33 PM, surreal5335 wrote: I am just starting into jquery and I ham having the hardest trying to get anything to happen with my code. I have tried several tutorials, copied and pasted and still nothing happens

[jQuery] Re: SlideToggleUp, this.options.curAnim is undefined

2009-01-27 Thread Karl Swedberg
. http://docs.jquery.com/UI/Effects ), and it won't conflict with jQuery core. jQuery core does not have a SlideToggleUp method. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jan 27, 2009, at 4:00 AM, Anders Viklund wrote: Hi, I am running into the error

[jQuery] Re: Exclude checkbox

2009-01-27 Thread Karl Swedberg
checkboxes: $(tr.Order).click(function(event){ if (event.target.type !== 'checkbox') { showOrderDetails(this.id); } }); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: How do I get the actual HREF of a link?

2009-01-26 Thread Karl Swedberg
Karl Swedberg www.englishrules.com www.learningjquery.com On Mon, Jan 26, 2009 at 7:14 AM, Jumpfroggy rocketmonk...@gmail.com wrote: Here's the short version: I have a link: a id=testlink href=page.htmlpage.html/a But when I do this: alert($('#testlink')[0].href); I get

[jQuery] Re: Problem with animate callback

2009-01-26 Thread Karl Swedberg
() { $(this).html('a href=# class=clickedclicked/a') .find('a.clicked').click(showAlert); }); } function showAlert() { alert(Display me!); return false; } --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: Working with Arrays

2009-01-26 Thread Karl Swedberg
Hi Stefan, You could use the core JavaScript .splice() method: https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array/splice --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jan 26, 2009, at 9:20 AM, Stefan Sturm wrote: Hello

[jQuery] Re: cluetip with an dynamic aspx content

2009-01-26 Thread Karl Swedberg
Hi there, That message occurs when there is an ajax error. Can you use Firebug to see what error is being returned? --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jan 26, 2009, at 10:08 AM, chrs wrote: hi! i have a problem with ajax-loaded contents

[jQuery] Re: How do I get the actual HREF of a link?

2009-01-26 Thread Karl Swedberg
My point exactly. --Karl On Jan 26, 2009, at 10:10 AM, seangates wrote: I've used this a hundred times: $('#testlink').attr('href'); Don't make jQuery more complicated than it has to be. -- Sean On Jan 26, 7:32 am, Karl Swedberg k...@englishrules.com wrote: On Jan 26, 2009, at 12:56

[jQuery] Re: Any way to get all attibutes of a node?

2009-01-26 Thread Karl Swedberg
the trick in Firefox. Of course, you'll need to do something other than console.log() with the results if you're in IE. Hope that helps get you started. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jan 26, 2009, at 3:52 PM, David wrote

[jQuery] Re: tooltip - image preview does not respect window border

2009-01-26 Thread Karl Swedberg
Also, it looks like you're loading 2 copies of jQuery: jquery.js and jquery-1.1.3.1.pack.js That can't help matters. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jan 26, 2009, at 4:19 PM, Jörn Zaefferer wrote: You probably need to upgrade jQuery

[jQuery] Re: disable submit not working in IE7

2009-01-26 Thread Karl Swedberg
A couple things you might want to look at: 1. Does your button have type=submit ? It will need to if you want to submit with it in IE. 2. The disabled attribute value should be true, not true. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jan 26, 2009

[jQuery] Re: Bug in FAQs for checkboxes

2009-01-25 Thread Karl Swedberg
file a bug report if they're able to confirm the problem. Thanks so much, --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jan 25, 2009, at 2:21 AM, Greg Glockner wrote: Hi, it's worse than I originally thought. Put my sample code on a PHP server, and load

[jQuery] Re: Bug in FAQs for checkboxes

2009-01-25 Thread Karl Swedberg
:38 PM, Karl Swedberg wrote: Hi Greg, Since this sounds like it could be a bug in the jQuery source code, not just in the FAQs, would you mind posting what you've discovered to the jquery-dev list (http://groups.google.com/group/jquery-dev)? It'll probably get more attention

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