Vereis, tengo un ActiveX, el cual tiene programada una propiedad publica. Ok, sin embargo, cuando intento acceder a ella desde javascript, me da como que no existe. Esa propiedad, como todas las demas <Param Name='' /> estan en miControl.innerHTML.... ¿Alguien sabe por que es esto?, ¿Como puedo hacer para que me salga correctamente?
Codigo de mi pagina html
Código:
El Alert sale undefined. En el TextArea me salen todos los parametros:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>Untitled Page</title> </head> <script language="javascript" type="text/javascript"> function DameDocumentoFirmado() { alert(axFirma.XmlFirmado); txtFirmado.value = axFirma.innerHTML; } </script> <body> <table> <tr> <td> <object id="axFirma" classid="clsid:84E0F340-E943-4E50-BDE9-AC76D7736004"></object> </td> </tr> <tr> <td> <input type="button" onclick="javascript:DameDocumentoFirmado();" value="Leer dato firmado" id="btnBoton" /> </td> </tr> <tr> <td> <br /> <textarea id="txtFirmado" rows="15" cols="54"></textarea> </td> </tr> </table> </body> </html>
Código:
<PARAM NAME="XmlFirmado" VALUE='<SignedInfo xmlns="http://www.w3.org/2000/09/xmldsig#"><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /><Reference URI="#Documento"><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /><DigestValue>vakR+8Z/wHgPwpS/XeztSJBDBDo=</DigestValue></Reference></SignedInfo><SignatureValue xmlns="http://www.w3.org/2000/09/xmldsig#">5OSQfPguaK761+2UP7UJ7dDVKIwnTJC0eCU9KY/nzJVZ87NeOF/Z1gObBATTSlrlEaN+85OxS02TZSX9YS8ADVyr5s3KzM7ZC+aoxE4jSq34irwkunK8/faAPRVGZTJjszUr/gk480bipsNQfrb+c6xqnKhFnWYCCeJwP5ODsZM=</SignatureValue><KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#"><KeyValue><RSAKeyValue><Modulus>7T84wVxJgzVPBllgCNndCUjxSUVk9GfvoshfuY7+NdUbm5FgUjo/5VHVJhoFr2uMMtzDMyoWjcMNSKhGjzrNoFLbUk+AU4MKX6rqS+3E+amaUBUSwb4TSI5v3xBtJv9asN2QuWYk2HkDcYbI9XtPSz4/pSTBcRajVoWmQEeikZ0=</Modulus><Exponent>AQAB</Exponent></RSAKeyValue></KeyValue></KeyInfo><Object Id="Documento" xmlns="http://www.w3.org/2000/09/xmldsig#"><InformacionDocumento xmlns=""><nombre>crearCertificado.txt</nombre><contenido>bWFrZWNlcnQgLXIgLXBlIC1uICJDTj1DYXJsaXRvIEhldmlhIiAtYiAwMS8wMS8yMDAwIC1lIDAxLzAxLzIwOTkgLWVrdSAxLjMuNi4xLjUuNS43LjMuMyAtc3MgTXkNCg0KTk9UQTogTHVlZ28gaGF5IHF1ZSBpciBhbCBjb250ZW5lZG9yIGRlIGNlcnRpZmljYWRvcyB5IGV4cG9ydGFybG8u</contenido></InformacionDocumento></Object>'><PARAM NAME="AutoSize" VALUE="False"><PARAM NAME="AutoSizeMode" VALUE="GrowOnly"><PARAM NAME="AutoValidate" VALUE="EnablePreventFocusChange"><PARAM NAME="BorderStyle" VALUE="None"><PARAM NAME="CurrentAutoScaleDimensions" VALUE="6, 13"><PARAM NAME="AutoScroll" VALUE="False"><PARAM NAME="AutoScrollMargin" VALUE="0, 0"><PARAM NAME="AutoScrollMinSize" VALUE="0, 0"><PARAM NAME="AccessibleDescription" VALUE=""><PARAM NAME="AccessibleName" VALUE=""><PARAM NAME="AccessibleRole" VALUE="Default"><PARAM NAME="AllowDrop" VALUE="False"><PARAM NAME="Anchor" VALUE="Top, Left"><PARAM NAME="AutoScrollOffset" VALUE="0, 0"><PARAM NAME="BackColor" VALUE="Gainsboro"><PARAM NAME="BackgroundImage" VALUE=""><PARAM NAME="BackgroundImageLayout" VALUE="Tile"><PARAM NAME="CausesValidation" VALUE="True"><PARAM NAME="Cursor" VALUE="Default"><PARAM NAME="Dock" VALUE="None"><PARAM NAME="Enabled" VALUE="True"><PARAM NAME="Font" VALUE="Times New Roman, 16world"><PARAM NAME="ForeColor" VALUE="Black"><PARAM NAME="Location" VALUE="15, 20"><PARAM NAME="Margin" VALUE="3, 3, 3, 3"><PARAM NAME="MaximumSize" VALUE="0, 0"><PARAM NAME="MinimumSize" VALUE="0, 0"><PARAM NAME="Name" VALUE="CtrlFirmaDigital"><PARAM NAME="RightToLeft" VALUE="No"><PARAM NAME="Size" VALUE="456, 192"><PARAM NAME="TabIndex" VALUE="0"><PARAM NAME="TabStop" VALUE="True"><PARAM NAME="Tag" VALUE=""><PARAM NAME="UseWaitCursor" VALUE="False"><PARAM NAME="Visible" VALUE="True"><PARAM NAME="PreferredSize" VALUE="444, 170"><PARAM NAME="Padding" VALUE="0, 0, 0, 0"><PARAM NAME="ImeMode" VALUE="NoControl">
Si me pudiera alguien ayudar, se lo agradeceria.
Saludos.