![]() | ![]() Products ![]() ![]() ![]() ![]() |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 4 of 4 total |
![]() |
Mon, May 2 2016 2:23 PM | Permanent Link |
Trinione | Hi:
I know JavaScript can be added via the 'external' interface. However, there are occasions I would like to include the JS file within my code via a TBrowser. Can a function that's been loaded via Browser1.DocumentText be called? In the demo file that would be Sum(1,2). Thanks. |
Mon, May 2 2016 2:23 PM | Permanent Link |
Trinione | Forgot to attach the Demo file. Here it is.
Attachments: external-element.zip |
Wed, May 4 2016 4:32 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. ![]() | << Can a function that's been loaded via Browser1.DocumentText be called? >> Yes: http://stackoverflow.com/questions/251420/invoking-javascript-code-in-an-iframe-from-the-parent-page and no. The "no" part is that you need to prototype the function as a method call of the content window of the frame element, and this is not an easy task. It involves messing around with the standard WebDOM unit so that you can inject your function as a method of the content window's class interface. Tim Young Elevate Software www.elevatesoft.com |
Wed, May 4 2016 10:49 PM | Permanent Link |
Trinione | Thanks....... I am sticking with 'No' as the answer.
![]() |
This web page was last updated on Friday, February 14, 2025 at 12:13 PM | Privacy Policy![]() © 2025 Elevate Software, Inc. All Rights Reserved Questions or comments ? ![]() |