Return to Snippet

Revision: 54260
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