Have you determined a maximum number of characters allowed in FCKEditor?
I seem to have hit a wall. It will display the text to be edited, but changes don't ... |
Need help with a regex for alphanumeric password, with at least 1 number and character, and the length must be between 8-20 characters.
I have this but doesn't seem to be working ... |
Is there way of generating a string made up of 250 underscores, without using a loop?
I want to avoid writing code like this:
var myString= '';
for (var i=0; i < 250; i++) ...
|
I have a variable that holds a number
var simpleNumber = 012345678;
I want to .split() this number and create an array that would be of each 3 numbers
the array should look like ... |
I have a list of digits number, say "123456", and I need to map it to a string, any string. The only constraint on the map functions are:
|
I have one string which contain number and character. I need to separate number and character.I have don't have a delimiter in between.How can i do this.
enter code here
Var selectedRow = ... |
I need to find out the names for Unicode characters when the user enters the number for it. An example would be to enter 0041 and get given "Latin Capital Letter ... |
|
How could I change this code to not allow a 0 and to strip out all non number characters?
<script type="text/javascript">
(function() {
...
|
I want a string split at every single character and put into an array. The string is:
var string = "hello";
Would you use the .split() ? If so how?
|
The following JavaScript code returns false if the string contains only numbers or characters other than [a-zA-Z0-9_].
function validate(n) {
return (!/^[\d]+$/.test(n) && /^[\w]+$/.test(n));
}
Is it possible to do this ... |
I need to check the text of an input .. if its number or any other character ..
the requirement is .. it should be in proper format .. and shouldn't contain ... |
How can I limit the number of characters that an input form allows?
I'm using a validation like this
//Last name
var x=document.forms["regForm"]["lname"].value
if (x==null || x=="")
{
alert("Last name must be ...
|
I need to compare one string with an other string.
Suppose textbox1 contains "this is my requirement" and textbox2 contains "check textbox".
I need to take first word of each textbox ... |
I would like to set up a home page where pressing any character (lowercase or uppercase) or any number redirects the user to the login page, as the home page itself ... |
I have a string that devides some data using ','. Now I want to count the occurences of ',' in that string. I tried:
var match = string.match('/[,]/i');
But this gives me ... |
var snumber1 = "123456789";
var scharacter2 = "abcdefgh";
there're two strings. how do i make sure snumber1 contains only numbers??
What regex??
|
Is there some algorithm(or its JavaScript implementation) to find the amount of shift in a word's position when the string containing the word was changed?
My project is an online editor ... |
I have a regex
/^([a-zA-Z0-9]+)$/
this just allows only alphanumerics but also if I insert only number(s) or only character(s) then also it accepts it. I want it to work ... |
I am using a Regex which is like:
/^(?=.*[0-9])(?=.*[a-zA-Z])([a-zA-Z0-9]+)$/
which is a Regex for alphanumeric with at least 1 number and 1 character.
But I am trying to have a Regex which avoids the ... |
I am having problems to get this to work.
The following javascript regex expects at least one number in the string.
/^[a-zA-Z0-9 ]*[0-9]+[a-zA-Z0-9 ]*$/;
But, I also want to allow a comma (",") ... |
/(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{6,8}/
This RegEx is supposed to validate a password, which should contain at least one digit, both lowercase and uppercase characters. Can anyone explain this RegEx by smaller components?
|
Hey guys, A little bit of explanation: I have a textarea with a specific width. I have wrap="off" set because I don't want to force my users to wrap if they don't want to. The reason for this is because this textarea is where the user is typing an email message. However I have a background image set on the textarea ... |
|
|
|
Hello I have the following code that validates my form prior to saving...among other things, it checks to make sure the field "claim_num" is not blank. How can I change this code so I can verify if the field "claim_num" has a minimum of 7 characters? Thanks Paul Code: [Select] ... |
|
I have hidden form field in a page. I populate it through JS and submit it. The problem is the data is text and it is really huge. The text is around 50000 chars. So when I submit the page no data is received at the backend. I do get the data if it is less i.e if I have few ... |
|
|
Hello all, Is there a way I can count the number of characters typed on the FCKeditor so that I can restrict any input from exceeding the maximum characters allowed? On the form containing the FCKeditor, I would also like to display the number of characters being typed so that the users know how many characters are remaining. Thank you |
Hey guys, i need some clever javascript to show the number of characters remaining in a |
|
I need to create a script that randomly creates an ID - a fifteen digit alphanumeric string (which may also contain a dash). In my mind I have something that loops from 1 to fifteen, and within that loop creates a random number. This trandom number is used to create a character by using a char number. Trouble is, I cannot ... |
Is there a way in Javascript to wholesale escape a large number of characters from a string? In PHP, one can use the following Syntax: $var = << |