Quote from
luishp on December 15, 2018, 9:55 pm
Hi @Kapacek,
I don't understand very well how are you using slGetHTMLCode, but that command is not intended for getting the content from an iFrame, as the iFrame content is considered to be outside the App scope.
In VisualNEO Web next version there will be a FileToVar action command just to get the content from any file from its URL to a variable. There will be also a LocalFileToVar action command to get the content from a local file the user has selected previously.
Meanwhile, if you need the HTML content from an iFrame try this:
BeginJS
$App.myvar=document.getElementById('iFrame1').contentWindow.document.body.innerHTML;
EndJS
Where myvar is the name of your VisualNEO Web variable and iFrame1 the name of the iFrame you want to get the content.
Let me know if you have success.
Hi @Kapacek,
I don't understand very well how are you using slGetHTMLCode, but that command is not intended for getting the content from an iFrame, as the iFrame content is considered to be outside the App scope.
In VisualNEO Web next version there will be a FileToVar action command just to get the content from any file from its URL to a variable. There will be also a LocalFileToVar action command to get the content from a local file the user has selected previously.
Meanwhile, if you need the HTML content from an iFrame try this:
BeginJS
$App.myvar=document.getElementById('iFrame1').contentWindow.document.body.innerHTML;
EndJS
Where myvar is the name of your VisualNEO Web variable and iFrame1 the name of the iFrame you want to get the content.
Let me know if you have success.