Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   accessing property of npapi plugin with javascript (https://www.delphipraxis.net/184394-accessing-property-npapi-plugin-javascript.html)

drama22 23. Mär 2015 09:50

accessing property of npapi plugin with javascript
 
i do something like this

Code:
<embed id="object" type="application/x-plugin" width="900" height="500">
  <param name="name" value="test" />
  <param name="pass" value="blabla" />
</embed>

<script>
var control = document.getElementById('object');
function myFunction() {
control.name=document.getElementById("name").value;
}
myFunction();
</script>
i simply can insert Param name value to my application but i have to repeat
Code:
control.name=document.getElementById("name").value;
each time i want to read other param is there any way to accsess property in napapi same as normal activex do with type library ?like for each param property = its value ?


Alle Zeitangaben in WEZ +1. Es ist jetzt 11:41 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz