iframe src from a variable

Sorry about such simple question, but I cannot make this work:
I’d like to set from a parent or calling function the src that contains an iframe’s URL.
This works:
view:“iframe”, id:“frame-bodyx”, src: “myurl.html”
this does not:
view:“iframe”, id:“frame-bodyx”, src: $$(‘help_window’).data_1

Regards,
Kate

You can set the URL as

$$("frame-body").load("http://google.com")

or

$$('frame-body').define("src", var_url);

Please, check the related article:

http://docs.webix.com/desktop__iframe.html#workingwithiframe

1 Like

Thank you!