JavaScript

JavaScript: Select With Filtration

A SELECT tag with hundreds options deserves some filtration. Let’s have an extra INPUT to filter the SELECT options by label while the user is typing in. The problem: in Internet Explorer, changing 1000+ SELECT options on the fly is extremely slow... Read further for a solution.

HTML: How to Disable the Submit Button After Submit

Solution

<script type="text/javascript">
	function disableFormElements(form){
		setTimeout(function(){
			for (var i=0; i<form.elements.length; i++) 
			    form.elements[i].disabled = true;
		}, 1);
	}	
 
<form name="formName" action="page.xsp?p1=1&p2=2" method="post" 
onsubmit="if (!ClientValidation()) return false; disableFormElements(this)">

Read further for the explanation.

BreezeJS and multipart keys

During one of our projects we decided to use a javascript library called Breeze.

Breeze is a very useful library that allows users to work with entities in js and to execute CRUD operations directly from js, almost without writing server code.

Syndicate content