Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Splash screen thread
#11
Hi Matija. To use your Callback to update, you need an ID for your progress-bar.

Quote:<div class="progress">
   <div class="progress-bar progress-bar-info progress-bar-striped" role="progressbar" aria-valuenow="30" aria-valuemin="0" aria-valuemax="100" style="width:50%">
      {%ProgressWait%}
   </div>
</div> 

Maybe: WebApplication.CallBackResponse.AddJavaScriptToExecuteAsCDATA('document.getElementById("aria-valuenow").value=' + ProgressValue + ' )';

Error in processAjaxExecute when evaluating: document.getElementById('aria-valuenow').value=0 Cannot set property 'value' of null

Are you trying to give a getElementById in an element without an ID, Change your html:
PHP Code:
<div class="progress">
 
  <div id="ProgressWait" class="progress-bar progress-bar-info progress-bar-striped" role="progressbar" aria-valuenow="30" aria-valuemin="0" aria-valuemax="100" style="width:50%">
 
  </div>
</
div
Code:
WebApplication.CallBackResponse.AddJavaScriptToExecuteAsCDATA( 'document.getElementById("ProgressWait").value=' + ProgressValue + ';' );
It may need some tweaking, but the idea is this.
Reply


Messages In This Thread
Splash screen thread - by matija - 04-17-2019, 07:19 AM
RE: Splash screen thread - by kudzu - 04-17-2019, 02:55 PM
RE: Splash screen thread - by DanBarclay - 04-18-2019, 06:11 AM
RE: Splash screen thread - by matija - 04-18-2019, 07:47 AM
RE: Splash screen thread - by kudzu - 04-18-2019, 01:06 PM
RE: Splash screen thread - by DanBarclay - 04-19-2019, 04:39 AM
RE: Splash screen thread - by matija - 04-23-2019, 10:55 AM
RE: Splash screen thread - by Jose Nilton Pace - 04-23-2019, 12:06 PM
RE: Splash screen thread - by matija - 04-24-2019, 05:38 AM
RE: Splash screen thread - by DanBarclay - 04-24-2019, 05:42 AM
RE: Splash screen thread - by Jose Nilton Pace - 04-24-2019, 11:57 AM
RE: Splash screen thread - by matija - 04-24-2019, 01:06 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)