help in making start a script with onClick

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Gigi

    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">H ost 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
  • Ivo

    #2
    Re: help in making start a script with onClick

    "Gigi" <gigentile@yaho o.co.uk> wrote in message
    news:e41c84c6.0 402200335.675c2 98@posting.goog le.com...[color=blue]
    > 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">H ost Overview</A></B>
    > <input type="button" name="link aggiornamento script" value="Update
    > All" onClick
    > =". ./do_cfg.sh">[/color]

    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


    Comment

    • Michael Winter

      #3
      Re: help in making start a script with onClick

      On 20 Feb 2004 03:35:26 -0800, Gigi <gigentile@yaho o.co.uk> wrote:
      [color=blue]
      > 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">H ost Overview</A></B>
      > <input type="button" name="link aggiornamento script" value="Update
      > All" onClick
      > =". ./do_cfg.sh">
      > <br>[/color]

      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.Winter@blueyo nder.co.invalid (replace ".invalid" with ".uk" to reply)

      Comment

      Working...