This project is read-only.

Are there any, get/setXML() webpage/js callable Methods for LiveGeometry?

May 2, 2011 at 5:14 AM

 

Hi,

I would appreciate having some access to the LiveGeometry silverlight object from

javascript, mainly, something like... 

LG.setXML(xml_drawing_string);
LG.getXML() ->xml_drawing_string

which would allow us to load and get the current Drawing's xml via javascript on the containing webpage.

 

I have read...

http://www.livegeometry.com/documentation
http://livegeometry.codeplex.com
http://blogs.msdn.com/b/kirillosenkov/ 

and watched 

http://events.boostweb20.com/Events/SeattleCodeCamp2010/default.aspx#state=sessionCode%242011-6

internally LiveGeometry will follow LINKS and there is 

<param name="initParams" value="LoadFile=http://127.0.0.1:2/demo.xml,ShowToolbar=false" />

which aside from needing, a web server running with  

crossdomain.xml

<?xml version="1.0"?>

<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">

<cross-domain-policy><allow-http-request-headers-from domain="*" headers="*"/>

</cross-domain-policy>

in the root directory, works and is at least a start.

Hopefully I missed part of the documentation, and a Live Geometry page (from a scripting perspective) 
is less of an unreachable black box than it appears to be. 

 

thanks

 

 

May 7, 2011 at 11:47 PM

Josh sorry for the delayed reply. Unfortunately I don't know almost anything about JavaScript so I didn't provide any interoperability with it. However this should be possible. If you'd be willing to figure it out and provide a patch, I could incorporate it into the product. Thanks! Kirill