[jQuery] Re: Plugin to link words/phrases

2007-06-04 Thread Michael Edmondson
@Renato Formato: Very nice. Perhaps DOM tree walking would be better than my blanket regex over HTML... Thanks.

[jQuery] Re: Plugin to link words/phrases

2007-06-04 Thread Renato Formato
Michael Edmondson ha scritto: I am working on writing a plugin that, given a list of words/phrases, will link text. That sounds so ... less than spectacular. The concept is similar to those in-text ads, except without the popups/bubbles. (Even less spectacular-sounding.) I was wondering if t

[jQuery] Re: Plugin to link words/phrases

2007-06-04 Thread Michael Edmondson
My latest attempt tries to handle if the "unlink" file is missing and uses a linkTopicsOnce setting: (function($) { $.fn.extend({ linktopics: function( settings ) { var self = this; this.settings = $.extend({}, $.linktopics.

[jQuery] Re: Plugin to link words/phrases

2007-06-04 Thread Michael Edmondson
What happens if there is other HTML -- be it other spans or links -- in the paragraph?

[jQuery] Re: Plugin to link words/phrases

2007-06-03 Thread Ⓙⓐⓚⓔ
what my plugin does is change now is the time for all good programmer ... to now is the time for all good programmer ... if good is in the hash to be hooked... then you can get all your span.hookedto do whatever you want. On 6/3/07, Rhapidophyllum <[EMAIL PROTECTED]> wrote: Could you be m

[jQuery] Re: Plugin to link words/phrases

2007-06-03 Thread Rhapidophyllum
Could you be more specific on what you mean by 'link text'? That could be interpreted a number of different ways. On Jun 1, 2007, at 11:11 PM, Michael Edmondson wrote: I am working on writing a plugin that, given a list of words/phrases, will link text. That sounds so ... less than spect

[jQuery] Re: Plugin to link words/phrases

2007-06-02 Thread Michael Edmondson
This hasn't been strenuously tested yet... What little I've put together so far is here: http://cosmicforge.com/topics/ This is my first time using jQuery, and so I'm attempting to make a proper plugin instead of just random functions. The functionality is very focused as written -- it purpose

[jQuery] Re: Plugin to link words/phrases

2007-06-01 Thread Ⓙⓐⓚⓔ
take a look at http://jpassoc.com/js/jquery-kidsbook.js as used in http://jpassoc.com/junior/story/ On 6/1/07, Michael Edmondson <[EMAIL PROTECTED]> wrote: I am working on writing a plugin that, given a list of words/phrases, will link text. That sounds so ... less than spectacular. The con