Jump to content

Как выполнить уже существующий скрипт в загруженной в UNIURLFRAME странице?


Serg

Recommended Posts

<!doctype html>

<html>

<head>

<style type="text/css">

#block {width:100px; height:100px; border:1px solid #ccc;}

</style>


<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

Мы хотим купить. Но без такой возможности не сможем перенести функционал. Надо найти способ выполнять скрипты )

Link to comment
Share on other sites

ну вот... я думал такая возможность базовая

 

Да Вы правы, базовая

 

MainForm.UniHTMLFrame1.iframe.contentDocument.title

MainForm.UniHTMLFrame1.iframe.contentWindow.funonload()

Link to comment
Share on other sites

  • 6 months later...

ShowMessage(MainForm.UniURLFrame1.iframe.contentDocument.title)  не работает.

Е2003 Undeclared identifier: 'iframe'

 

Я забыл подключить какой-нибудь модуль?

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...