UI Page reloadWindow() ONLY UI Page window

xiaix
Tera Guru

I have a widget on my homepage.   It's just a simple UI Page that pulls some stats.   I want this widget (ui page) to refresh independently of   everything else.   Very similar if not the same how a live feed would work.

Here's an example of what I have:

<script>

        function reloadThisWindow()

        {

                  reloadWindow(window);

        }

</script>

<table>

        <tr>

                  <td>

                            Yadda yadday some dynamic stuff pulled from a GlideRecord

                  </td>

        </tr>

</table>

<script>setInterval(function () {reloadThisWindow()}, 10000);</script>

This reloads the entire page every 10 seconds, but I need it to only reload this UI Page (widget), NOT the whole page.

I tried reloadWindow(this); but it too reloaded the entire page.

What parameter can I pass to tell it to only reload this ui page?

6 REPLIES 6

xiaix
Tera Guru

Screen Shot 07-23-15 at 08.43 AM.JPG



I basically want it to function exactly like this tiny refresh button works on the UI page, but set on my javascript timer.


did you ever figure this out? I think I'm wanting to do something like this as well...where the content inside a widget refreshes but leaves the rest of the page alone...


Nope, never did.   I converted what I needed into the Service Portal using Angular, so the initial code I needed this is there.   I would still love to know how to get this to work though.


i will check out Service Portal. Thank you!