Project

General

Profile

Actions

Support #1875

closed

WDialog WMessageBox error in my project

Added by Manfred Fuchs almost 11 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
04/24/2013
Due date:
% Done:

0%

Estimated time:

Description

If i use WDialog or WMessageBox the following error occurs Wt3.3.0:

IE9: works fine.

Safari: Wt internal error: TypeError: 'undefined' is not an object (evaluating 'g.wtResize=o'), code: undefined, description: undefined

Crome: Wt internal error: TypeError: Cannot set property 'wtResize' of undefined, code: undefined, description: undefined

FireFox: Wt internal error: [Exception... "An invalid or illegal string was specified" code: "12" nsresult: "0x8053000c (SyntaxError)" location: "http://10.10.10.10/?wtd=RHCkkgyp&sid=1508311342&htmlHistory=true&deployPath=%2F&request=script&rand=1787122517 Line: 165"], code: 12, description: undefined

The examples works fine. http://www.webtoolkit.eu/widgets/layout/dialogs

Any help would be greatly appreciated.

Code:

itsWMessageBox = new Wt::WMessageBox

("Status",

\"

Ready to launch the rocket...

\"

\"

Launch the rocket immediately?

\",

Wt::Information, Wt::Yes | Wt::No);

itsWMessageBox->setModal(false);

itsWMessageBox->buttonClicked().connect(this, &TR800Application::wdialogtest_copy);

itsWMessageBox->show();

See the attached file for the generated JavaScript code.


Files

WMessageBox_Error.js (18.4 KB) WMessageBox_Error.js generated JavaScript code Manfred Fuchs, 04/24/2013 02:04 PM
Actions #1

Updated by Wim Dumon almost 11 years ago

Could this be a build problem of some kind? Can you provide us with a test case?

It seems to me that the error is in src/js/WDialog.js, line 119 (layoutContainer.wtResize = layoutResize;) I can't think of how layoutContainer could be null there.

BR,

Wim.

Actions #2

Updated by Wim Dumon almost 11 years ago

  • Status changed from New to Feedback
Actions #3

Updated by Manfred Fuchs almost 11 years ago

Hello Wim,

in my wt_config.xml file the send-xhtml-mime-type was set to true.

true

if i change to

false

it works with any browser.

Actions #4

Updated by Koen Deforche almost 11 years ago

  • Status changed from Feedback to InProgress
  • Assignee set to Koen Deforche
  • Target version set to 3.3.1

Hey,

We are considering to remove XHTML1 mime type support from Wt as it does not add anything anymore with the advent and adoption of HTML5.

Regards,

koen

Actions #5

Updated by Koen Deforche over 10 years ago

  • Status changed from InProgress to Resolved

send-xhtml-mime-type being removed

Actions #6

Updated by Koen Deforche over 10 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF