Serg Posted October 26, 2018 Author Share Posted October 26, 2018 высылаю $U.zip 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 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 26, 2018 Share Posted October 26, 2018 16 minutes ago, Serg said: Это не верно! 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 38 minutes ago, Sherzod said: Внутри код, должен выполняться на стороне клиента Прошу прощения, внутри чего. 39 minutes ago, Sherzod said: Внутри код, должен выполняться на стороне клиента 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...
Sherzod Posted October 26, 2018 Share Posted October 26, 2018 Внутри ShowMessage 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 Мне нужно получить title из UniURLFrame Quote Link to comment Share on other sites More sharing options...
kazakoff Posted April 8, 2022 Share Posted April 8, 2022 On 4/13/2018 at 7:03 PM, Sherzod said: Да Вы правы, базовая MainForm.UniHTMLFrame1.iframe.contentDocument.title MainForm.UniHTMLFrame1.iframe.contentWindow.funonload() В чем проблема? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 8, 2022 Share Posted April 8, 2022 1 minute ago, kazakoff said: В чем проблема? Проблема в том, что это JS код. Quote Link to comment Share on other sites More sharing options...
kazakoff Posted April 8, 2022 Share Posted April 8, 2022 1 minute ago, Sherzod said: Проблема в том, что это JS код. Внезапно 😄 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 8, 2022 Share Posted April 8, 2022 On 4/13/2018 at 8:03 PM, Sherzod said: MainForm.UniHTMLFrame1.iframe.contentWindow.funonload() ... это JS код. На серверной стороне, один из возможных вариантов использования: UniHTMLFrame1.JSInterface.JSCall('iframe.contentWindow.funonload', []); Quote Link to comment Share on other sites More sharing options...
kazakoff Posted April 8, 2022 Share Posted April 8, 2022 Такой вариант вызывает ошибку. O2F.iframe.contentWindow.funonload(); (после покупки unigui какая-нибудь русская документация доступна? 🙃) Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 8, 2022 Share Posted April 8, 2022 31 minutes ago, kazakoff said: после покупки unigui какая-нибудь русская документация доступна? На данный момент только на английском. Quote Link to comment Share on other sites More sharing options...
kazakoff Posted April 8, 2022 Share Posted April 8, 2022 Дак как же выполнить эту простую функцию черт возьми 🙂 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 8, 2022 Share Posted April 8, 2022 Приведите примерный HTML код здесь. Quote Link to comment Share on other sites More sharing options...
kazakoff Posted April 8, 2022 Share Posted April 8, 2022 Я взял который писал Serg, я хочу разобраться как все работает, и даже его пример у меня не заработал. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 8, 2022 Share Posted April 8, 2022 3 minutes ago, kazakoff said: Я взял который писал Serg Простите, где !? Quote Link to comment Share on other sites More sharing options...
kazakoff Posted April 8, 2022 Share Posted April 8, 2022 On 4/13/2018 at 4:22 PM, Serg said: <!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...
Sherzod Posted April 8, 2022 Share Posted April 8, 2022 32 minutes ago, kazakoff said: вот этот Да, пожалуйста используйте UniURLFrame вместо UniHTMLFrame, и все заработает. 1. UniURLFrame1.HTML = ... 2. procedure TMainForm.UniButton2Click(Sender: TObject); begin UniURLFrame1.JSInterface.JSCall('iframe.contentWindow.funonload', []); end; 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.