function dataStringToArray(str) {
return JSON.parse( '[[' + str.replace( /\|/g, '],[' ) + ']]' );
...
JavaScript On Delimited data string to ne...
by Sean Catchpole,
July 21, 2010 19:38
I know this is a little hac...
JavaScript On how i make it work on Firefox?
by tribadiainterna,
July 17, 2010 01:27
it was very interesting to ...
JavaScript On Delimited data string to ne...
by squidsoup,
July 08, 2010 09:01
Wow, that's amazing Adam th...
function dataStringToArray(string) {
return string.split('|').map(function(segment) {
return segment.split(',').map(function(digit) {
...
JavaScript On countdown timer (minutes &a...
by JB,
July 04, 2010 20:57
Just used this in my soluti...
var textVal = $('<div />').text($(this).contents().find("body").html());
$("#dest_field).val(textVal .html());
this.transform = function(m00,m01,m10,m11){
var x=m00*this.x+m01*this.y;
var y=m10*this.x+m11*this.y;
...
JavaScript On Rotate co-ordinates
by Peter Tchernev,
June 24, 2010 12:09
I am not sure if this is a ...
function AddCommas(value) {
var formatted = String(value).replace(/,/g, '');
var regex = /^(\d+)(\d{3}[\.]?.*)$/;
...
JavaScript On Format Numbers With Commas
by Kelly Taylor,
June 18, 2010 15:32
Avoid tail recursion and re...
String.prototype.trunc = function(n,useWordBoundary){
var toLong = this.length>n,
s_ = toLong ? this.substr(0,n-1) : this;
...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> ...
var element = document.createElement('div');
var test = '<em>Risk &<br />Compilance<br />Projects</em>';
element.innerHTML = test;
...
JavaScript On Regex: Remove all HTML tags...
by strager,
June 12, 2010 20:43
Regular expressions are bad...
function AddCommas(value) {
var match = /^(\d+)(\d{3}[\.]?.*)$/.exec(value.replace(/,/g, ''));
if (match) {
...
JavaScript On Format Numbers With Commas
by paul.wilkins.myopenid.com,
June 10, 2010 02:59
The addCommas should be Add...
JavaScript On Format Numbers With Commas
by kathy-wu.myopenid.com,
June 08, 2010 03:25
RE Ants, I am aware of that...
JavaScript On Format Numbers With Commas
by kathy-wu.myopenid.com,
June 08, 2010 03:19
Hi Paul,
I'm very new t...
JavaScript On Format Numbers With Commas
by Ants,
June 08, 2010 03:06
Sort of on tangent, I hope ...
function AddCommas(value) {
var match = /^(\d+)(\d{3}[\.]?.*)$/.exec(value.replace(/,/g, ''));
if (match) {
...
JavaScript On Format Numbers With Commas
by paul.wilkins.myopenid.com,
June 08, 2010 01:44
Let's get functional on this.
<a href="http://a.link.he.re" target="blank">Rick Roll</a>
JavaScript On Regex: Remove all HTML tags...
by Ants,
June 07, 2010 15:35
I recommend reading:
http:...

I would like to exchange li...