Dear all,
Does any one know is it possible to save a document on web by using javascript rather than the formula ‘@command([FileSave])’?
If so, what’s the syntax of it?
Thanks in advance.
Scott
Dear all,
Does any one know is it possible to save a document on web by using javascript rather than the formula ‘@command([FileSave])’?
If so, what’s the syntax of it?
Thanks in advance.
Scott
Subject: Save a document on web by javascript?
Put a button on the form. Let the formula of the code contain your @Command([FileSave]) formula. Set the HTML style as display=none;Give the button a name. “ButtonSave”.
Then execute it in javascript like this:
ButtonSave.click();
That’s all.
Works well for me.
Collin
KC8TKA
Subject: Save a document on web by javascript?
document.forms[0].submit() (or use an HTML input type=“submit”) – but you will lose some functionality when compared with @Command([FileSave]). For instance, there is no way to save-and-continue in JavaScript or HTML – you’d need to code that yourself in a $$Return field.
A word of advice: use the @Stuff whenever you can to interact with the server.