Passing a Javascript value to a Document Property

If I don't have the Javascript API installed, you can assign a javascript value to a Document Property by  using a (hidden) Property Control:

html:
<div id='mySpotfireControl' style='display:none'><spotfireControl id=abc..../></div>

jscript:
//pass javascript property to Property Control
document.getElementById('mySpotfireControl').firstChild.value = myJSObject.property

//same as clicking enter on the input after entering a value on the Property Control
$("#mySpotfireControl input").focus()
$("#mySpotfireControl input").blur()
Previous
Next Post »