Serg Posted April 13, 2018 Share Posted April 13, 2018 Как выполнить уже существующий скрипт в загруженной в UNIURLFRAME странице? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 13, 2018 Share Posted April 13, 2018 Здравствуйте, Какую версию, издание UniGUI Вы используете? Quote Link to comment Share on other sites More sharing options...
Serg Posted April 13, 2018 Author Share Posted April 13, 2018 Добрый день! Триал текущий. Quote 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 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 13, 2018 Share Posted April 13, 2018 А что Вы загружаете в UNIURLFRAME? Quote Link to comment Share on other sites More sharing options...
Serg Posted April 13, 2018 Author Share Posted April 13, 2018 Карту LeafLet c функциями javaScript Quote Link to comment Share on other sites More sharing options...
Serg Posted April 13, 2018 Author Share Posted April 13, 2018 Но и простой пример с функцией вывода Alert не работает Quote 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); Quote 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);'; Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 13, 2018 Share Posted April 13, 2018 Содержимое UNIURLFrame1? Там что URL, HTML? Quote Link to comment Share on other sites More sharing options...
Serg Posted April 13, 2018 Author Share Posted April 13, 2018 HTML Quote Link to comment Share on other sites More sharing options...
Serg Posted April 13, 2018 Author Share Posted April 13, 2018 да хотя бы title алертом вывести) Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 13, 2018 Share Posted April 13, 2018 Приведите HTML код если это возможно Quote 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> Quote 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() Quote Link to comment Share on other sites More sharing options...
Serg Posted April 13, 2018 Author Share Posted April 13, 2018 title можно вывести alert Quote Link to comment Share on other sites More sharing options...
Serg Posted April 13, 2018 Author Share Posted April 13, 2018 Мы хотим купить. Но без такой возможности не сможем перенести функционал. Надо найти способ выполнять скрипты ) Quote Link to comment Share on other sites More sharing options...
Serg Posted April 13, 2018 Author Share Posted April 13, 2018 ну вот... я думал такая возможность базовая Quote 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() Quote Link to comment Share on other sites More sharing options...
Serg Posted April 13, 2018 Author Share Posted April 13, 2018 Спасибо! Quote 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' Я забыл подключить какой-нибудь модуль? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 26, 2018 Share Posted October 26, 2018 Добрый день, Это после обновления? Quote Link to comment Share on other sites More sharing options...
Serg Posted October 26, 2018 Author Share Posted October 26, 2018 Да Quote Link to comment Share on other sites More sharing options...
Serg Posted October 26, 2018 Author Share Posted October 26, 2018 1480 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 26, 2018 Share Posted October 26, 2018 Я не смог воспроизвести, можете сделать небольшой тестовый случай для этого ?! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.