That might work. I'll tinker with that. How does it work with multiple instances of the same plugin through? Where I'm using it, I am going to be pulling data from 2 instances of the plugin. Maybe I could have two different names... I think that would work.
Although, I would like to know how to make my plugin accept a method call. On Dec 6, 9:05 am, "Richard D. Worth" <[EMAIL PROTECTED]> wrote: > You could store the bbcode in the element's jQuery data store: > > $("#test").data("bbcode", "..."); > > and you can get it back out by > > var bbcode = $("#test").data("bbcode"); > > Seehttp://docs.jquery.com/Core/datafor more info. > > Please let me know if your question goes further into how to make your > plugin accept a method call that would then return this data. > > - Richard > > On Fri, Dec 5, 2008 at 2:27 AM, Brian Ronk <[EMAIL PROTECTED]> wrote: > > > I'm making an edit in place plugin, and am running into an issue, > > mainly because I'm not sure how to do it. The data I am working with > > is bbcode, so what is seen on screen (non editing) is not bbcode, but > > it decoded. I would like to be able to return the bbcode to work with > > it in another area. I'm just not sure how to do that. > > > What I'd like to be able to do is to initialize it: $('#test').bbcode > > (); and then be able to call it again (or something) to get the > > actual bbcode out. So, something like $('#test').bbcode('code'); or $ > > ('#test').showcode(); > > > It basically works right now, except for the returning data. I'm just > > not sure on how to procede to do that.