Re: [jQuery] collapsing table - selecting rows between specific other rows
I had to work off of bare tags and eventually got it working. If you can assign unique ID's to each table header section and then unique classes to each grouping of subsection rows, it can be done. For the work I was doing on a phpBB, I could create unique ID's for each forum section and then I could traverse the rows and assign classes to each subsection based on its previous ID. I can forward you the code later tonight if its of interest. Shane On 2/27/07, rolfsf <[EMAIL PROTECTED]> wrote: > > Last week I posted this collapsing table: > > http://www.monkeypuzzle.net/testfiles/jquery/Accordion_table/index_2.html > > Building on that, I passed it over to developers who are implementing it in > .NET with ajax... they've discovered that .NET is having problems with the > tbody tags, and are wondering if there is another way of doing this. > > So, if we're forced to change the markup (who knows, maybe we'll yet find a > way), how would I modify the jquery to find all the rows between the > tr.group that gets clicked and the next tr.group, and toggle them? > > Right now, it's: > > $(function(){ > $('#list1 tbody tr.group').click(function() { > $(this).siblings().toggle(); > $(this).children('th').toggleClass("expand_group") > return false; > }) > }); > > > > > > -- > View this message in context: > http://www.nabble.com/collapsing-table---selecting-rows-between-specific-other-rows-tf3303419.html#a915 > Sent from the JQuery mailing list archive at Nabble.com. > > > ___ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > -- - Bender: "Amy, you like cute things so I baked you a pony." - http://www.reefs.org - Where reefkeeping begins on the internet. http://www.advancedaquarist.com - High quality, free monthly publication for the reef keeping hobbyist. http://www.aquaristcourses.org - Distance learning courses for the marine aquarist. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] swfIR: swf Image Replacement
Just saw this posted to del.icio.us this morning and thought it would be cool to see if it could be made using jQuery like sIFR was: swfIR (swf Image Replacement) http://www.swfir.com/ swfIR gives you the ability to apply an assortment of visual effects to any or all images on your website. -- - Bender: "Amy, you like cute things so I baked you a pony." - http://www.reefs.org - Where reefkeeping begins on the internet. http://www.advancedaquarist.com - High quality, free monthly publication for the reef keeping hobbyist. http://www.aquaristcourses.org - Distance learning courses for the marine aquarist. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Applyng classes to table rows?
Holy smoke, that's almost exactly what I'm trying to do. The only thing I'm wanting to do different is to make certain table rows collapsed by default when the page is first viewed, which is why I am applying classes to rows. May I use your code a bit in what I'm working on? Shane On 2/21/07, rolfsf <[EMAIL PROTECTED]> wrote: > > sorry - wrong url > http://www.monkeypuzzle.net/testfiles/jquery/Accordion_table/index_2.html > > Rolf > > > > rolfsf wrote: > > > > I could be wrong, but it sounds like you're trying to do something very > > similar to what I was working on yesterday - collapsing a set of rows by > > clicking on another row. You can see what I did (I didn't have to add any > > classes to the rows I was collapsing) : > > http://www.monkeypuzzle.net/testfiles/jquery/Accordion_table/ > > > > Rolf > > > > > > > > -- > View this message in context: > http://www.nabble.com/Applyng-classes-to-table-rows--tf3267824.html#a9087379 > Sent from the JQuery mailing list archive at Nabble.com. > > > ___ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > -- - Bender: "Amy, you like cute things so I baked you a pony." - http://www.reefs.org - Where reefkeeping begins on the internet. http://www.advancedaquarist.com - High quality, free monthly publication for the reef keeping hobbyist. http://www.aquaristcourses.org - Distance learning courses for the marine aquarist. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Applyng classes to table rows?
Awesome! Thanks for the code. :) I agree, I should not set the id as id's are unique identifiers. What I wanted to do was take the class name and id name from a previous and combine them into a new class name like so: from: class="row" id="blah-one" to: class="row blah-one" I modified your code a bit to achieve this. Thank you! Shane On 2/21/07, Kristinn Sigmundsson <[EMAIL PROTECTED]> wrote: > this does it for the classes > $("table tr:not([EMAIL PROTECTED])").each(function() { > $(this).attr("class", $(this).prev("[EMAIL > PROTECTED]").attr("class")); > }); > you might be able to get it down to one row... > > I would not recommend setting the IDs as you want, because the > standars clearly states that IDs should be UNIQUE! > > //Kristinn > > On 2/21/07, Shane Graber - jQuery <[EMAIL PROTECTED]> wrote: > > I'm stumped on how to do this with jQuery. I have a table like this: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I need to convert it to: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Basically, I want to look at each table row and if it does not have a > > class, I want to look up the table row by row till it finds a row that > > has a class and id set on it and then take that class and id and apply > > it to that row that does not have its class set. > > > > What I am attempting to do is to write a show/hide script for phpBB so > > that I can dynamically show/hide sections of the forum tree either > > collapsed or expanded. So far I have been successful at applying a > > class and id to each table row section but not the rows directly > > beneath it yet. > > > > Any help would be appreciated. Thanks! > > > > Shane > > > > -- > > - > > Bender: "Amy, you like cute things so I baked you a pony." > > - > > > > http://www.reefs.org - Where reefkeeping begins on the internet. > > http://www.advancedaquarist.com - High quality, free monthly publication for > > the reef keeping hobbyist. > > http://www.aquaristcourses.org - Distance learning courses for the > > marine aquarist. > > > > ___ > > jQuery mailing list > > discuss@jquery.com > > http://jquery.com/discuss/ > > > > ___ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > -- - Bender: "Amy, you like cute things so I baked you a pony." - http://www.reefs.org - Where reefkeeping begins on the internet. http://www.advancedaquarist.com - High quality, free monthly publication for the reef keeping hobbyist. http://www.aquaristcourses.org - Distance learning courses for the marine aquarist. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Applyng classes to table rows?
I'm stumped on how to do this with jQuery. I have a table like this: I need to convert it to: Basically, I want to look at each table row and if it does not have a class, I want to look up the table row by row till it finds a row that has a class and id set on it and then take that class and id and apply it to that row that does not have its class set. What I am attempting to do is to write a show/hide script for phpBB so that I can dynamically show/hide sections of the forum tree either collapsed or expanded. So far I have been successful at applying a class and id to each table row section but not the rows directly beneath it yet. Any help would be appreciated. Thanks! Shane -- - Bender: "Amy, you like cute things so I baked you a pony." - http://www.reefs.org - Where reefkeeping begins on the internet. http://www.advancedaquarist.com - High quality, free monthly publication for the reef keeping hobbyist. http://www.aquaristcourses.org - Distance learning courses for the marine aquarist. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery Powered Sites - Keep the Links Coming
Please add http://www.reefs.org/ to the list. Shane On 2/12/07, jazzle <[EMAIL PROTECTED]> wrote: > > I've recently completed http://www.saintsrlfc.com/ > http://www.saintsrlfc.com/ . > Quite a bit of jQuery, including striping, ThickBox, and various bespoke > codings (especially in the non-public backend). > > > > Rey Bango-2 wrote: > > > > Hey all, > > > > I just wanted to let you know that I've been compiling the list of sites > > and definitely noting all of the ones submitted. Thank you for providing > > the info. > > > > Please keep sending links as we want to have a nice list of > > jQuery-powered sites for the jQuery web site. > > > > Thanks, > > > > Rey... > > > > ___ > > jQuery mailing list > > discuss@jquery.com > > http://jquery.com/discuss/ > > > > > -- > View this message in context: > http://www.nabble.com/jQuery-Powered-Sites---Keep-the-Links-Coming-tf2955158.html#a8924505 > Sent from the JQuery mailing list archive at Nabble.com. > > > ___ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > -- - Bender: "Amy, you like cute things so I baked you a pony." - http://www.reefs.org - Where reefkeeping begins on the internet. http://www.advancedaquarist.com - High quality, free monthly publication for the reef keeping hobbyist. http://www.aquaristcourses.org - Distance learning courses for the marine aquarist. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] jQuery + Yahoo Pipes
Saw this posted on del.icio.us this afternoon and thought I'd forward it to the discussion group: http://comments.deasil.com/2007/02/10/y-pipe-integrated-with-ajax/ Shane -- - Bender: "Amy, you like cute things so I baked you a pony." - http://www.reefs.org - Where reefkeeping begins on the internet. http://www.advancedaquarist.com - High quality, free monthly publication for the reef keeping hobbyist. http://www.aquaristcourses.org - Distance learning courses for the marine aquarist. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] What is the best way to replace an element using JQuery?
You might try: $("#myElement").remove().after("new element<\/div>"); It would be nice to have a replaceWith method and a wrapInner method in the core as I've found I need to be able to do this on a regular basis. FWIW, Shane On 1/31/07, George Adamson <[EMAIL PROTECTED]> wrote: > > Despite having used JQuery for some time and also written plugins, I've never > discovered a good way to replace one element with another. > > Just need something like: $("#myElement").replaceWith("new > element") > > Depending on the circumstances I usually find I have to resort to DOM > methods or if myElement has no siblings then I can use > .parent().html("..."). > > Any thoughts? Am I missing something?! > > Cheers > > George > -- > View this message in context: > http://www.nabble.com/What-is-the-best-way-to-replace-an-element-using-JQuery--tf3148907.html#a8729470 > Sent from the JQuery mailing list archive at Nabble.com. > > > ___ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > -- - Bender: "Amy, you like cute things so I baked you a pony." - http://www.reefs.org - Where reefkeeping begins on the internet. http://www.advancedaquarist.com - High quality, free monthly publication for the reef keeping hobbyist. http://www.aquaristcourses.org - Distance learning courses for the marine aquarist. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jquery.corner.js freezes IE6
Hey Rick: It's not "Vdiv", it's a "\" + "/div". ;) The forward slash is used to escape various characters like a back slash, quotation marks, etc. Basically what the below script does is turn: CONTENT into: CONTENT class="roundedcornr_bottom_grey"> The DOM structure comes from the "Basic RoundedCornr" section of http://roundedcornr.com/ as well as the CSS and images. I will forward you the website in a separate email. Shane On 1/26/07, Rick Faircloth <[EMAIL PROTECTED]> wrote: > Hey, Shane... I'm not a CSS guru by any means, so... > what is a "Vdiv"? > > And... do you have a sample of this CSS rounding working online > that I can view? > > Rick > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of Shane Graber - jQuery > Sent: Friday, January 26, 2007 9:59 AM > To: jQuery Discussion. > Subject: Re: [jQuery] jquery.corner.js freezes IE6 > > I noticed the same thing when trying to implement it for a site and > eventually gave up with the plugin. I ended up going to > roundedcornr.com and used the corner images generated there + > generated CSS and used jQuery to modify the DOM to accept the > rounding: > > $(".round") > .wrap("<\/div>") > .before("<\/div><\/div>") > .after(" class=\"roundedcornr_bottom_grey\"><\/div><\/div>") > .removeClass() > .addClass("roundedcornr_content_grey"); > > That worked fine for me. I would have preferred a plugin but, hey, > this worked and it was acceptable in the use case that I needed. :P > > Shane > > > > > > > ___ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > -- - Bender: "Amy, you like cute things so I baked you a pony." - http://www.reefs.org - Where reefkeeping begins on the internet. http://www.advancedaquarist.com - High quality, free monthly publication for the reef keeping hobbyist. http://www.aquaristcourses.org - Distance learning courses for the marine aquarist. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jquery.corner.js freezes IE6
I noticed the same thing when trying to implement it for a site and eventually gave up with the plugin. I ended up going to roundedcornr.com and used the corner images generated there + generated CSS and used jQuery to modify the DOM to accept the rounding: $(".round") .wrap("<\/div>") .before("<\/div><\/div>") .after("<\/div><\/div>") .removeClass() .addClass("roundedcornr_content_grey"); That worked fine for me. I would have preferred a plugin but, hey, this worked and it was acceptable in the use case that I needed. :P Shane On 1/26/07, Dave Methvin <[EMAIL PROTECTED]> wrote: > That's strange. The version here works but it's using jQuery 1.0.4 plus it's > a bit behind the one in SVN. So it's either a recent change to the plugin or > some effect of jQuery 1.1. > > http://methvin.com/jquery/jq-corner.html > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of Mike Alsup > Sent: Friday, January 26, 2007 9:10 AM > To: jQuery Discussion. > Subject: Re: [jQuery] jquery.corner.js freezes IE6 > > > > IE6 freezes, and I need to kill the proccess. After that, I visited > > > > Damn, it sure does. I'll have a look at it Juan. > > > > Interesting. It's this call that causes the problem: > > var h = jQuery.curCSS(this, 'height'); > > Anyone know why that might be? > > > ___ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > -- - Bender: "Amy, you like cute things so I baked you a pony." - http://www.reefs.org - Where reefkeeping begins on the internet. http://www.advancedaquarist.com - High quality, free monthly publication for the reef keeping hobbyist. http://www.aquaristcourses.org - Distance learning courses for the marine aquarist. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Presentacular rewrite with jQuery?
I just happened onto Presentacular [1] for the S5 slideshow script this morning and was wondering if anyone has rewritten it using jQuery. Shane [1] http://labs.cavorite.com/presentacular/ -- - Bender: "Amy, you like cute things so I baked you a pony." - http://www.reefs.org - Where reefkeeping begins on the internet. http://www.advancedaquarist.com - High quality, free monthly publication for the reef keeping hobbyist. http://www.aquaristcourses.org - Distance learning courses for the marine aquarist. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Interface ImageBox modification - HTML caption text
Instead of hacking imagebox.js, why not use a separate jQuery script (that you write) to modify your markup so that it's recognized as default behavior by imagebox? That way when you upgrade imagebox versions you don't have to reapply your hacks to imagebox.js. This markup modification script would have to be called before imagebox.js though. I did something very similar for modifying my markup to work with Thickbox. Shane On 1/16/07, Tim Gossett <[EMAIL PROTECTED]> wrote: > I love interface. > > Imagebox creates a nice little slideshow from a group of links pointing to > images. Check out the demo on eyecon [1]. > > I've made a modification to my own copy of imagebox.js. Originally, the > anchor element's title attribute is used for plain caption text. I wanted to > use HTML for the caption text, so my modification looks for a span.caption > within the anchor. If it finds one, it sets the span's inner HTML as the > caption text. If it doesn't find one, it falls back on the original > behavior. > > See it in action [2]. My demo has captions with the strong, em, strike, br, > and p elements within; the last one has no span.caption. > > What do you think, list? Is there a better way to do this? Does my > modification break? > > > [1] http://interface.eyecon.ro/demos/imagebox.html > [2] http://mrgossett.com/jQuery/imagebox > > -- > Tim is MrGossett > > ___ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > > > -- - Bender: "Amy, you like cute things so I baked you a pony." - http://www.reefs.org - Where reefkeeping begins on the internet. http://www.advancedaquarist.com - High quality, free monthly publication for the reef keeping hobbyist. http://www.aquaristcourses.org - Distance learning courses for the marine aquarist. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Speed of 1.0 code with compatibilty script?
I've finished changing my code to reflect the API changes. However, I depend on Thickbox for images and I haven't seen an announcement stating that Thickbox has updated its code to reflect the 1.1 API. Anyone know if Thickbox has done this or that it is in the works? Shane On 1/15/07, Dave Methvin <[EMAIL PROTECTED]> wrote: > Just change your code to eliminate the need for the compat plugin when you > get the chance. > ___ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > -- - Bender: "Amy, you like cute things so I baked you a pony." - http://www.reefs.org - Where reefkeeping begins on the internet. http://www.advancedaquarist.com - High quality, free monthly publication for the reef keeping hobbyist. http://www.aquaristcourses.org - Distance learning courses for the marine aquarist. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Speed of 1.0 code with compatibilty script?
Quick question regarding the compatibility script to allow 1.0 code to be used with the 1.1 release of jQuery: Does using the compatibility plugin reduce the speed increases realized with the 1.1 release? I couldn't seem to find out if this was the case or not in my searches of the release information. Thanks, Shane -- - Bender: "Amy, you like cute things so I baked you a pony." - http://www.reefs.org - Where reefkeeping begins on the internet. http://www.advancedaquarist.com - High quality, free monthly publication for the reef keeping hobbyist. http://www.aquaristcourses.org - Distance learning courses for the marine aquarist. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery 1.1, Site, Docs, Surprise
Awesome! I may have to look at using some of these new features in an upcoming project. :) Not sure if this was noticed or not, but the Fisheye menu [1] doesn't degrade gracefully if javascript is disabled (tested in FF 1.5). Basically all of the images overlay one another and the menu becomes unusable with javascript disabled. Just thought I'd point it out as that menu would be really cool to use sometime. Shane [1] http://interface.eyecon.ro/demos/fisheye.html On 1/14/07, John Resig <[EMAIL PROTECTED]> wrote: > Hi Everyone - > > jQuery 1.1 has just been release, along with an overhaul of the site > design, and the documentation; all tied together with a brand new > surprise! > > The full details can be found here: > http://jquery.com/blog/2007/01/14/jquery-birthday-11-new-site-new-docs/ > > Enjoy - and be sure to thank the whole jQuery team that made this come > together. > > --John > > ___ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > -- - Bender: "Amy, you like cute things so I baked you a pony." - http://www.reefs.org - Where reefkeeping begins on the internet. http://www.advancedaquarist.com - High quality, free monthly publication for the reef keeping hobbyist. http://www.aquaristcourses.org - Distance learning courses for the marine aquarist. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] List of jQuery-Powered Sites
Just out of curiosity, why did you use tabber.js instead of the tab plugin for jQuery? Shane On 1/10/07, Stefan Holmberg <[EMAIL PROTECTED]> wrote: > http://www.findfreefonts.net > > using 1.0.4 all over the site - just using one "external" js script as well > and that's the BarelyFitz tab control. > > > On 1/9/07, Rey Bango <[EMAIL PROTECTED]> wrote: > > Hi everyone, > > > > With the release jQuery v1.1 eminent, I'd like to begin compiling a list > > of jQuery powered sites for posting on the jQuery site. The sites *DO > > NOT* have to be jQuery v1.1 specific. Sites using prior versions of > > jQuery are perfectly fine for this list. Also, if you're using jQuery > > with another library (YUI, PT, Dojo, et al), that's fine as well. We > > want to know which sites are using jQuery. > > > > If you could, please provide a description of where jQuery is being used > > within the website. > > > > Please reply to this email and I'll begin compiling the list. > > > > Thanks, > > > > Rey > > > > ___ > > jQuery mailing list > > discuss@jquery.com > > http://jquery.com/discuss/ > > > > > > -- > Stefan Holmberg > > Systementor AB > Dvärsätt 1467 > 835 41 Dvärsätt > Sweden > Office : +46 640 180 95 > Cellphone : +46 709 221 694 > Web: http://www.systementor.se > ___ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > > > -- - Bender: "Amy, you like cute things so I baked you a pony." - http://www.reefs.org - Where reefkeeping begins on the internet. http://www.advancedaquarist.com - High quality, free monthly publication for the reef keeping hobbyist. http://www.aquaristcourses.org - Distance learning courses for the marine aquarist. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] List of jQuery-Powered Sites
Rey: We just began using jQuery on our online magazine site Advanced Aquarist [1]. Currently we're using the Thickbox [2] plugin along with code snippits that were found via Google for creating pullquotes [3] (modified a bit), a dynamic Table of Contents [4] (also modified a bit), and for making Zebra Tables [5]. I'm also using it to make some of our old content forward compatible with our current coding style guidelines. The javascript source can be found here if anyone's interested: http://www.advancedaquarist.com/jquery.aaolm.js Thanks! Shane [1] http://www.advancedaquarist.com/ [2] http://jquery.com/demo/thickbox/ [3] http://www.456bereastreet.com/archive/200609/automatic_pullquotes_with_javascript_and_css/#comment17 [4] http://jameswragg.com/labs/auto-generating-table-of-contents-using-jquery , http://jameswragg.com/demos/autogentoc/ [5] http://jquery.com/blog/2006/10/18/zebra-table-showdown/ On 1/9/07, Rey Bango <[EMAIL PROTECTED]> wrote: > Hi everyone, > > With the release jQuery v1.1 eminent, I'd like to begin compiling a list > of jQuery powered sites for posting on the jQuery site. The sites *DO > NOT* have to be jQuery v1.1 specific. Sites using prior versions of > jQuery are perfectly fine for this list. Also, if you're using jQuery > with another library (YUI, PT, Dojo, et al), that's fine as well. We > want to know which sites are using jQuery. > > If you could, please provide a description of where jQuery is being used > within the website. > > Please reply to this email and I'll begin compiling the list. > > Thanks, > > Rey > > ___ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > -- - Bender: "Amy, you like cute things so I baked you a pony." - http://www.reefs.org - Where reefkeeping begins on the internet. http://www.advancedaquarist.com - High quality, free monthly publication for the reef keeping hobbyist. http://www.aquaristcourses.org - Distance learning courses for the marine aquarist. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery powered site launched
> I find ThickBoxMod works better than the one on the jQuery site: > http://www.nabble.com/My-ThickBoxMod-tf2740161.html Is there a place where this mod can be viewed? I'm using v.2 of Thickbox and I'd like to see the difference. Shane -- - Bender: "Amy, you like cute things so I baked you a pony." - http://www.reefs.org - Where reefkeeping begins on the internet. http://www.advancedaquarist.com - High quality, free monthly publication for the reef keeping hobbyist. http://www.aquaristcourses.org - Distance learning courses for the marine aquarist. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Stopping container from scrolling off-screen?
I was wondering if anyone could give me some pointers on how to achieve the following using jQuery. Basically I want to have a menu in a sidebar that scrolls with the content until it hits the top of the screen and then stays put as the reader continues to scroll down through the content. An example of what I'd like to achieve is the right side of the following site: http://www.plosone.org/article/fetchArticle.action?articleURI=info%3Adoi%2F10.1371%2Fjournal.pone.133 ...specifically the 'Commentary' box and the table of contents box. Anyone have any pointers on how to achieve this using jQuery? Thanks! Shane -- - Bender: "Amy, you like cute things so I baked you a pony." - http://www.reefs.org - Where reefkeeping begins on the internet. http://www.advancedaquarist.com - High quality, free monthly publication for the reef keeping hobbyist. http://www.aquaristcourses.org - Distance learning courses for the marine aquarist. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Link and Puff()?
I am attempting to use: $("#myelement").click(function() { $("#myelement img").Puff(500); }); My markup is as such: I need the Puff() effect to take place when the person clicks on the link before the browser heads over to mysite.com. What is the proper syntax in order to achieve this effect? The above javascript isn't achieving this. Thanks, Shane -- - Bender: "Amy, you like cute things so I baked you a pony." - http://www.reefs.org - Where reefkeeping begins on the internet. http://www.advancedaquarist.com - High quality, free monthly publication for the reef keeping hobbyist. http://www.aquaristcourses.org - Distance learning courses for the marine aquarist. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Basic Javascript Question
I've just begun using javascript and jquery and I'm very impressed with what can be acheived using it. Thank you for an excellent product! :) This may seem like a basic question but I've just started working with javascript and am learning as I go. Why is it that $(document).ready(function() { //stuff goes here }); is called directly within the document/page itself and not linked in as a file instead? I see this on a consistent basis when I'm looking at plugin examples. The written plugins themselves are linked in as a .js file but the actual javascript calls ( $("#example").whatever(function()) ) are within the page itself and can be seen by viewing the page source. Why is that? Is there a performance boost? Thanks, Shane -- - Bender: "Amy, you like cute things so I baked you a pony." - http://www.reefs.org - Where reefkeeping begins on the internet. http://www.advancedaquarist.com - High quality, free monthly publication for the reef keeping hobbyist. http://www.aquaristcourses.org - Distance learning courses for the marine aquarist. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/