• Resolved andre1ch

    (@andre1ch)


    How can I automatically insert the exchange rate of the Central Bank of the Russian Federation website in one of the fields, so that later I can use the resulting value in my calculations?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @andre1ch

    The implementation depends on the Central Bank of the Russian Federation. The plugin includes multiple alternatives to connect with third-party services: the cffProxy operation in the “Third-Party Connection” module and the SERVER-SIDE equations add-on.

    Learn more about these possible solutions by reading the following blog posts:

    https://cff.dwbooster.com/blog/2019/05/17/third-party-connection-module

    https://cff.dwbooster.com/blog/2018/10/01/server-side-equations

    The alternative to use depends on the third-party service.

    Best regards.

    Thread Starter andre1ch

    (@andre1ch)

    • Hello
    • I use the jQuery(‘#EUR’).text() command to get the rate I need into a form field for further calculations.
    • The problem is that sometimes I get the value in the cell I need, and sometimes zeros are displayed there.
    • Perhaps this happens because the courses have not yet had time to load on the page and there are still zeros, and the jQuery(‘#EUR’).text() command is already working and showing me these zero values.
    • Perhaps I need to make some kind of delay for the jQuery(‘#EUR’).text() command to execute or for the form to load?
    • Maybe I’m doing something else wrong?
    Plugin Author codepeople

    (@codepeople)

    Hello @andre1ch

    If the code you use to fill the <div id="EUR"></div> tag triggers an event after filling in it, you should hear it and evaluate the equations when the event is triggered.

    If the tag is populated in the page flow and not AJAX, you can re-evaluate the equations in the window load event:

    <script>jQuery(window).on('load', function(){EVALEQUATIONS();});</script>

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Insert Exchange Rates Automatically’ is closed to new replies.