[jQuery] Need help fine tuning

2006-12-08 Thread Tim Baxter
Hi all, new to the list, new to jquery, getting my feet wet. I've got a script that I could use some help fine-tuning and optimizing, and I'm hoping you all can help. The script is used to collapse forum topics and can be seen in place at http://gretschpages.com/forum/modern-gretsch-guitars/

Re: [jQuery] Need help fine tuning

2006-12-08 Thread Tim Baxter
Yeah, paginating those is on my to-do list... most aren't that bad (yet), but they're getting bigger every day. Thanks for the help on showLatest. Any thoughts on the rest of it (the collapsing part?) On 12/8/06, Dave Methvin [EMAIL PROTECTED] wrote: I've got a script that I could use some

Re: [jQuery] Need help fine tuning

2006-12-08 Thread Tim Baxter
Dave, I tried that, but $(div.recentposts a:first).each(function(i){ seems to only find the first div.recentposts a instead of the first a in each div.recentposts. On 12/8/06, Dave Methvin [EMAIL PROTECTED] wrote: I've got a script that I could use some help fine-tuning and optimizing,

Re: [jQuery] Need help fine tuning

2006-12-08 Thread Tim Baxter
Well, you've still given me some good ideas, in particular restricting to div.recentposts, so I thank you! On 12/8/06, Dave Methvin [EMAIL PROTECTED] wrote: Dave, I tried that, but $(div.recentposts a:first) seems to only find the first div.recentposts a instead of the first a in each

[jQuery] Finding element that matches anchor link

2007-02-15 Thread Tim Baxter
I just know this is a dumb question with a simple answer, but here goes... I have something like: a href=#div1 class=triggerLink a/a a href=#div2 class=triggerLink a/a and div id=div1/div div id=div2/div I need to match the link to it's div, but can't figure out the selector. Non working test

Re: [jQuery] Finding element that matches anchor link

2007-02-15 Thread Tim Baxter
I'm not following. I tried targetDiv = $(this.hash); but still didn't get the element. On 2/15/07, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote: almost too simple! $(this.hash) On 2/15/07, Tim Baxter [EMAIL PROTECTED] wrote: I just know this is a dumb question with a simple answer, but here goes... I have

Re: [jQuery] Finding element that matches anchor link

2007-02-15 Thread Tim Baxter
Thanks.. it just took a while to see how it fits. On 2/15/07, Klaus Hartl [EMAIL PROTECTED] wrote: Tim Baxter schrieb: But that's not what I need. I need to match up the div to the link. I'm going to be manipulating it in several ways, not always onclick, but the relationship between

Re: [jQuery] Finding element that matches anchor link

2007-02-15 Thread Tim Baxter
Guys, they're just anchor links: http://www.w3.org/TR/1999/REC-html401-19991224/struct/links.html#anchors-with-id On 2/15/07, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote: Mozilla agrees with Aaron.. http://developer.mozilla.org/en/docs/DOM:window.location Properties All of the following properties are

[jQuery] Odd safari failure

2007-02-16 Thread Tim Baxter
This is odd, and may be difficult to describe On my forum, I have a file upload field for images, along with a helper/formatter for inserting images that are on the web. Both of these are in a box that drops down when you click the icon (that's where jquery comes in). Problem is, in safari the

Re: [jQuery] # or javascript:;

2007-02-16 Thread Tim Baxter
Your first example. Inline javascript on a link is bad. Actually, even in the first example, the link should do SOMETHING when JS isn't available, if that's not possible, than you should insert the link with your JS. On 2/16/07, hcabbos [EMAIL PROTECTED] wrote: What's the best way to apply a

Re: [jQuery] # or javascript:;

2007-02-16 Thread Tim Baxter
No... you don't put the onclick handler on the link either. Keep your JS out of your HTML. If it's a link that's ONLY there for the JS to do something, insert the link with the JS. If it's a link that can degrade gracefully (the preferred scenario), then put the link in, then override it's

[jQuery] Jquery and hcal

2007-03-07 Thread Tim Baxter
Has anyone built a parser for hcal-formatted events on a page, building a calendar from them? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/