• Resolved zukenstein

    (@zukenstein)


    Hi again ??

    Is it possible to:
    Load in an html field, an iframe with a link to an external webpage within it that only has a figure like 9988 on the page, then use the figure that shows in the html field in a calculation field?

    i.e. html field fieldname123 loads external page via iframe and just shows 9988.
    Calculation field fieldname456 uses fieldname123 value within its formula.

    Hope I explained that ok

    Thanks

    • This topic was modified 3 years, 11 months ago by zukenstein.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @zukenstein

    I guess you should read the following post to understand the way a parent page can communicate with a child page loaded by an <iframe>. This process includes security restrictions, and limitations:

    https://javascript.info/cross-window-communication

    Best regards.

    Thread Starter zukenstein

    (@zukenstein)

    ok thanks I’ll check that out

    Thread Starter zukenstein

    (@zukenstein)

    I can get the “number” to show in the html field ok using the iframe, I just need to know how to use it within the calculation field now.

    Is there something I need to do to get the calculation field to recognise the html field figure as a number only?

    Thanks

    Plugin Author codepeople

    (@codepeople)

    Hello @zukenstein

    You cannot directly access the information loaded by an iframe. You must understand the iframe tag is like a browser embedded into another browser, each of them running in its own context. The number you are referring to is not in the “HTML Content” field. This number belongs to the page loaded by the iframe. It is a different context. Our plugin does not include an operation to read the information loaded by another page into an iframe. So, you must implement this behavior by yourself using javascript code. Please, read the post I recommended you previously:

    https://javascript.info/cross-window-communication

    Best regards.

    Thread Starter zukenstein

    (@zukenstein)

    Ok Thanks I’ll go into it in a bit more depth

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Usinging external value via iframe’ is closed to new replies.