Help with JTProgressbar

Help with JTProgressbar

Postby dbrazoli on Fri Oct 06, 2017 7:52 pm

Hello, Jon.
I hope all is well with you.
I need your precious help.
I am using the JTProgressBar example. I found it very interesting.
But I would like it when it reaches 100% the window closes automatically.
I saw the routine that there is a WaitWindow.hide () command, but the window does not close.
Would you help me ?

Grateful.

Daniel.
dbrazoli
 
Posts: 12
Joined: Thu Dec 19, 2013 6:33 pm

Re: Help with JTProgressbar

Postby jomitech on Mon Oct 09, 2017 10:22 am

Change the following line of code to make the window automatically close:

$ajaxResponse->addScriptCall( "stopProgress" );

to:

$ajaxResponse->script( "stopProgress" );
Jon
jomitech
Site Admin
 
Posts: 1894
Joined: Wed Oct 08, 2008 12:23 am

Re: Help with JTProgressbar

Postby dbrazoli on Mon Oct 09, 2017 12:05 pm

Thank you Jon.
I will do the change and test and I will return the result.
Grateful.
dbrazoli
 
Posts: 12
Joined: Thu Dec 19, 2013 6:33 pm

Re: Help with JTProgressbar

Postby dbrazoli on Tue Oct 10, 2017 5:49 pm

Hello, Jon.
I did as you told me, but it did not work.
Even at the end of the loop up to 100% the window will not close.
Here's how the code looks.

private function FinishProgress()
{
global $ajaxResponse;

$ajaxResponse->script("stopProgress");

$tempFile = $this->TempFileName();
if( file_exists( $tempFile ) )
unlink( $tempFile );
}

Is there anything else to be done?

Grateful.
Daniel
dbrazoli
 
Posts: 12
Joined: Thu Dec 19, 2013 6:33 pm

Re: Help with JTProgressbar

Postby jomitech on Thu Oct 12, 2017 4:35 pm

Try putting this:

$this->FinishProgress();

At the end of the Button1Click method.
Jon
jomitech
Site Admin
 
Posts: 1894
Joined: Wed Oct 08, 2008 12:23 am


Return to General

cron