Serg Posted April 13, 2018 Share Posted April 13, 2018 Как выполнить уже существующий скрипт в загруженной в UNIURLFRAME странице? Link to comment Share on other sites More sharing options...
Sherzod Posted April 13, 2018 Share Posted April 13, 2018 Здравствуйте, Какую версию, издание UniGUI Вы используете? Link to comment Share on other sites More sharing options...
Serg Posted April 13, 2018 Author Share Posted April 13, 2018 Добрый день! Триал текущий. Link to comment Share on other sites More sharing options...
Serg Posted April 13, 2018 Author Share Posted April 13, 2018 uniGUI Complete Trial Edition 1.0.2 Build 1449 Link to comment Share on other sites More sharing options...
Sherzod Posted April 13, 2018 Share Posted April 13, 2018 А что Вы загружаете в UNIURLFRAME? Link to comment Share on other sites More sharing options...
Serg Posted April 13, 2018 Author Share Posted April 13, 2018 Карту LeafLet c функциями javaScript Link to comment Share on other sites More sharing options...
Serg Posted April 13, 2018 Author Share Posted April 13, 2018 Но и простой пример с функцией вывода Alert не работает Link to comment Share on other sites More sharing options...
Serg Posted April 13, 2018 Author Share Posted April 13, 2018 или js:='alert(MainForm.UniURLFrame1.title);'; UniSession.JSCode(js); Link to comment Share on other sites More sharing options...
Serg Posted April 13, 2018 Author Share Posted April 13, 2018 или js:='alert('+UNIURLFrame1.JSName+'.body.el.dom.scrollHeight);'; Link to comment Share on other sites More sharing options...
Sherzod Posted April 13, 2018 Share Posted April 13, 2018 Содержимое UNIURLFrame1? Там что URL, HTML? Link to comment Share on other sites More sharing options...
Serg Posted April 13, 2018 Author Share Posted April 13, 2018 HTML Link to comment Share on other sites More sharing options...
Serg Posted April 13, 2018 Author Share Posted April 13, 2018 да хотя бы title алертом вывести) Link to comment Share on other sites More sharing options...
Sherzod Posted April 13, 2018 Share Posted April 13, 2018 Приведите HTML код если это возможно Link to comment Share on other sites More sharing options...
Serg Posted April 13, 2018 Author Share Posted April 13, 2018 <!doctype html> <html> <head> <style type="text/css"> #block {width:100px; height:100px; border:1px solid #ccc;} </style> <script src="http://code.jquery.com/jquery-1.9.1.js"></script> <script type="text/javascript"> function funonload() { $("#block").css("background-color", "yellow"); } </script> <meta charset="utf-8"> <title>TEST</title> </head> <body> <div id="block"></div> </body> </html> Link to comment Share on other sites More sharing options...
Serg Posted April 13, 2018 Author Share Posted April 13, 2018 Задачи 2. 1. Получить title 2. Выполнить funonload() Link to comment Share on other sites More sharing options...
Serg Posted April 13, 2018 Author Share Posted April 13, 2018 title можно вывести alert Link to comment Share on other sites More sharing options...
Serg Posted April 13, 2018 Author Share Posted April 13, 2018 Мы хотим купить. Но без такой возможности не сможем перенести функционал. Надо найти способ выполнять скрипты ) Link to comment Share on other sites More sharing options...
Serg Posted April 13, 2018 Author Share Posted April 13, 2018 ну вот... я думал такая возможность базовая Link to comment Share on other sites More sharing options...
Sherzod Posted April 13, 2018 Share Posted April 13, 2018 ну вот... я думал такая возможность базовая Да Вы правы, базовая MainForm.UniHTMLFrame1.iframe.contentDocument.title MainForm.UniHTMLFrame1.iframe.contentWindow.funonload() Link to comment Share on other sites More sharing options...
Serg Posted April 13, 2018 Author Share Posted April 13, 2018 Спасибо! Link to comment Share on other sites More sharing options...
Serg Posted October 26, 2018 Author Share Posted October 26, 2018 ShowMessage(MainForm.UniURLFrame1.iframe.contentDocument.title) не работает. Е2003 Undeclared identifier: 'iframe' Я забыл подключить какой-нибудь модуль? Link to comment Share on other sites More sharing options...
Sherzod Posted October 26, 2018 Share Posted October 26, 2018 Добрый день, Это после обновления? Link to comment Share on other sites More sharing options...
Serg Posted October 26, 2018 Author Share Posted October 26, 2018 Да Link to comment Share on other sites More sharing options...
Serg Posted October 26, 2018 Author Share Posted October 26, 2018 1480 Link to comment Share on other sites More sharing options...
Sherzod Posted October 26, 2018 Share Posted October 26, 2018 Я не смог воспроизвести, можете сделать небольшой тестовый случай для этого ?! Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now