Hallo!

When I try to pass certain text as an argument to 
Ext::TextEdit::setText(), a following error occurs:

Wt internal error: SyntaxError: unterminated string literal, code: 
undefined, description: undefined

I am using wt 2.1.3 with extjs 2.1

The text, which causes an error follows:

================================================================
&nbsp;<h2>Detailed Description</h2>
A WDialog emulates a modal window.
<p>
A modal window blocks the user interface, and does not allow the user
to interact with any other part of the user interface until the dialog
is closed.</p><p>
There are two distinct ways for using a WDialog window.</p><p>
The easiest way is using the <a class="el" 
href="http://localhost/Docs/wt-ref/classWt_1_1WDialog.html#e56cf798aba9f09a8869df50d3f334a6";
 
title="Execute the dialog in a recursive event loop.">exec()</a> method: 
after creating a WDialog window, call the <a class="el" 
href="http://localhost/Docs/wt-ref/classWt_1_1WDialog.html#e56cf798aba9f09a8869df50d3f334a6";
 
title="Execute the dialog in a recursive event loop.">exec()</a>
method which blocks until the dialog window is closed, and returns the
dialog result. Typically, an OK button will be connected to the <a 
class="el" 
href="http://localhost/Docs/wt-ref/classWt_1_1WDialog.html#fab6f75ebb2d2970ebe0bbf1cf19f288";
 
title="Stop a recursive event loop with result is 
Accepted.">accept()</a> slot, and a Cancel button to the <a class="el" 
href="http://localhost/Docs/wt-ref/classWt_1_1WDialog.html#fcff2ea14c4ae79b2fc7bac1a86b0062";
 
title="Stop a recursive event loop with result is Rejected.">reject()</a>
slot. This solution has the drawback that it is not scalable to many
concurrent sessions, since every recursive event loop (which is running
durring the <a class="el" 
href="http://localhost/Docs/wt-ref/classWt_1_1WDialog.html#e56cf798aba9f09a8869df50d3f334a6";
 
title="Execute the dialog in a recursive event loop.">exec()</a> method) 
locks a thread. Therefore it is only suitable for software to be 
deployed on an intranet.</p><p>
A second way is by treating the WDialog as another widget. In this
case, the WDialog is created with the proper content, and for example
an OK button is connected to a method which deletes the dialog. Unlike
other widgets, a dialog is hidden by default. You must use the method <a 
class="el" 
href="http://localhost/Docs/wt-ref/classWt_1_1WWidget.html#52dcef5a385ddfa0a8c3e6c20000f181";
 
title="Show this WWidget.">show()</a> or setHidden(true) to show the 
dialog.</p><p>
Widgets may be added to the dialog, by adding to the <a class="el" 
href="http://localhost/Docs/wt-ref/classWt_1_1WDialog.html#10f2f5df7ee5762845bf7ba334f170ae";
 
title="Get the dialog contents container.">contents()</a> 
ContainerWidget.</p><p>
Only one WDialog window may exist at any time in a single application.
An attempt to instantiate a second dialog will result in an exception
that terminates the session.</p>
================================================================

Best regards!
-- 
Michael Ivanov

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to