Project

General

Profile

Actions

Bug #2097

closed

doJavaScript not working with IE

Added by Michael Knopke over 11 years ago. Updated over 11 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
Target version:
Start date:
08/08/2013
Due date:
% Done:

0%

Estimated time:

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

Actions #1

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

Actions #2

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

Actions

Also available in: Atom PDF