get xml variable in form

  • Hi, I use javascript to embed panoramas in html :

    Code
    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 :

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

    and then in my form:

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

    what should i write instead of ???

    Thanx !

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!