469,927 Members | 1,871 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,927 developers. It's quick & easy.

help in making start a script with onClick

Hi all,

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>

I hope someone may help me.
Giuseppe
Jul 20 '05 #1
2 1294
Ivo
"Gigi" <gi*******@yahoo.co.uk> wrote in message
news:e4*************************@posting.google.co m...
Hi all,

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">


I don't know about shell scripts (sounds interesting), but there are spaces
in the name of the input. I thought IE55 was quite relaxed about those
things, but the bottomline names don't contain spaces. I presume the newline
in the value property is due to my newsreader.
Perhaps it 'll work if you change just the name?
Ivo
Jul 20 '05 #2
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)
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by scorpion53061 | last post: by
1 post views Thread by rainbowii7 | last post: by
4 posts views Thread by mwh | last post: by
5 posts views Thread by althafexcel | last post: by
2 posts views Thread by sorobor | last post: by
1 post views Thread by dustylane | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.