[jQuery] Re: Creating a Plugin

2008-12-06 Thread Brian Ronk
Worth" <[EMAIL PROTECTED]> wrote: > On Sat, Dec 6, 2008 at 11:53 AM, Brian Ronk <[EMAIL PROTECTED]> wrote: > > > 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 > &

[jQuery] Re: Creating a Plugin

2008-12-06 Thread Brian Ronk
> 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

[jQuery] Re: Creating a Plugin

2008-12-05 Thread Brian Ronk
Html, Textile, Wiki Syntax, Markdown, > BBcode > > On 5 dec, 08:27, 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 >

[jQuery] Creating a Plugin

2008-12-04 Thread Brian Ronk
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.

[jQuery] Selected/Highlighted by Mouse

2008-07-02 Thread Brian Ronk
I know that it's possible, but I'm wondering if there is something in jQuery that will return the data or index of what a user has selected with a mouse (or shift button). I'd like to have a way to create a note on a page about a certain selection that the user defines. So, maybe I'd like to add

[jQuery] Re: event question

2008-04-23 Thread Brian Ronk
world!"); > > }); > > $("body").append('Click Me!'); > > Clicking "Click Me!" should now produce an alert window. > > - jake > > On Tue, Apr 22, 2008 at 4:45 PM, Brian Ronk <[EMAIL PROTECTED]> wrote: > > >  I have a cli

[jQuery] event question

2008-04-22 Thread Brian Ronk
I have a click even that I add to a certain class when the page is created. There is the possibility of dynamically adding another element with that class, and I would like to have the same click even added. I'm just wondering what would happen if I registered the click event for that class, wou

[jQuery] Re: Issue inserting an img into a table

2008-04-21 Thread Brian Ronk
21, 4:13 pm, Hamish Campbell <[EMAIL PROTECTED]> wrote: > Want to post your code? > > Whitespace could cause issues. Also, what if you set overflow:hidden > for the tds? > > Thanks, > > Hamish > > On Apr 22, 8:04 am, Brian Ronk <[EMAIL PROTECTED]> wrote: >

[jQuery] Issue inserting an img into a table

2008-04-21 Thread Brian Ronk
Well, the problem isn't actually putting the image into the table, that part is fine. I'm running into a problem the way it is displayed. My table is basically a map. It is 10x10, and I have it set specifically to 20px x 20px. Each has a background image that is actually 20px x 40px. These a

[jQuery] hovering over a table based map

2008-04-08 Thread Brian Ronk
I have a table based map (each square of the table is a different map area) and would like to use a hover as a sort of legend. So, when I hover over an area, I get a popup, or something, that says "this is a rock and a chicken". My map is based on an array of 10x10 numbers (for the base) and the

[jQuery] children question

2007-11-27 Thread Brian Ronk
I'm working on a simple editor where I can see the changes as I type them. I got the idea figured out, but I'm selecting everything individually. Here's JS of the one that I have working right now: $(document).ready( function () { $('#newsEdit').focus( function() { editi

[jQuery] Re: JavaScript question (don't think it's jQuery related)

2007-05-31 Thread Brian Ronk
jQuery is failing before it gets called. One thing you could try is > setting up an AJAX error handler: > > $(document).ready(function() { > > >$.ajaxSetup({error: on_ajax_error}); > > }); > > > function on_ajax_error(xhr, error, exception) { > >

[jQuery] JavaScript question (don't think it's jQuery related)

2007-05-30 Thread Brian Ronk
At first I thought it was a problem with the forms plugin, but I don't think so. In IE (6&7) I have an issue related to forms. The data that I'm getting back (JSON) isn't being displayed. Here is the success function that I have setup for adding a note in my system: function finishNote(json, s

[jQuery] Re: getJSON() or post() parameter question

2007-05-17 Thread Brian Ronk
gt; >> params.blah = 'something else'; > > >> then in the ajax call you would just say: > > >> ... > >> data: params, > >> success: function(){ > >> }, > >> ... > > >> Anyway I think that's the preferre

[jQuery] getJSON() or post() parameter question

2007-05-17 Thread Brian Ronk
This is actually probably more relevant to post() since I can concatenate the parameters with the link for getJSON(), but here we go anyway. I am pulling JSON information from the server for menu links, and then creating the menu off of that. Let's say that I have {page: 'update.php', linkname:

[jQuery] $().click()?

2007-05-06 Thread Brian Ronk
I wanted to look something up, but since the site is moving hosts right now, that makes it a little hard :) is click() an available function? I wanted to add an event to a div that made an area visible to do some editing. I know I could just to an onclick method, but I wanted to try adding somet