I'm using Wt 3.1.8 with Firefox 3.6.15 on Mac OS 10.6.6, and am encountering Wt 
internal errors.
My application requires the user to login, and then creates various windows, 
including
a log window that I want to auto-scroll as I append messages.  Koen Deforche 
advised me to do the following:
=====================================================
 /*
  * Little javascript trick to make sure we scroll along with new content
  */
 WApplication::instance()->doJavaScript(messages_->jsRef() + ".scrollTop += "
                    + messages_->jsRef() + ".scrollHeight;");
=====================================================


The problem appears to be that if I destroy this window, and create another one 
when the user logs in again, the javascript added with 'doJavaScript()' is 
trying to reference a non-existent window.

Having called the doJavaScript() method, is there any way to disable the 
javascript that was attached to the event with doJavaScript()?


On Nov 29, 2010, at 9:11 AM, Wim Dumon wrote:

> Hey,
> 
> To provide us with the information required to debug this, can you set
> <debug> to true in wt_config.xml, run within firebug, and see if you
> can provide us with some extra information about where the error
> happens? (stack trace, which class, ...)


------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to