1

Topic: accessing property of npapi with javascript

iam using NPAPI plugin framework from  Yury Sidorov  but he is not online any more to get help from him
here is his framework  https://www.mozdev.org/bugs/show_bug.cgi?id=8708 as you can see no one replay scene 2013
i created some property inside my delphi dll application and here is the code

 

protected
    { Protected declarations }
    function Get_name: Variant;
    function Get_pass: Variant;
    procedure Set_name(const name: Variant);
    procedure Set_pass(const pass: Variant);
  published
    // Properties and methods available for scripting
    // Properties can be of any data type
    property name: Variant read Get_name write Set_name;
    property pass: Variant read Get_pass write Set_pass;

  end;

and here is procedures

function Tpro.Get_name: Variant;
begin
   Result := Gname;
end;

    procedure Tpro.Set_name(const name: Variant);
    begin
     Gname := string(name);
    end;

    function Tpro.Get_pass: Variant;
    begin
      Result := password;
    end;

    procedure Tpro.Set_pass(const pass: Variant);
    begin
       password := string(pass);
    end;

and here is my html to get plugin

<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();

i simply can insert Param name value to my application but i have to repeat 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 ?