Bug #2097
closeddoJavaScript not working with IE
0%
Description
I have serious issues running any custom javascript code running in IE. First I thought it's related to not yet loaded scripts, but after doing the most simple example I have the feeling it's a bug with Wt.
The following code is not working on IE, while all other browser have no problem with it:
Inside a plain WApplication constructor:
Wt::WText * textWidget = new Wt::WText("Test");
root()->addWidget(textWidget);
textWidget->doJavaScript("console.log('hello world')"); // IE chokes here (!?)
The loading indicator keeps visible forever. If you run the same page with the debug console open, there is no issue.
In more complex code Wt will give internal error messages. (but again keeps working with debug console open)
Environment:
Wt: latest git
OS: Windows 7 64x
Browser: IE10
Updated by Koen Deforche over 11 years ago
- Status changed from New to Rejected
- Assignee set to Koen Deforche
Hey,
IE does not understand 'console.log()' unless you have the debugger open. Yes, and that is not the weirdest 'feature' of IE :-)
Regards,
koen
Updated by Michael Knopke over 11 years ago
Koen, you made my day! Thanks a lot it was just this, everything works now, can't believe it. I spend days trying to "debug" (arrg), love microsoft