You are not logged in.

Dear visitor, welcome to Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.



  • "viewinz" started this thread

Posts: 145

Location: Wellington, New Zealand

Occupation: Trying to build an entire walkthrough of NZ for tourists

  • Send private message


Tuesday, October 27th 2009, 11:29pm

Getting text back in from Javascript


I'm thinking of using the Google AJAX Language API to do automatic translation of blocks of text. I've not started yet, I'm pretty sure I know how to do it but before I do I'd like some thoughts on this.

It's a Javascript interface so I know how I could set a variable as text from a data node and pass text out to Javascript and then get it translated, I'm just not sure how to get it back into a textfield.

Anyone any ideas?


Wednesday, October 28th 2009, 10:34am


for putting the data back to krpano use just set() from js,

Source code

var text = krpano.get("plugin["+pluginname+"].html");
var translatedtext = TRANSLATE(text);  // note - pseudo code ;-)
krpano.set("plugin["+pluginname+"].html", translatedtext);

best regards,