Archive for the ‘ JavaScript ’ Category

Prototype: eval request response

new Ajax.Request(
	'../include/update_update_dropdown.php', {
		method: 'post',
		encoding: 'ISO-8859-1',
		parameters: 'updateDropDown=1&sender='+sender.id,
		onComplete:function(transport) { eval(transport.responseText); },
		asynchronous: true
});

PopUp choice box

Check = confirm('Will you?\n');
if (Check == true) {
	start_it();
}

Prototype: event observer

Event.observe('sp_btn_start', 'click', start_me, false);