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.

Profile: sedoc
About
User Name: sedoc
Forum Rank: Member
Real Name:
Location
Occupation:
Interests:
Gender: None Specified
Statistics
Joined: Thursday, October 13, 2011
Last Visit: Tuesday, January 17, 2012 9:58:23 AM
Number of Posts: 17
[0.09% of all post / 0.00 posts per day]
Avatar
Last 10 Posts
Topic: [activeX] Bug NPObject only on FireFox
Posted: Tuesday, January 17, 2012 9:01:22 AM
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
Topic: Javascript always crash on first line in SPS
Posted: Tuesday, November 22, 2011 9:54:54 AM
Am I the only one with this problem?

It does not do it on every PC, but a majority.
Topic: Insert text like nodes into selection
Posted: Monday, November 21, 2011 7:54:20 AM
Ok, thank you.
Topic: Insert text like nodes into selection
Posted: Friday, November 18, 2011 1:30:21 PM
Well,

I red this: http://manual.altova.com/authenticbrowser/index.html?abobj_auth_xmldatasaveurl.htm
But i don't fing exemples... :-(
Topic: Insert text like nodes into selection
Posted: Friday, November 18, 2011 1:01:10 PM
Hello vlad,

Thank you for your reply.
Could you post an exemple, please ?

Regards.
Topic: Insert text like nodes into selection
Posted: Friday, November 18, 2011 8:27:49 AM
Ok, thanks you for your rapidity.

so, i make this for write the balise:
authenticRange.PerformAction(0, 'fig');
authenticRange.GotoPreviousCursorPosition().Select();
authenticRange.SetElementAttributeValue('fig', 'name', IDFigure);

How can i put the text "Illustration2" ?
I can't fing the command. :-(
Topic: Javascript always crash on first line in SPS
Posted: Wednesday, November 16, 2011 2:02:32 PM
Hello,

I have authentic Enterprise browser, I have a registration key test. I use an SPS that contains macros in JavaScript (and in GlobalDeclarations).
The activeX is correctly loaded, But when I want to execute an action that require javascript, I get an error. And in my debugger (VS2010), it crashes on the first line of any kind.
(after the crash, the macro is working properly)
I am in IE7 with Windows XP (the security of IE for this site is verry low).

How can I make sure I'm good with the Enterprise version, not the community version?
is there another reason could be that the javascript crash?

Regards
Topic: how to overwrite default save using put by post
Posted: Wednesday, November 16, 2011 1:58:41 PM
Isn't possible to get response of SavePost function ?
Topic: Insert text like nodes into selection
Posted: Monday, November 14, 2011 12:08:15 PM
Hello,

I use Authentic Browser in Javascript.
I want add text where is the cursor like "<fig name='fig05'>Illustration2</figure><p>Figure test</p>".

But the text is interpreted like text, and i want that is interpreted like XML.

i tried to use GetTextValueXMLDecoded, PerformAction, but i can't find the solution.

Could you help me ?
Topic: [Browser] Change language
Posted: Monday, November 7, 2011 2:51:40 PM
Ok,

Thank you for your informations.

Regards.

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