Click here to Skip to main content
15,895,709 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: I get "ReferenceError:'myreq' is undefined" error for variable? Pin
jkirkerx19-Jul-12 8:42
professionaljkirkerx19-Jul-12 8:42 
AnswerRe: I get "ReferenceError:'myreq' is undefined" error for variable? Pin
enhzflep22-Jul-12 19:51
enhzflep22-Jul-12 19:51 
GeneralRe: I get "ReferenceError:'myreq' is undefined" error for variable? Pin
Peter_in_278022-Jul-12 20:07
professionalPeter_in_278022-Jul-12 20:07 
GeneralRe: I get "ReferenceError:'myreq' is undefined" error for variable? Pin
enhzflep22-Jul-12 20:19
enhzflep22-Jul-12 20:19 
GeneralRe: I get "ReferenceError:'myreq' is undefined" error for variable? Pin
Peter_in_278022-Jul-12 20:30
professionalPeter_in_278022-Jul-12 20:30 
GeneralRe: I get "ReferenceError:'myreq' is undefined" error for variable? Pin
enhzflep22-Jul-12 20:39
enhzflep22-Jul-12 20:39 
GeneralRe: I get "ReferenceError:'myreq' is undefined" error for variable? Pin
Peter_in_278022-Jul-12 20:55
professionalPeter_in_278022-Jul-12 20:55 
GeneralRe: I get "ReferenceError:'myreq' is undefined" error for variable? Pin
enhzflep24-Jul-12 7:28
enhzflep24-Jul-12 7:28 
Woo-hoo! I've looked at your username dozens of times and tried to work out what the number could have referred to. I kept coming back to the idea that it was a reference to a time ~ 800 years from now. Last night the penny dropped like a sledgehammer.


Guess what? I figured out where the ö character comes from. You were spot on - there's a pattern alright.... It's a deliberate feature of the board!

If you enter some javascript into the editor and it contains onXXXXXX functions in it, the first letter in the preview gets changed to an ö _unless_ it has been html encoded. Alan would still be bored though.. Smile | :)

Example:

Good - pre-block + html encoded
<!DOCTYPE html>
<html>
  <head>
  </head>
  <body>
    <button onclick="this.disabled='disabled';">Disable Me</button>
  </body>
</html>


Good - html encoded

<html>
<head>
</head>
<body>
<button onclick="this.disabled='disabled';">Disable Me</button>
</body>
</html>

Bad - in pre tags, not html encoded
<!DOCTYPE html>
<html>
  <head>
  </head>
  <body>
    <button onclick="this.disabled='disabled';">Disable Me</button>
  </body>
</html>


Bad - neither contained in pre block nor html-encoded




Disable Me


GeneralRe: I get "ReferenceError:'myreq' is undefined" error for variable? Pin
Peter_in_278024-Jul-12 13:20
professionalPeter_in_278024-Jul-12 13:20 
GeneralRe: I get "ReferenceError:'myreq' is undefined" error for variable? Pin
enhzflep24-Jul-12 19:06
enhzflep24-Jul-12 19:06 
GeneralStop a page moving upwards Pin
offroaderdan18-Jul-12 23:24
offroaderdan18-Jul-12 23:24 
GeneralRe: Stop a page moving upwards Pin
jkirkerx19-Jul-12 8:36
professionaljkirkerx19-Jul-12 8:36 
QuestionHow to develop Smart TV Apps? Pin
prithveesh.goel17-Jul-12 0:22
prithveesh.goel17-Jul-12 0:22 
QuestionRe: How to develop Smart TV Apps? Pin
markovl17-Jul-12 0:36
markovl17-Jul-12 0:36 
AnswerRe: How to develop Smart TV Apps? Pin
prithveesh.goel17-Jul-12 20:56
prithveesh.goel17-Jul-12 20:56 
AnswerRe: How to develop Smart TV Apps? Pin
Richard MacCutchan17-Jul-12 2:50
mveRichard MacCutchan17-Jul-12 2:50 
GeneralRe: How to develop Smart TV Apps? Pin
prithveesh.goel17-Jul-12 20:57
prithveesh.goel17-Jul-12 20:57 
GeneralRe: How to develop Smart TV Apps? Pin
Richard MacCutchan17-Jul-12 21:32
mveRichard MacCutchan17-Jul-12 21:32 
QuestionJavaScript Validation - DropDownLists Pin
EuphorialXTC15-Jul-12 23:04
EuphorialXTC15-Jul-12 23:04 
AnswerRe: JavaScript Validation - DropDownLists Pin
Sibasisjena16-Jul-12 0:08
professionalSibasisjena16-Jul-12 0:08 
AnswerRe: JavaScript Validation - DropDownLists Pin
jkirkerx19-Jul-12 8:57
professionaljkirkerx19-Jul-12 8:57 
Questionusing createElement, not working in IE8 on XP and Server 2003 Pin
jkirkerx13-Jul-12 16:42
professionaljkirkerx13-Jul-12 16:42 
General[solved] Re: using createElement, not working in IE8 on XP and Server 2003 Pin
jkirkerx15-Jul-12 16:46
professionaljkirkerx15-Jul-12 16:46 
Questionc# Webbrowser javascript submit then blank page Pin
koncuk12-Jul-12 3:36
koncuk12-Jul-12 3:36 
AnswerRe: c# Webbrowser javascript submit then blank page Pin
Sibasisjena12-Jul-12 4:30
professionalSibasisjena12-Jul-12 4:30 

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.