Click here to Skip to main content
15,893,663 members
Home / Discussions / Web Development
   

Web Development

 
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 
QuestionI want to display the xml content differentiating the docs by fields names and values any help please.. Below is my xml file content.. Pin
Indudhara26-Oct-13 0:17
Indudhara26-Oct-13 0:17 
Questionenable / disable combobox using checkbox Pin
Jassim Rahma25-Oct-13 10:04
Jassim Rahma25-Oct-13 10:04 
AnswerRe: enable / disable combobox using checkbox Pin
Santosh K. Tripathi25-Oct-13 22:42
professionalSantosh K. Tripathi25-Oct-13 22:42 
Questionread bit value into checkbox in PHP Pin
Jassim Rahma25-Oct-13 2:48
Jassim Rahma25-Oct-13 2:48 
QuestionDynamic Data Scaffolding with static values Pin
vkEE24-Oct-13 9:39
vkEE24-Oct-13 9:39 
QuestionDynamic questionnaire Pin
vkEE24-Oct-13 8:00
vkEE24-Oct-13 8:00 
Questioninc or php for include files? Pin
Jassim Rahma23-Oct-13 23:53
Jassim Rahma23-Oct-13 23:53 
Questionread the text of <select> instead of value Pin
Jassim Rahma23-Oct-13 0:47
Jassim Rahma23-Oct-13 0:47 
Questionadd http to input box Pin
Jassim Rahma23-Oct-13 0:43
Jassim Rahma23-Oct-13 0:43 
QuestionHow To Save Google map as image Pin
Jak Anil22-Oct-13 20:26
Jak Anil22-Oct-13 20:26 

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.