Questions tagged [masking]

Force user input to conform to given rules.

Input masking restricts inputs for a given UI element without actually performing validation. Instead of collecting and validating user input, the masking approach restricts the inputs that a user can make in the first place.

An example of this would be a text field that is set to accept telephone numbers from a given country: instead of collecting digits and letters, and then validating them against the format, an input-masked field will only allow digits to be input, and will only accept them in an order that forms a valid input.

When dealing with arrays / matrices 'masking' means to ignoring certain parts of the array an only use the unmasked elements for further calculations.

1153 questions
0
votes
1 answer

Mask elements of a list that are words, and convert the rest to integers in python

Let's say I have a list of lists, where one of the lists within this big list looks like this: ['blabblah1234', '2013-08-23T22:52:08.060', '56527.9529', '56527.9544', '109.7147', '0.0089', '14.3638', '0.0779', '14.3136', '0.0775', '14.3305',…
Arya
  • 189
  • 4
  • 17
0
votes
1 answer

How to mask a string that contains phone number in Oracle?

I have a table like below; ID(int) | P_DATE(date) | EXPLANATION(varchar2) ----------------------------------------------- 1 | 22.12.2013 | 'File upload' 2 | 31.12.2013 | 'Card Payment' 3 | 24.02.2014 | 'Unit…
Mehmet Ince
  • 4,059
  • 12
  • 45
  • 65
0
votes
1 answer

Conversion from int to 4 byte unsigned int

I'm trying to convert an int to a 4 byte unsigned ints. I was reading a post and I'm not sure what comparison does. I know that its a sub mask, but I'm not sure when to use the & and when to use the |. Lets use the number 6 as an example, if the LSB…
azureskys
  • 13
  • 6
0
votes
0 answers

Customized Masked input

I need a utility for a text box so that by default it have 60 or may be more '.' characters, as the user types in dots '.' will be replaced by the user input and if user presses backspace his character will be replaced by dot '.' i am using this for…
Deep Sharma
  • 3,374
  • 3
  • 29
  • 49
0
votes
1 answer

Masked Input Plugin not working

EDIT: I found the the answer which fixed my issue at this link How to make JQuery masked-input plugin working after AsyncPostback in asp.net Ajax Update pannel? I am using this plugin http://digitalbush.com/projects/masked-input-plugin/ My…
Robin Q
  • 62
  • 1
  • 9
0
votes
1 answer

Custom Clipboard Data

How can I store clipboard information as data that is represented in a non-standard, custom-defined way? My company has a custom-made SWT control for creating textboxes with masks, allowing a user to fill in a prompt for things such as phone…
Southpaw Hare
  • 1,535
  • 3
  • 24
  • 50
0
votes
2 answers

CGImageCreateWithMaskingColors returns null

I have a view with black text around which I want to create a white "glow". I figure I can do this by grabbing a screenshot, inverting the colors (it's only black and white), masking the black to transparent, then "jittering" the resulting image in…
user2320861
  • 1,391
  • 2
  • 11
  • 28
0
votes
1 answer

How to initialize a class

I am trying to setup field masks for my HTML form, and am going with IMask Step one was quite simple - upload the Java scripts to my server and then add
JefeTheTechy
  • 65
  • 1
  • 1
  • 7
0
votes
1 answer

Masking a forwarding domain with no webspace for the domain to show

I have a webspace on my own domain – let's call it my-domain.com. I'm hosting my friends website – let's call her Alice – on my webspaces subfolder alice which is therefore reachable under my-domain.com/alice. My friend Alice decides to buy herself…
CGee
  • 1,650
  • 5
  • 20
  • 31
0
votes
1 answer

jQuery Masked Input | Can't remove mask after correct entry to the phone number field

Well, I am trying to mask cellphone number field of my magento store. The mask I want to use is "(599) 999 9999". If user enter phone number correctly, I want to remove the mask and trim those whitespaces and parantheses like "(532) 123 45 67" ->…
ilkb
  • 33
  • 1
  • 8
0
votes
1 answer

IOS 7 masking issue - Not able save masked image from uiimageview

I have this piece of code working fine in IOS 6 but not saving masked image in IOS7, any explanation,suggestion ? //Masking the image - (UIImage*) maskImage:(UIImage *)image withMask:(UIImage *)maskImage { CGImageRef maskRef =…
Ankuribc
  • 59
  • 1
  • 5
0
votes
1 answer

Subnet Masking - Is the following calculations right

Had my own self notes which has gone missing in the worst of times. Desperately trying to figure out if I have got the calculations right for subnet masking in the following questions. I have answered them all. Just wish to be sure I got it right.…
kar
  • 4,791
  • 12
  • 49
  • 74
0
votes
3 answers

Centralized way/system for defining input mask

We currently use the following logic to mask the inputs: Set a specific class to several inputs In document.ready() bind a propertychange event with the rules: $('table tbody > tr >…
VSP
  • 2,367
  • 8
  • 38
  • 59
0
votes
2 answers

Navigation bar masking

What I want to achieve here, is to transparent navigation bar hide anything underneath and leave background only. So if you scroll down the page anything that goes under fixed navbar will be hidden. I've googled it but didn't found any satisfying…
user2660811
  • 243
  • 4
  • 9
  • 16
0
votes
1 answer

domain forwarding/masking with ASP MVC anti-forgery token error

My MVC site uses the antiforgeryToken code, which works well in chrome, firefox. However, in IE10, I have noticed that it gives me the error: required anti-forgery cookie "__RequestVerificationToken" is not present Definitely a cookie related issue…