Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Javascript and LoadStateFromXmlString
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Javascript and LoadStateFromXmlString

 Post Reply Post Reply
Author
Message
Maxime View Drop Down
Newbie
Newbie


Joined: 22 December 2004
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote Maxime Quote  Post ReplyReply Direct Link To This Post Topic: Javascript and LoadStateFromXmlString
    Posted: 14 April 2005 at 5:43am

When i try this code lines in javascript, i get a "typeError" error.
With the evaluation activeX (version 9.6.0.0), the same script worked, but not with registered component (version 9.6.0.1)

var xmlString = new String();
xmlString = CommandBars1.SaveStateToXMLString("MyProfile", CommandBars1.CreateStateOptions());
CommandBars1.LoadStateFromXMLString( "MyProfile", xmlString, CommandBars1.CreateStateOptions() );

The Same script in VB works. Maybe the variable types are differents between VB en Javascript (String type)



Edited by Maxime
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.109 seconds.