Community
Blogs
This space is available to any ComponentArt employee to write about anything.
RSS
About Me
2
Comments
360 Views
MaskedInput Transform Intellisense
MaskedInput class's Transform property that I described in depth in a few preceding blog posts presented us with an interesting design dilemma. At first it seemed like it should be a typical enumeration property, with one value for each Transform type. However, since the architecture allowed new Transform types to be added in a number of different ways (see the previous blog posts), the enum turned out to be too stifling. For that reason, we opted for a string instead. However, we still want...
Read More
Share this post:
email it!
|
bookmark it!
|
digg it!
|
reddit!
Posted by:
Jovan
Posted:
Monday, October 27, 2008 7:06 AM
Filed under:
ASP.NET AJAX
,
C#
,
Visual Studio
,
ComponentArt Web.UI
,
Input
,
MaskedInput
2 Comments
0
Comments
269 Views
Building in new MaskedInput Transforms
In the previous post I explained how you can customize the behaviour of MaskedInput’s Transforms. That should probably cover all your needs. However, MaskedInput’s architecture does allow for one more way to customize transforms. You can actually build in your own. As you can see from the MaskedInput_Transforms.js file attached in the previous post, all the built-in transforms are contained in a global JavaScript object named ComponentArt_MaskedInput_Transforms, indexed by Transform ...
Read More
Share this post:
email it!
|
bookmark it!
|
digg it!
|
reddit!
Posted by:
Jovan
Posted:
Friday, October 24, 2008 7:05 AM
Filed under:
JavaScript
,
ComponentArt Web.UI
,
Input
,
MaskedInput
0 Comments
0
Comments
324 Views
Customizing MaskedInput Transforms
In this blog post I will assume that you understand how MaskedInput Transforms function. It was explained in the previous blog post . Here is the list of currently implemented transforms: CreditCard_VisaMasterCard - Visa or MasterCard credit card number. CreditCard_AmEx - American Express credit card number. Telephone_NorthAmerica - North American telephone number. ZipCode - American ZIP code. PostalCode - Canadian postal code. PostalCode_Australia - Australian postal code. EmailAddress - e-mail...
Read More
Share this post:
email it!
|
bookmark it!
|
digg it!
|
reddit!
Posted by:
Jovan
Posted:
Thursday, October 23, 2008 6:30 AM
Filed under:
JavaScript
,
ComponentArt Web.UI
,
Input
,
MaskedInput
0 Comments
0
Comments
330 Views
MaskedInput Transform functionality
The format of the masked input is fully defined by the "Transform" it uses. A Transform is a client-side JavaScript object containing just three functions: validate – A function that takes a look at what the user just typed into the masked input box, and returns a boolean value: true if text is valid, false if it isn't. For example, if the transform is used to accept a Visa card number, and the user types in "4506/00020002-0002", this function returns true. (It just...
Read More
Share this post:
email it!
|
bookmark it!
|
digg it!
|
reddit!
Posted by:
Jovan
Posted:
Wednesday, October 22, 2008 7:06 AM
Filed under:
JavaScript
,
ComponentArt Web.UI
,
Input
,
MaskedInput
0 Comments
3
Comments
456 Views
Major input control Gotcha
Short Story: This will not work: < ComponentArt : NumberInput runat = "server" ID = "MyNumberInput" /> < input type = "button" value = "+" onclick = "MyNumberInput.increaseValue();" /> < input type = "button" value = "-" onclick = "MyNumberInput.decreaseValue();" /> This is how to correct it: < ComponentArt : NumberInput runat = "server" ID = "MyNumberInput" /> < input t...
Read More
Share this post:
email it!
|
bookmark it!
|
digg it!
|
reddit!
Posted by:
Jovan
Posted:
Tuesday, October 14, 2008 8:17 AM
Filed under:
JavaScript
,
ComponentArt Web.UI
,
Input
,
NumberInput
,
MaskedInput
3 Comments
4
Comments
6961 Views
Multiline strings in JavaScript
Myth: You can't have a string literal stretch across two lines of text in JavaScript. Fact: You can have multiline string literals in JavaScript in all browsers. Multiline (or is it "multi-line"?) strings are a fringe feature of programming languages. They are very rarely needed, so a lot of languages don't support them at all (VB.NET). And even when a language does support them (C#), most programmers are not even aware of that. How often have you seen something like this in re...
Read More
Share this post:
email it!
|
bookmark it!
|
digg it!
|
reddit!
Posted by:
Jovan
Posted:
Wednesday, October 17, 2007 4:53 PM
Filed under:
JavaScript
,
C#
4 Comments
2
Comments
4320 Views
Tackling Stubborn TD Style Definitions
" If you set a default style for the td tag in your stylesheet, like this, td {font-family: Arial, Helvetica, sans-serif; font-size: 11px; color: #333333;} then this will be used in your tab strip, no matter what style you create for the tab items " Questions like this are quite common in forums and support calls. An obvious way to avoid this conflict is to not have a default style for TD tags. However, this is not always practical - default TD style definitions are quite common, somet...
Read More
Share this post:
email it!
|
bookmark it!
|
digg it!
|
reddit!
Posted by:
Jovan
Posted:
Monday, June 18, 2007 2:05 PM
Filed under:
ComponentArt Web.UI
,
CSS
2 Comments
1
Comments
8909 Views
Client-side Date Format Localization in ASP.NET AJAX
Much buzz has already been created around new client-side localization features introduced with ASP.NET AJAX Beta 2. Most of it has focused on localized resources, which can now easily be retrieved from the server by client scripts. This makes sense - resources are arguably the most important aspect of localization. But not from a web control developer's point of view. When developing web controls, we deal with little actual content - for the most part, we are providing form for our customer...
Read More
Share this post:
email it!
|
bookmark it!
|
digg it!
|
reddit!
Posted by:
Jovan
Posted:
Friday, December 01, 2006 10:03 PM
Filed under:
ASP.NET AJAX
,
Calendar
1 Comments
0
Comments
10136 Views
Quick Type Conversions and Other JavaScript Tricks
I recently read a post in [Bertrand Le Roy's blog] titled [A nice and compact way to coerce to Boolean in JavaScript] . Having used JavaScript extensively for the past few years, I knew from the title what the post would be about - the lovely double negation: !!somevariable - the shortest way to say "parse boolean" in JavaScript. While the trick was not new to me, the blog post did give me the idea to share a couple of similar tips: Type Conversions A compact way to convert to inte...
Read More
Share this post:
email it!
|
bookmark it!
|
digg it!
|
reddit!
Posted by:
Jovan
Posted:
Tuesday, November 28, 2006 11:28 PM
Filed under:
JavaScript
0 Comments
Blogs On This Site
Miljan Braticevic
Thoughts on web user interfaces and component development.
Jovan's Blog
Ramblings of a web control developer.
The Blog of Milos
Web.UI news and more
Evan's Safari Planet
Next weeks guest: A dog and a baby dog!
Stephen Hatcher
I'm in your base, killing your dudes.
Phil Tucker
Absurdity is it's own message.
Filip Karadzic
Musings of an ex Java developer
Breon's Blog
im in ur page, hackin ur codez
Milena Braticevic
ComponentArt in the Community
Bojan Jovanovic
... and the program ran happily ever after.
This Blog
Home
Links
Subscriptions
RSS 2.0
Atom 1.0
Recent Posts
MaskedInput Transform Intellisense
Building in new MaskedInput Transforms
Customizing MaskedInput Transforms
MaskedInput Transform functionality
Major input control Gotcha
Archives
October 2008 (5)
October 2007 (1)
June 2007 (1)
December 2006 (1)
November 2006 (1)
ComponentArt and Web.UI are trademarks of ComponentArt Inc. Copyright © 2000-2006. All Rights Reserved.