using …

Pure C#

Archive for the ‘JavaScript’ Category

Focus Next Control

Posted by esersahin on 02/01/2010


function focusNext(form, elemName, evt) {
evt = (evt) ? evt : event;
var charCode = (evt.charCode) ? evt.charCode :
((evt.which) ? evt.which : evt.keyCode);
if (charCode == 13) {
form.elements[elemName].focus();
return false;
}
return true;
}

onkeypress="return focusNext(this.form, 'name2', event)"

Posted in JavaScript | Leave a Comment »

Controlling the tab Index Property

Posted by esersahin on 02/01/2010


/*
JavaScript Bible, Fourth Edition
by Danny Goodman

John Wiley & Sons CopyRight 2001
*/

<HTML>
<HEAD>
<TITLE>tabIndex Property</TITLE>
<SCRIPT LANGUAGE="JavaScript">
function invert() {
var form = document.lab
for (var i = 0, j = form.elements.length; i < form.elements.length;
i++, j--) {
form.elements[i].tabIndex = j
}
}
function skip2() {
document.lab.text2.tabIndex = -1
}
function resetTab() {
var form = document.lab
for (var i = 0; i < form.elements.length; i++) {
form.elements[i].tabIndex = 0
}
}
</SCRIPT>
</HEAD>
<BODY>
<H1>tabIndex Property Lab</H1>
<HR>
<FORM NAME="lab">
Text box no. 1: <INPUT TYPE="text" NAME="text1"><BR>
Text box no. 2: <INPUT TYPE="text" NAME="text2"><BR>
<INPUT TYPE="button" VALUE="A Button"><BR>
<INPUT TYPE="checkbox">And a checkbox
</FORM>
<HR>
<FORM NAME="control">
<INPUT TYPE="button" VALUE="Invert Tabbing Order" TABINDEX=-1 onClick="invert()"><BR>
<INPUT TYPE="button" VALUE="Skip Text box no. 2 (IE Only)" TABINDEX=-1
onClick="skip2()"><BR>
<INPUT TYPE="button" VALUE="Reset to Normal Order" TABINDEX=-1 onClick="resetTab()">
</FORM>
</BODY>
</HTML>

Posted in JavaScript | Leave a Comment »

Notes on the comp.lang.javascript FAQ

Posted by esersahin on 30/07/2009


http://www.jibbering.com/faq/faq_notes/faq_notes.html#toc

Table of Contents

Introduction to the Notes

Because the comp.lang.javascript FAQ is posted to the group regularly there are practical constraints on how much can be included in it. At the same time it is often felt that it should contain more (or more in-depth) information on some of its topics. The FAQ is largely designed to provide URLs of other resources that provide that additional information, but where no additional resource is available or it is felt that those resources omit important information. These notes are intended to provide an opportunity for those additional resources to be created.

It is intended that anyone who wishes to contribute notes should be able to do so (under editorial control) and that some of the more in-depth postings to the group should become notes, or be incorporated within them.

Posted in JavaScript | Leave a Comment »

Javascript Type-Conversion

Posted by esersahin on 30/07/2009


http://www.jibbering.com/faq/faq_notes/type_convert.html

Posted in JavaScript | Leave a Comment »

JavaScript Function Reference

Posted by esersahin on 30/07/2009


http://www.w3schools.com/jsref/jsref_obj_global.asp

Posted in JavaScript | Leave a Comment »

JavaScript DHTML » Form Control

Posted by esersahin on 30/07/2009


http://www.java2s.com/Code/JavaScript/Form-Control/CatalogForm-Control.htm

Posted in DHTML, Form Controls, JavaScript | Leave a Comment »

Embedding ASP.NET Server Variables in Client JavaScript

Posted by esersahin on 30/07/2009


http://www.west-wind.com/WebLog/posts/252178.aspx

Posted in Asp.Net, JavaScript | Leave a Comment »

A Localization Handler to serve ASP.NET Resources to JavaScript

Posted by esersahin on 30/07/2009


http://www.west-wind.com/Weblog/posts/698097.aspx

Posted in JavaScript, Localization, Resource | Leave a Comment »

Javascript Regular Expressions

Posted by esersahin on 22/07/2009


http://lawrence.ecorp.net/inet/samples/regexp-format.php

Posted in JavaScript | Leave a Comment »

VS 2008 JavaScript Intellisense

Posted by esersahin on 10/07/2009


http://weblogs.asp.net/scottgu/archive/2007/06/21/vs-2008-javascript-intellisense.aspx

Posted in JavaScript, Visual Studio 2008 | Leave a Comment »