E
ejrfigueiredo
Hi,
Is there a way to get a script function to save a page without the
execCommand (which works on IE but doesn't on Firefox).
Below there's the code I'm using, I took it from a template page and
added the save as command... all the functions are doing well within
the two browsers except the "save as" on Firefox.
<p>
<input class="eebuttons" type="button" value="Calcular"
name="bot_calculate" onclick="recalc_onclick('')">
<input class="eebuttons" type="button" value="Apagar" name="bot_reset"
onclick="reset_onclick('')">
<input class="eebuttons" style="margin-left:30px" type="button"
value="Gravar" name="bot_save"
onclick="document.execCommand('SaveAs');">
<input class="eebuttons" type="button" value="Imprimir"
name="bot_print" onclick="window.print();">
</p>
Please be aware that I'm a javascript noob.
Thanks in advance.
Is there a way to get a script function to save a page without the
execCommand (which works on IE but doesn't on Firefox).
Below there's the code I'm using, I took it from a template page and
added the save as command... all the functions are doing well within
the two browsers except the "save as" on Firefox.
<p>
<input class="eebuttons" type="button" value="Calcular"
name="bot_calculate" onclick="recalc_onclick('')">
<input class="eebuttons" type="button" value="Apagar" name="bot_reset"
onclick="reset_onclick('')">
<input class="eebuttons" style="margin-left:30px" type="button"
value="Gravar" name="bot_save"
onclick="document.execCommand('SaveAs');">
<input class="eebuttons" type="button" value="Imprimir"
name="bot_print" onclick="window.print();">
</p>
Please be aware that I'm a javascript noob.
Thanks in advance.