Support #1875
closedWDialog WMessageBox error in my project
0%
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
Updated by Wim Dumon over 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.
Updated by Manfred Fuchs over 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.
Updated by Koen Deforche over 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
Updated by Koen Deforche over 11 years ago
- Status changed from InProgress to Resolved
send-xhtml-mime-type being removed
Updated by Koen Deforche over 11 years ago
- Status changed from Resolved to Closed