Click here to Skip to main content
15,891,473 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: adapt datatable jquery to jee application Pin
Richard MacCutchan5-Aug-12 1:24
mveRichard MacCutchan5-Aug-12 1:24 
Questionshowmodaldialog return value undefined across domain Pin
Amr M. K.4-Aug-12 23:24
Amr M. K.4-Aug-12 23:24 
AnswerRe: showmodaldialog return value undefined across domain Pin
jkirkerx5-Aug-12 11:05
professionaljkirkerx5-Aug-12 11:05 
GeneralRe: showmodaldialog return value undefined across domain Pin
Amr M. K.6-Aug-12 22:05
Amr M. K.6-Aug-12 22:05 
AnswerRe: showmodaldialog return value undefined across domain Pin
BobJanova5-Aug-12 23:43
BobJanova5-Aug-12 23:43 
GeneralRe: showmodaldialog return value undefined across domain Pin
Amr M. K.6-Aug-12 21:26
Amr M. K.6-Aug-12 21:26 
QuestionEvalulating and passing RGB values from keydown Pin
jkirkerx2-Aug-12 8:12
professionaljkirkerx2-Aug-12 8:12 
AnswerRe: Evalulating and passing RGB values from keydown Pin
enhzflep2-Aug-12 9:58
enhzflep2-Aug-12 9:58 
Rather than evaluate the keystrokes themselves, I'd probably be tempted to try to just evaluate the text in an input control. You could create a validation function that was called in response to key-up/mouse-up/onchange events (not sure if mouse-up will catch pasting with the mouse)

Let's say you've got a string that represents the number 255.

JavaScript
var myStr = '255';
var myInt = parseInt(myStr);

if ((myInt != NaN) && (myInt < 256))
{
  doSomething();
}

else
  alert("Error\nYou must enter a number between 0 and 255");


If I've misunderstood your needs, sorry!
(still jealous you were at Xerox at such a pivotal time in PC history)
GeneralRe: Evalulating and passing RGB values from keydown Pin
jkirkerx2-Aug-12 11:54
professionaljkirkerx2-Aug-12 11:54 
AnswerRe: Evalulating and passing RGB values from keydown Pin
BobJanova5-Aug-12 23:31
BobJanova5-Aug-12 23:31 
GeneralRe: Evalulating and passing RGB values from keydown Pin
jkirkerx6-Aug-12 7:22
professionaljkirkerx6-Aug-12 7:22 
GeneralRe: Evalulating and passing RGB values from keydown Pin
BobJanova7-Aug-12 0:11
BobJanova7-Aug-12 0:11 
GeneralInstalling Pygame Pin
johtnkucz30-Jul-12 4:36
johtnkucz30-Jul-12 4:36 
GeneralRe: Installing Pygame Pin
johtnkucz30-Jul-12 4:45
johtnkucz30-Jul-12 4:45 
QuestionRe: Installing Pygame Pin
Richard MacCutchan30-Jul-12 6:14
mveRichard MacCutchan30-Jul-12 6:14 
AnswerRe: Installing Pygame Pin
Sandeep Mewara31-Jul-12 8:56
mveSandeep Mewara31-Jul-12 8:56 
GeneralRe: Installing Pygame Pin
Richard MacCutchan31-Jul-12 22:32
mveRichard MacCutchan31-Jul-12 22:32 
QuestionAnalysing an obfuscated malware script Pin
Bernhard Hiller29-Jul-12 21:48
Bernhard Hiller29-Jul-12 21:48 
AnswerRe: Analysing an obfuscated malware script Pin
Richard MacCutchan29-Jul-12 22:00
mveRichard MacCutchan29-Jul-12 22:00 
GeneralRe: Analysing an obfuscated malware script PinPopular
enhzflep30-Jul-12 1:43
enhzflep30-Jul-12 1:43 
GeneralRe: Analysing an obfuscated malware script Pin
Bernhard Hiller30-Jul-12 4:48
Bernhard Hiller30-Jul-12 4:48 
GeneralRe: Analysing an obfuscated malware script Pin
enhzflep30-Jul-12 23:41
enhzflep30-Jul-12 23:41 
GeneralRe: Analysing an obfuscated malware script Pin
Bernhard Hiller31-Jul-12 2:26
Bernhard Hiller31-Jul-12 2:26 
GeneralRe: Analysing an obfuscated malware script [edit] Pin
Lutosław1-Jun-13 4:10
Lutosław1-Jun-13 4:10 
GeneralRe: Analysing an obfuscated malware script Pin
jkirkerx30-Jul-12 11:19
professionaljkirkerx30-Jul-12 11:19 

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.