Announcements
Hi,
Is there a way to get an Element of an html-webresource. I have a function on an entityform in portals, which needs an element in a webresource. This webresource is on the form.
I can get the webresource with " document.getElementById("WebResource1") ". How can I get container1?
The webresource looks like this in the browser:
<iframe id="WebResource1" src="/_webresource/cr435_HTML1" >
#document
<html>
<head>
</head><body onfocusout="parent.setEmailRange();" style="overflow-wrap: break-word;" >
<div id="container1"> </div>
</body></html>
</iframe>
Hi partner,
Please use "document.getElementById("WebResource1").contentWindow.document.getElementById("container1")".
I inserted a same html into form and get this div in portal entity form.
Best Regards,
Leo
André Arnaud de Cal...
294,095
Super User 2025 Season 1
Martin Dráb
232,866
Most Valuable Professional
nmaenpaa
101,158
Moderator