IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

[activeX] Bug NPObject only on FireFox Options · View
sedoc
Posted: Tuesday, January 17, 2012 9:01:22 AM
Rank: Member

Joined: 10/13/2011
Posts: 17
Hello,

With the same script, i have an error in Firefox (9.0.1) but that's working well in IE (7).

The error message is:
Error: Error setting property on NPObject!

My script is:
try {
var objAuthView = objAuthPlugIn.AuthenticView;
var curNode = objAuthView.Selection.FirstXMLData;
var childNode = curNode;
while ((curNode.Kind != 0) && ((curNode.Name != 'para'))) {
childNode = curNode;
curNode = curNode.Parent;
}
if (curNode.Kind != 0) {
//On test si le para a déjà un rectif
var myAttr = curNode.GetChildAttribute('rectif');
if (!(myAttr)) {
myAttr = createAttr(objAuthView, 'rectif', '');
curNode.appendChild(myAttr);
}
//on place la sélection dans le para de la balise
var myRange = objAuthView.Selection;
myRange.FirstXMLData = myAttr;
myRange.FirstXMLDataOffset = 0;
myRange.LastXMLData = myAttr;
myRange.LastXMLDataOffset = 0;
myRange.Select();
} else
alert("Impossible d'insérer un rectificatif à cette position.");
} catch (e) {
alert("Erreur : " + e);
}

Could you help me, please ?

Regards
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.