Einzelnen Beitrag anzeigen

drama22

Registriert seit: 12. Jan 2013
88 Beiträge
 
#1

accessing property of npapi plugin with javascript

  Alt 23. Mär 2015, 09:50
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 ?
  Mit Zitat antworten Zitat