Write to document (solved)

  • I was looking for a possibility to write text from a panorama to a file on the user's computer and found Downloadify, which can do this via JavaScript. So I have this code to add to the panorama.html:


    And this for the panorama.xml:

    Code
    <plugin name="save" url="save.png" onclick="js( load(get(variable1), get(variable2)) );" />

    As I don't need the <form> I deleted it, but now (I guess) I have to rewrite these lines in the <body>:

    Code
    return document.getElementById('filename').value;
    return document.getElementById('data').value;

    ...but I don't know how. Can you help me? I'm sure it's very simple, but I couldn't manage to get it work.

    0100011101101100011001010110100101100011 0110100000100000011010110110110001100001 0111010001110011011000110110100001110100 0110010101110100001011000010000001001010 0111010101101110011001110110010100101110 0010000001000101011000110110100001110100 0010000001101010011001010111010001111010 0111010000101110

    Einmal editiert, zuletzt von Dr. Schneckem (4. Oktober 2011 um 15:05)

  • Great, it's working. Thank you very much! *smile*

    0100011101101100011001010110100101100011 0110100000100000011010110110110001100001 0111010001110011011000110110100001110100 0110010101110100001011000010000001001010 0111010101101110011001110110010100101110 0010000001000101011000110110100001110100 0010000001101010011001010111010001111010 0111010000101110

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!