[jQuery] Function Optimization w/ jQuery

2008-11-25 Thread halcyonandon
I've been reading the jQuery documentation and trying to improve this function(well functions) and its siblings, however I'm running into all sorts of syntactical errors when I make changes past this point. For example, I know there is a better way to write this.elements

[jQuery] Converting javascript to a jquery plugin

2008-11-24 Thread halcyonandon
Hi, I was asked to convert some javascript into a jquery plugin. I've followed the documentation for authoring a plugin at http://docs.jquery.com/Plugins/Authoring I've also followed other instructions found on the web. Currently I have my code working with respect to this, but largely the

[jQuery] Replacing document.getElementById()

2008-11-24 Thread halcyonandon
Hi, I'm trying change all instances of document.getElementById() with the jQuery's DOM traversal syntax, however it breaks it everytime. A simple example is this function: rm: function(){ var m = document.getElementById('discountMonth'); if(m) m.selectedIndex = 0; } If

[jQuery] Writing a plugin

2008-11-21 Thread halcyonandon
Hi, I'm new to JQuery, but I need to convert some regular, working, javascript code into a JQuery plugin. I'll need to expand on this code once its in plugin form, but for now its just converting this existing code into a working JQuery plugin. I've reviewed the documentation on plugin

[jQuery] Re: Writing a plugin

2008-11-21 Thread halcyonandon
Oh no that function was just a snippet from something working well, im not writing this for tab functionality, but rather, for a reusable widget... I'm just wondering what this function would look like converted into jQuery as a reference for everything else involved. I arbitrarily selected that

[jQuery] Re: Writing a plugin

2008-11-21 Thread halcyonandon
-in tabs plugin. It may already do what you're looking for. http://docs.jquery.com/UI/Tabs -Hector On Fri, Nov 21, 2008 at 1:44 PM, halcyonandon [EMAIL PROTECTED] wrote: Hi, I'm new to JQuery, but I need to convert some regular, working, javascript code into a JQuery plugin.  I'll need