Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  JavaScript    escape sequenses when using javascript

Moderators: e_phoenix13
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Junior Member
Posted
I am trying to change viewpoint text dynamically through javascript.
Now what I need to do is find a way to use double quatation(""). I am able to to do it from the MTX file using the &quote; character. When I try doing it from javascript using SetProperty function, I get errors. Is there an easy way to settle this problem?
 
Posts: 3 | Registered: November 01, 2007Reply With QuoteEdit or Delete MessageReport This Post
EnIgMaTiCScOrPioN
Member
Picture of e_phoenix13
Posted Hide Post
Hey,

Try this Javascript function..

function changeText() {
	vmp.SetProperty('TextLayerDataName', 'text', "''NEW TEXT''", 'String');
	vmp.Render();
}



Cheers,

Anup
 
Posts: 557 | Location: India | Registered: February 12, 2003Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 

Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  JavaScript    escape sequenses when using javascript