Hi All,
i have 3 textboxes for area Code,phone number and Extention and each have
MaskedEditExten der associated with it.
i want that when the length of first text box reaches it's maxlength , focus
will be set to next textbox automatically, means i want auto tabbed fields.
for which i created java script function and associated it with OnKeyDown
and OnKeyUp event of TextBox. but it's not working and when i remove the
MaskedEditExten der it workes fine, Can anyone please guide me.
heare is my aspx code(here i am showing only 1 textbox but i have 3 textbox):-
<asp:TextBox ID="txtAreaCode " runat="server" Width="25px" MaxLength="3"
size="4" ></asp:TextBox>
<AjaxToolKit:Ma skedEditExtende r ID="meeAreaCode " runat="server"
TargetControlID ="txtAreaCod e"
AutoComplete="f alse" Mask="999" MaskType="None"
InputDirection= "LeftToRigh t"
ClearMaskOnLost Focus="False" PromptCharacter =" "
OnFocusCssClass ="MaskedEditFoc usNegative"
OnInvalidCssCla ss="MaskedEditF ocusNegative">
event association:-
String areaCodeDown = "javascript:Tab Next(this,'down ', " +
this.txtAreaCod e.MaxLength + ",)";
String areaCodeUp = "javascript:Tab Next(this,'up', " +
this.txtAreaCod e.MaxLength + ",'" + this.txtNumber. ClientID + "')";
this.txtAreaCod e.Attributes["OnKeyDown"] = areaCodeDown;
this.txtAreaCod e.Attributes["OnKeyUp"] = areaCodeUp;
Javascript function :-
var phone_field_len gth=0;
function TabNext(obj,eve nt,len,next_fie ld)
{
if (event == "down")
{
phone_field_len gth=obj.value.l ength;
}
else if (event == "up") {
if (obj.value.leng th != phone_field_len gth)
{
phone_field_len gth=obj.value.l ength;
if (phone_field_le ngth == len)
{
var next=document.g etElementById(n ext_field);
if(next != null)
next.focus();
}
}
}
}
Thanks 0 1825 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Aaron Prohaska |
last post by:
I have just run into a problem where I have a page that posts back to
itself to execute code, except when the page does the post back it
somehow executes code that is in our home page for the site. The only
reason I know that is happening is because I keep track of the pages
executed by the user to see how they have traversed the site. Has anyone
every seen anything like this before?
Regards,
Aaron Prohaska
|
by: Federico Bari |
last post by:
Good morning all from italy,
i have probably a compatibility problem with a html/javascript page.
The aim of the code of the file test.htm you find here following (copy the
3 files in the
same directory) is to change the content of a layer, created with the
<div...> tag, with an external text (clicking over an hiperlink) or with the
result of a <form...> submition. The solution (I haven't been able to find
anyone else) is to use a...
|
by: JesusFreak |
last post by:
From: us_traveller@yahoo.com (JesusFreak)
Newsgroups: microsoft.public.scripting.jscript
Subject: toolbar script problem
NNTP-Posting-Host: 192.92.126.136
Recently, I downloaded the following beautiful script
"http://javascript.internet.com/navigation/toolbar-menu.html". It
works like a charm. I made my webpage in frames, where the nav-frame
shows the menubar, so whenever I click a link in the menubar, it opens
in the frame below. But...
|
by: Julius Mong |
last post by:
Dear all, according to the ASV3 manual known problem section, to make an <a>
execute some Javascript onclick:
http://www.google.co.uk/search?q=cache:OPDjMJfL50sJ:www.adobe.com/svg/indepth/pdfs/ReadMewin.pdf+adobe+svg+javascript+problem&hl=en&ie=UTF-8#5
4. Due to design limitations of Netscape, avoid using HTML with the
following form: <a href="#" onclick="myScriptWhichModifiesSVG()">The problem
is that JavaScript responds to the onclick...
|
by: Jeff S |
last post by:
In a VB.NET code behind module, I build a string for a link that points to a
JavaScript function. The two lines of code below show what is relevant.
PopupLink = "javascript:PopUpWindow(" & Chr(34) & PopUpWindowTitle & Chr(34)
& ", " & Chr(34) & CurrentEventDetails & ")"
strTemp += "<BR><A HREF='#' onClick='" & PopupLink & "'>" & EventName &
"</A><BR>"
The problem I have is that when the string variables or
contain a string with an...
| |
by: mickeybaez |
last post by:
Hi, I am trying to get the maskededitextender in asp.net to work. It seems like it does not let me type in the box. I have the scriptmanager and also have the maskededitextender configured to point at the appropriate textbox.
Is there anything I am missing. I saw the video in CODEPLEX and its seems like I have done the same setup like them.
It gives me the feel of a textbox when you configure the enable properties to false. I can not...
|
by: foram |
last post by:
Hi everyone,
i have develop one application..it is AjaxbasedApplication and i am also using Ajax control toolkit and i have use ajaxToolkit:MaskedEditExtender control so on pressing one btn i want to open calander and then i can select date and tht date shd display on textbox...everything wirks fine...but my problem is that below jaxToolkit:MaskedEditExtender one dropdownlist is thr so when i press on that button at tht time i m getting...
|
by: avanthika |
last post by:
Hi,
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<asp:TextBox ID="txtDate" runat="server" Width="182Px" ></asp:TextBox>
<asp:ImageButton ID="Image1" runat="server" ImageUrl="~/images/popupimg.png" CausesValidation="False" />
<cc1:MaskedEditExtender ID="MaskedEditExtender5" runat="server" TargetControlID="TxtDate"
Mask="99/99/9999" MessageValidatorTip="true" ...
|
by: Bobby Edward |
last post by:
I am using the ajax maskededitextender to provide a phone number format
template, like this: (000)000-0000 x0000
Is there any way that I can automatically strip out the parens, dash, etc...
before I save it to the db? (So the mask is just used for UI, not as part
of the string)?
Hope this makes sense... Thanks...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |