NetTalk Central

Author Topic: What Triggers the Busy Image?  (Read 1109 times)

BradT

  • Newbie
  • *
  • Posts: 37
    • View Profile
    • Email
What Triggers the Busy Image?
« on: December 19, 2022, 03:39:07 PM »
What makes the busy image unhide and hide?

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11155
    • View Profile
Re: What Triggers the Busy Image?
« Reply #1 on: December 19, 2022, 08:12:21 PM »
many things.

BradT

  • Newbie
  • *
  • Posts: 37
    • View Profile
    • Email
Re: What Triggers the Busy Image?
« Reply #2 on: December 20, 2022, 06:48:14 AM »
Is there a way to force it to hide and unhide?

Alberto

  • Hero Member
  • *****
  • Posts: 1844
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: What Triggers the Busy Image?
« Reply #3 on: December 20, 2022, 01:24:11 PM »
Hi, you can use theese:

   p_web.Script('$("#_busy").css(''left'',''50%'').css(''top'',''40%'').css(''display'',''flex'');')

   p_web.Script('$("#_busy").css(''display'',''none'');')

but many asinc methods hides the busy, so, good luck...
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11155
    • View Profile
Re: What Triggers the Busy Image?
« Reply #4 on: December 22, 2022, 09:16:44 PM »
it's just a div id="_busy"
So yes, you can hide or show it.

In javascript (client side) you can just do
$('#_busy).hide()
or
$('#_busy).show()

On the server side it's more complex, because you can include script in a reply, but it'll only get executed when the reply is completely formed and completely sent to the client.

so typically you unhide on the client side, and hide on the server side.

Obviously you need to full understand how the engine is using it as well, because there are other things hiding and unhiding it.

In summary - you probably should not be hiding and unhiding that graphic yourself. If you want to notify the user of things happening, use your own graphic, or a progress bar.

cheers
Bruce