Hello Ajith,

I modified hello.C (our hello world example) like this, and cannot see
the behavior you describe:
void HelloApplication::greet()
{
  /*
   * Update the text, using text input into the nameEdit_ field.
   */
  greeting_->setText("Hello there, " + nameEdit_->text());
  Sleep(5000); // <--- Added sleep function
}
This works as expected (tested current git on both FF and IE7): a
'loading' indicator is shown and 5 seconds later the contents of the
page is updated.

I understand that the problem is that Wt inserts the style="display:
none;" ? And it does this on Windows but not on Linux, and only when
you insert a Sleep()? I'm interested to see how this happens. I
suppose didn't happen to call WWidget::hide()?

Could you send me something that demonstrates this? What version of Wt
are you using and what browser?

Best regards,
Wim.

2009/8/11 Ajith James <[email protected]>:
> Thanks for your response..
> I will demonstrate a simple case.
>
> When we click a button and and in tht clicked function we put a Sleep().
> The whole container the button is contained is get destroyed.
> I checked with firebug and seen the div of the corresponding container gets
> none
> "<div id="o19d" class="CTestConnect" style="display: none;">"
>
>
>
>
> bSendCommand->clicked().connect(SLOT(this, UIModbus::SendCommand));
>
> in sendCommand  if we all a function from other class or just  put a sleep
> may be 2 seconds the whole container gets blank.
>
>
>
>
> Please let me know whether  u need more demonstration..
>
>
> Thanks,
> Ajith
>
>
>
>
> On Tue, Aug 11, 2009 at 1:24 PM, Wim Dumon <[email protected]> wrote:
>>
>> Hello Ajith,
>>
>> Do you have a (small) testcase that demonstrates this problem? You may
>> also mail it off-list.
>>
>> Regards,
>> Wim.
>>
>> 2009/8/11 Ajith James <[email protected]>:
>> > Hi
>> > I am a novice programer in Wt. I am using the wt windows version for my
>> > project.
>> > I am facing an issue now
>> > I called a windows function. The called function have a wait call and
>> > the wt
>> > container is getting blank after the delay.
>> > If there is no delay then the program works fine. The same code i tested
>> > in
>> > Linux and works well.
>> > Whether i need to make any configuration change for this to make the wt
>> > program to wait sometime for the response.
>> >
>> >
>> > Any suggestions are really appreciated.
>> >
>> > Thanks a lot.
>> > Ajith
>> >
>>
>>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
>> 30-Day
>> trial. Simplify your report design, integration and deployment - and focus
>> on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> witty-interest mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to