Click here to Skip to main content
15,901,283 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: SVG in IE8 Pin
Paulo Augusto Kunzel4-Nov-13 3:43
professionalPaulo Augusto Kunzel4-Nov-13 3:43 
GeneralRe: SVG in IE8 Pin
ThetaClear5-Nov-13 10:08
ThetaClear5-Nov-13 10:08 
GeneralRe: SVG in IE8 Pin
Paulo Augusto Kunzel5-Nov-13 11:47
professionalPaulo Augusto Kunzel5-Nov-13 11:47 
Question(HTML5 + Javascript + javascript Libs) or Razor Engine Pin
OmniSource28-Oct-13 22:48
OmniSource28-Oct-13 22:48 
Questionhow to password reminder Pin
Jassim Rahma28-Oct-13 11:00
Jassim Rahma28-Oct-13 11:00 
AnswerRe: how to password reminder Pin
Richard Deeming28-Oct-13 12:33
mveRichard Deeming28-Oct-13 12:33 
QuestionASP Net WebAPI Newby Question Pin
Kevin Marois28-Oct-13 6:14
professionalKevin Marois28-Oct-13 6:14 
Questionget $_GET["id"] in window.location in PHP Pin
Jassim Rahma27-Oct-13 23:49
Jassim Rahma27-Oct-13 23:49 
SuggestionRe: get $_GET["id"] in window.location in PHP Pin
Richard MacCutchan28-Oct-13 2:09
mveRichard MacCutchan28-Oct-13 2:09 
AnswerRe: get $_GET["id"] in window.location in PHP Pin
Killzone DeathMan9-Jan-14 1:11
Killzone DeathMan9-Jan-14 1:11 
Questionwhy getting Strict Standards: Only variables should be passed by reference? Pin
Jassim Rahma27-Oct-13 23:20
Jassim Rahma27-Oct-13 23:20 
Questionexpire login's session Pin
Jassim Rahma27-Oct-13 0:06
Jassim Rahma27-Oct-13 0:06 
QuestionRe: expire login's session Pin
Richard MacCutchan27-Oct-13 2:07
mveRichard MacCutchan27-Oct-13 2:07 
SuggestionRe: expire login's session Pin
thatraja28-Oct-13 1:02
professionalthatraja28-Oct-13 1:02 
Questionprofile address url validation Pin
Jassim Rahma26-Oct-13 11:05
Jassim Rahma26-Oct-13 11:05 
AnswerRe: profile address url validation Pin
Thomas Daniels26-Oct-13 23:43
mentorThomas Daniels26-Oct-13 23:43 
GeneralRe: profile address url validation Pin
Jassim Rahma26-Oct-13 23:56
Jassim Rahma26-Oct-13 23:56 
AnswerRe: profile address url validation Pin
Thomas Daniels27-Oct-13 5:39
mentorThomas Daniels27-Oct-13 5:39 
Yes, you can do that using JavaScript, but after submitting the form, ALWAYS validate it from the server-side language (PHP in this case). The reason is that people could disable JavaScript in their browser, and then the text box wouldn't be validated anymore.
For the JavaScript, try this:
JavaScript
var inputField = document.getElementById('put-your-id-here');
inputField.onkeyup = function(e) {
    e = e || window.event;
    var re = /[^\w.]/;
    inputField.value = inputField.value.replace(re, '');
};

The quick red ProgramFOX jumps right over the Lazy<Dog>.

My latest article: Create an HTML5 (and JavaScript) Maze Game with a timer

My group: C# Programmers Group

AnswerRe: profile address url validation Pin
Bernhard Hiller27-Oct-13 23:24
Bernhard Hiller27-Oct-13 23:24 
QuestionNetwork for web hosting Pin
is516726-Oct-13 8:24
is516726-Oct-13 8:24 
Questionmake <select> NOT required if checkbox is checked Pin
Jassim Rahma26-Oct-13 2:10
Jassim Rahma26-Oct-13 2:10 
QuestionYears in Descending Order Pin
Jassim Rahma26-Oct-13 0:53
Jassim Rahma26-Oct-13 0:53 
AnswerRe: Years in Descending Order Pin
Richard MacCutchan26-Oct-13 21:42
mveRichard MacCutchan26-Oct-13 21:42 
GeneralRe: Years in Descending Order Pin
Jassim Rahma26-Oct-13 22:54
Jassim Rahma26-Oct-13 22:54 
Questionplaceholder even if focus Pin
Jassim Rahma26-Oct-13 0:49
Jassim Rahma26-Oct-13 0:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.