Good day to all!
I need an Access database to prepare a storage base and a rule editor on some DSL. For editor functionality I use WebBrowser. When loading the form I use the WebBrowser.Navigate "<Path>/index.html" method WebBrowser.Navigate "<Path>/index.html" .
The html file contains one textarea element. A “javascript” script is installed on it using the codemirror library. The problem: when opening the index.html file through a browser or, most interestingly (for me), everything works fine in the WebBrowser control in Excel, and unfortunately, scripts do not work on the Access form. Below is the text index.html:
<!DOCTYPE html> <!-- saved from url=(0014)about:internet --> <html> <head> <title>CodeMirror</title> <meta http-equiv="x-ua-compatible" content="ie=edge"> <link rel="stylesheet" href="C:\Users\user1\Desktop\CM1\lib\codemirror.css"> <script src="C:\Users\user1\Desktop\CM1\lib\codemirror.js"></script> <script src="C:\Users\user1\Desktop\CM1\mode\xml\xml.js"></script> <script src="C:\Users\user1\Desktop\CM1\mode\javascript\javascript.js"> </script> <script src="C:\Users\user1\Desktop\CM1\mode\css\css.js"></script> <script src="C:\Users\user1\Desktop\CM1\mode\clike\clike.js"></script> <script src="C:\Users\user1\Desktop\CM1\mode\php/php.js"></script> </head> <body> <div id="container"> <textarea id="PHPcode" cols="70" rows="20">function</textarea> </div> <script> var editor = CodeMirror.fromTextArea(document.getElementById("PHPcode"), { lineNumbers: true, // Нумеровать каждую строчку. matchBrackets: true, mode: "application/x-httpd-php", indentUnit: 4, // Длина отступа в пробелах. indentWithTabs: true, enterMode: "keep", tabMode: "shift" }); </script> <style> .CodeMirror { border: 1px solid cornflowerblue; } </style> </body> </html> I beg you to help, how to make it so that in WebBrowser to work out the logic from index.html