Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Is it possible to fetch the string that its value changes every 5 seconds by javascript partial refresh

Featured Replies

Hello, everyone. I have a question.

I have web viewer object named "web". If I start a script running, Every 5 seconds, it fetches the string from the HTML that is shown in the web viewer, and keeps creating new records.

Just like this 

GetLayoutObjectAttribute ( "web" ; "content" )

Then the target value always get refreshed every 5 seconds.

javascript is just like this

        function updateLastvalue(new_last_value){
            var current_last_value = $('.last-value').text();
            var fixed_last_value = Number(new_last_value).toFixed(8);
            $('.last-value').text(fixed_last_value);
         
            // update
            document.title = fixed_last_value";
        }

and the number that I want to fetch but it changes every 5 seconds is just like this

 <td><span class="last-value”>297</a></td>

How can I take out this 297 and another numbers that continues changing?

GetLayoutObjectAttribute ( "web" ; "content" ) takes out only the number that was shown first. 

Can anyone help me with this?

Edited by megalomania

Create an account or sign in to comment

Similar Content

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.