On 20 Feb 2004 03:35:26 -0800, Gigi <gi*******@yahoo.co.uk> wrote:
I have to make start a shell script using the javascript command
onClick. The path is correct but it the script doesn't want to start.
On the other hand, if I use the same command for forwarding to a link
(just to make an example) it will work perfectly. What is wrong with
the syntax? I am using internet explorer 5.50. This is the piece of
script I am using:
<br>
<B><A HREF="info.htm" TARGET="info">Host Overview</A></B>
<input type="button" name="link aggiornamento script" value="Update
All" onClick
=". ./do_cfg.sh">
<br>
Ignoring the erroneous space in the path, consider what would happen if
you wrote:
<script type="text/javascript">
../do_cfg.sh
</script>
All that would result from this is a syntax error, and this example is
comparible to your own. If you're looking to execute it, you'll have to do
something along the lines of:
window.location = '../do_cfg.sh';
When the browser attempts to load the file, it should execute it if the
extension is recognised. If not, you might have to include the executable
that will interpret the script.
Mike
--
Michael Winter
M.******@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)