Atozed Forums
Splash screen thread - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: Splash screen thread (/thread-1033.html)

Pages: 1 2


RE: Splash screen thread - Jose Nilton Pace - 04-24-2019

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.


RE: Splash screen thread - matija - 04-24-2019

(04-24-2019, 11:57 AM)Jose Nilton Pace Wrote: 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.

That it will work progress bar i will change value aria-valuenow=30 and style="width: 30%" ... aria-valuenow=35 and style="width: 35%"