You are not logged in.

Dear visitor, welcome to krpano.com 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.

jeromebg

Professional

  • "jeromebg" started this thread

Posts: 881

Location: Angers - France

Occupation: Photographer

  • Send private message

1

Wednesday, June 22nd 2011, 4:29pm

get xml variable in form

Hi, I use javascript to embed panoramas in html :

Source code

1
2
3
var swf = createswf("krpano.swf", "krpanoSWFObject", "100%", "100%");
swf.addVariable("xml", "myxml.xml");
...


Now I would like to send the xml variable thrue a form..
I guess it can be done with javascrit like :

Source code

1
document.getElementById("xmlfile").value = ???


and then in my form:

Source code

1
<input name="panoxmlfile" id="xmlfile" type="hidden" />


what should i write instead of ???

Thanx !

jeromebg

Professional

  • "jeromebg" started this thread

Posts: 881

Location: Angers - France

Occupation: Photographer

  • Send private message

2

Wednesday, June 22nd 2011, 7:11pm

ok got it :

Source code

1
2
var xmlurl = krpano.get("xml.url"); 
document.getElementById("xmlurl").value = xmlurl;

Similar threads