[jQuery] using doc.ready in an external .js file

2008-07-08 Thread kgosser
Here's what I'm not getting about jQuery from a novice point of view. Let's say I have this: script type=text/javascript $(document).ready(function() { $(#switcherBtn).click(function(){

[jQuery] Re: using doc.ready in an external .js file

2008-07-08 Thread kgosser
Bingo, that was it. Big time duh noob moment :) On Jul 8, 4:50 pm, Carl Von Stetten [EMAIL PROTECTED] wrote: kgosser, Are you loading jQuery.js after your main.js file? If you are, try loading jQuery first, as it must be present before using any of its functions. Carl kgosser wrote

[jQuery] Any plug-ins that deal with formatting text?

2008-09-23 Thread kgosser
Hey all, I'm looking for a jQuery plug-in that will help with formatting text in a textarea. Something like Wordpress' or Gdoc's formatting bar. Basically I want to be able to bold/italicize/etc. text for users without them having to understand HTML. Any direction to an existing plug-in would

[jQuery] Re: Any plug-ins that deal with formatting text?

2008-09-24 Thread kgosser
: http://plugins.jquery.com/search/node/wysiwyg+type%3Aproject_project - Richard On Tue, Sep 23, 2008 at 3:09 PM, kgosser [EMAIL PROTECTED] wrote: Hey all, I'm looking for a jQuery plug-in that will help with formatting text in a textarea. Something like Wordpress' or Gdoc's formatting bar

[jQuery] Check if an element DOESN'T have a class

2008-10-21 Thread kgosser
Hey all, I understand how hasClass() works, but I'm trying to figure out how to use it to see if an element DOESN'T have a class. I want to check if the class doesn't exist, and if not then I'll add it. Do I use the older is() method? Just looking for the best way. Thanks!

[jQuery] How do I reset to the original positions of a sortable list? (using the .sortable() method)

2008-11-14 Thread kgosser
Hey all, I'm using this sortable method: http://docs.jquery.com/UI/Sortables/sortable Works perfect! I have one question though: When a certain action is taken by the user, I want to reset the original order of the lis in the list. I can't seem to figure out how to do that. Does anyone have any

[jQuery] Re: How do I reset to the original positions of a sortable list? (using the .sortable() method)

2008-11-17 Thread kgosser
Bumpity bump. Any tips? Thanks in advance! On Nov 14, 3:57 pm, kgosser [EMAIL PROTECTED] wrote: Hey all, I'm using this sortable method:http://docs.jquery.com/UI/Sortables/sortable Works perfect! I have one question though: When a certain action is taken by the user, I want to reset

[jQuery] Superfish does not work in IE6. Including Superfish's actual site.

2008-11-20 Thread kgosser
Hey John, I downloaded Superfish the other day and have been using it. It seems like the right kind of tool for the project I'm tackling, and I'm excited about it! It's been working like a charm so far, but today, I began to start evaluating it in IE6. I've ran into two very large issues: (1)

[jQuery] Is .parent() only one level up?

2009-01-28 Thread kgosser
Hello, pretty noob question here. I have this example: div form div labelExample/label input type=text/ /div /form /div Now let's say there's this jQuery: $(input).click(function(){ $(this).parent(form).css(color,#F00); }); My question: Does the

[jQuery] Re: Is .parent() only one level up?

2009-01-28 Thread kgosser
traversing like this: $(this).parent.().parent().prev().prev().prev().children(p.example); If you see what I'm getting at? On Jan 28, 11:42 am, jay jay.ab...@gmail.com wrote: http://docs.jquery.com/Traversing/closest On Jan 28, 12:39 pm, kgosser kgos...@gmail.com wrote: Hello, pretty noob

[jQuery] Beginner question: Using a function inside of an external plugin

2009-01-29 Thread kgosser
Hello all, This is a beginner question, and may well be more of a JavaScript answer than a jQuery answer. None the less, here is my example: I'm using the ultra lightweight Rich Text Editor plugin (http:// batiste.dosimple.ch/blog/posts/2007-09-11-1/rich-text-editor- jquery.html) It is called

[jQuery] Parsing an external RSS feed

2009-02-11 Thread kgosser
Hey all, I've done some digging for a jQuery RSS feed plugin. Some good ones out there. jFeed: http://www.hovinne.com/blog/index.php/2007/07/15/132-jfeed-jquery-rss-atom-feed-parser-plugin Other: http://www.levelfield.com/rss.html FeedReader:

[jQuery] Should $(document).ready() be external? And should it be placed at the bottom of the page?

2009-04-14 Thread kgosser
Hey all, Two quick questions for you. I couldn't find the answers while searching... This would be a great thing to add to the jQuery FAQ, by the way. (1) Is it advisable to place a page's $(document).ready() stuff in an external .js file? I've been doing a lot of reading and research on

[jQuery] Re: Should $(document).ready() be external? And should it be placed at the bottom of the page?

2009-04-14 Thread kgosser
[mailto:jquery...@googlegroups.com] On Behalf Of kgosser Sent: Tuesday, April 14, 2009 10:28 AM To: jQuery (English) Subject: [jQuery] Should $(document).ready() be external? And should it be placed at the bottom of the page? Hey all, Two quick questions for you. I couldn't find the answers while

[jQuery] passing more than 1 param via click()?

2009-04-16 Thread kgosser
Hey all, Not really sure how to ask this, so I'm sorry if my title is mis- leading. It is also why I wasn't able to find much searching, so I'm sorry if it's answered already. Basically, the code I inherited was this: a href=#drop class=edit-link onclick=

[jQuery] Re: passing more than 1 param via click()?

2009-04-16 Thread kgosser
I think you've misunderstood my question. I have two values that are only found in a loop in the HTML. They need to be passed to the single function in the document.ready(). I can't set them in the JavaScript. I have to find them somehow in the HTML. Whether I find them as hidden inputs or

[jQuery] Re: passing more than 1 param via click()?

2009-04-16 Thread kgosser
- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of kgosser Sent: Thursday, April 16, 2009 2:47 PM To: jQuery (English) Subject: [jQuery] passing more than 1 param via click()? Hey all, Not really sure how to ask this, so I'm sorry if my title is mis- leading

[jQuery] Re: passing more than 1 param via click()?

2009-04-17 Thread kgosser
that HTML code, is that right? Then why can't you generate this as part of your HTML page:     script type=text/javascript         // initialize some variables here     /script That *is* HTML code, isn't it? -Mike From: kgosser I have two values that are only found in a loop in the HTML

[jQuery] Re: passing more than 1 param via click()?

2009-04-19 Thread kgosser
Bump. I'm really looking for a solid tip here :). Thanks everyone. On Apr 17, 9:48 am, kgosser kgos...@gmail.com wrote: Here's a better example with HTML. See, I said it was hard to explain in the first place :). Ok, so basically think of this as a list of things where the HTML is always

[jQuery] So .change() doesn't work immediately in IE and we have to use .click(). But what about tab+spacebar users?

2009-04-20 Thread kgosser
Been looking up why my .change() isn't working in IE6/7. Found some good links online to explain that the .change() doesn't work in IE until AFTER you click or tab away from the radio button or checkbox for those browsers. Then, it was recommended to use .click() instead. Ok, fair enough, but

[jQuery] Any benefit to using event.preventDefault() over return false to cancel out an href click?

2009-04-20 Thread kgosser
Just curious if there is a best practice when choosing between $(a).click(function(){ // stuff return false; }); and $(a).click(function(){ // stuff event.preventDefault(); }); to cancel out the href of an anchor when clicked. Thanks in advance for the help.

[jQuery] Re: Any benefit to using event.preventDefault() over return false to cancel out an href click?

2009-04-20 Thread kgosser
e.preventDefault() and e.stopPropagation(). --John On Mon, Apr 20, 2009 at 3:20 PM, kgosser kgos...@gmail.com wrote: Just curious if there is a best practice when choosing between $(a).click(function(){   // stuff   return false; }); and $(a).click(function(){   // stuff

[jQuery] animate color over time using Timers plugin

2009-04-24 Thread kgosser
Hey all, I'm using the Timers plugin to do a count down timer. I like it a lot. I would like to enhance my UI by having the numbering being counted down transition from black to red as it gets closer to 0. The jQuery UI demo for animate seems to be what I need, but what I'm having trouble

[jQuery] Callback function after switchClass()

2009-05-12 Thread kgosser
Hey all, I'm trying to do some animation designs. Basically where I'm stuck is I have a bunch of things I want to do, but not until the duration of the switchClass method is complete. Looking at the UI documentation site, there doesn't appear to be a callback ability. Anyone have any tips on

[jQuery] Looking for that plugin that uses scrollTo for product demos...

2009-12-17 Thread kgosser
Hey all, I saw this site a few months ago that was showing off a new plugin which used the scrollTo tool to scroll through one screen shot. I can't seem to find it with a Google search, and I forgot to save it to my Delicious. Yikes! I was wondering if this rings a bell for anyone and if you

[jQuery] Re: Looking for that plugin that uses scrollTo for product demos...

2010-01-03 Thread kgosser
bump. any thoughts? On Dec 17 2009, 6:24 pm, kgosser kgos...@gmail.com wrote: Hey all, I saw this site a few months ago that was showing off a new plugin which used the scrollTo tool to scroll through one screen shot. I can't seem to find it with a Google search, and I forgot to save