Revision: 54260
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at December 17, 2011 10:51 by anagaiyahoocom
Initial Code
function replaceTokens(n) { $(document).getElements('input').each(function(e){ if (e.getProperty('name') && e.getProperty('name').length == 32 && e.getProperty('value') == '1' && e.getProperty('type') == 'hidden') { e.setProperty('name', n); } }); }
Initial URL
Initial Description
This will replace every token in document that is 32 digits in length. Written for mootools.
Initial Title
Replace all tokens in document
Initial Tags
Initial Language
JavaScript