JSFromHell.com2008-09-16T05:25:10Zhttp://jsfromhell.com/http://jsfromhell.com/icon.gifYou're free to use all the codes in the site, just keep the author's name.Carlos R. L. Rodrigueshttp://jsfromhell.com/user/carlosrlrodrigolr@uol.com.brJonas Raoni Soares Silvahttp://jsfromhell.com/user/jonasraonijonasraoni@gmail.comBig Number [rev. #4]http://jsfromhell.com/classes/bignumberJonas Raoni Soares Silvahttp://jsfromhell.com/user/jonasraoni2006-05-03T00:23:40Z2009-07-16T19:15:30Z
Subtract method fixed.
Capitalize [rev. #2]http://jsfromhell.com/string/capitalizeJonas Raoni Soares Silvahttp://jsfromhell.com/user/jonasraoni2005-11-20T19:34:06Z2009-02-06T15:20:13Z
Izmael at [http://www.mabkil.com], found a simple mistake that I didn't noticed. As the function was using "\w" as matcher, phrases with characters outside of that range were ignored.
I changed by "\S" :)
Big Number [rev. #3]http://jsfromhell.com/classes/bignumberJonas Raoni Soares Silvahttp://jsfromhell.com/user/jonasraoni2006-05-03T00:23:40Z2008-09-16T05:25:10Z
I finally got some free time and fixed some old bugs, also improved the speed of the divide method.
Event Listener [rev. #6]http://jsfromhell.com/geral/event-listenerCarlos R. L. Rodrigueshttp://jsfromhell.com/user/carlosrl2008-09-06T02:25:10Z2008-09-06T02:25:10Z
The code size was reduced and now it's possible to send unlimited arguments to "personalized events".
var o = {};
addEvent(o, "click", function(a, b, c){alert(a + b + c);});
alert(o.onclick(1,2,3));
TimeLine v1.0http://jsfromhell.com/classes/timelineJonas Raoni Soares Silvahttp://jsfromhell.com/user/jonasraoni2008-03-14T03:22:15Z2008-03-14T03:22:15ZSimulates the Flash timeline. You define the amount of frames, the speed in fps (frames per second) and, at each frame passage an event is called, useful for animations.Point Inside a Polygon v1.0http://jsfromhell.com/math/is-point-in-polyJonas Raoni Soares Silvahttp://jsfromhell.com/user/jonasraoni2008-03-14T01:40:56Z2008-03-14T01:40:56ZChecks whether a point is inside a polygon. Adapted from: [http://www.ecse.rpi.edu/Homepages/wrf/Research/Short_Notes/pnpoly.html].Gradient v1.0http://jsfromhell.com/classes/gradientCarlos R. L. Rodrigueshttp://jsfromhell.com/user/carlosrl2008-03-14T00:17:22Z2008-03-14T00:17:22ZGiven the initial and final colors and the amount of steps that the gradient effect will take, the class is able to retrieve the color that should be used on each step.Nearest Number v1.0http://jsfromhell.com/array/nearest-numberCarlos R. L. Rodrigueshttp://jsfromhell.com/user/carlosrl2008-03-14T23:09:01Z2008-03-14T23:09:01ZGiven an ordered numeric array and a number "X", retrieves the index of the nearest number to "X".Format Currency v1.2http://jsfromhell.com/forms/format-currencyCarlos R. L. Rodrigueshttp://jsfromhell.com/user/carlosrl2007-12-26T02:33:37Z2007-12-26T02:33:37ZAdded support to negative numbersFormat Money v1.1http://jsfromhell.com/number/fmt-moneyJonas Raoni Soares Silvahttp://jsfromhell.com/user/jonasraoni2007-12-22T17:31:04Z2007-12-22T17:31:04ZFixed bug related with negative numbers.Automatic Tabulation v1.2http://jsfromhell.com/forms/auto-tabJonas Raoni Soares Silvahttp://jsfromhell.com/user/jonasraoni2007-10-07T22:44:33Z2007-10-07T22:44:33ZAdded the possibility to choose the form that will receive the feature.Enter as TAB v1.1http://jsfromhell.com/forms/enter-as-tabJonas Raoni Soares Silvahttp://jsfromhell.com/user/jonasraoni2007-10-07T22:33:17Z2007-10-07T22:33:17ZI think this code is strange, but I decided to update it too. I added the option of choosing which form should be used.UTF-8 Converterhttp://jsfromhell.com/geral/utf-8Jonas Raoni Soares Silvahttp://jsfromhell.com/user/jonasraoni2007-10-07T14:02:38Z2007-10-07T14:02:38ZConverts a sequence of ANSI characters to UTF-8 and vice-versa.Word Wrap v1.1http://jsfromhell.com/string/wordwrapJonas Raoni Soares Silvahttp://jsfromhell.com/user/jonasraoni2007-10-07T01:21:58Z2007-10-07T01:21:58ZI fixed a mistake and added a new option to break.Format Money v1.0http://jsfromhell.com/number/fmt-moneyJonas Raoni Soares Silvahttp://jsfromhell.com/user/jonasraoni2007-10-02T20:05:46Z2007-10-02T20:05:46ZUuuuuu, I found time and patience to correct one of the numerous codes :]
I removed some unuseful things and corrected a mistake when formatting "1.99" without decimal places, which resulted in "1" but should be "2".Function Overloader v1.1http://jsfromhell.com/classes/overloaderJonas Raoni Soares Silvahttp://jsfromhell.com/user/jonasraoni2006-11-29T04:48:43Z2006-11-29T04:48:43ZAn error while sending null/undefined values was found and corrected.Hit Test v1.1http://jsfromhell.com/geral/hittestJonas Raoni Soares Silvahttp://jsfromhell.com/user/jonasraoni2006-11-23T01:38:53Z2006-11-23T01:38:53ZAdded two new methods: hitTest(x, y, object) and hitTest(x, y, width, height, object)Big Number v1.1http://jsfromhell.com/classes/bignumberJonas Raoni Soares Silvahttp://jsfromhell.com/user/jonasraoni2006-11-11T18:59:47Z2006-11-11T18:59:47ZError on the multiply method reported by Shivdeep Krishnan was corrected.Selection v1.0http://jsfromhell.com/forms/selectionJonas Raoni Soares Silvahttp://jsfromhell.com/user/jonasraoni2006-11-05T23:18:32Z2006-11-05T23:18:32ZRetrieves and sets the cursor position, as well the selected text of inputs and textareas. After searching, I saw it's the only code which retrieves right information in textareas under Internet Explorer (due to a bug on the implementation).'Tag Editor v1.0http://jsfromhell.com/dhtml/tag-editorCarlos R. L. Rodrigueshttp://jsfromhell.com/user/carlosrl2006-11-05T19:01:48Z2006-11-05T19:01:48ZAllows editing the content of an element, the so called "edit in place".