473,396 Members | 2,082 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 1350
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Steve | last post by:
Hi, I have a nice little script that works well displaying images on my website. It's a script where if you clik a thumbnail image a pop up window opens that contains a larger version of the same...
1
by: scorpion53061 | last post by:
I really like this javascript for an image slideshow. The only thing I woudl like to do differently is have a cell above the image and navigation that would allow text content to be placed. Does...
1
by: rainbowii7 | last post by:
Calling all programmers for helllllllllllllllppppp!!! i am currently doing a uni degree and our lecturers have set us the task of making a game in JavaScript. i chose to do a hangman game and...
4
by: mwh | last post by:
Hi. If you remember, I posted Expressons Help. Now I am making a calculator with javascript. I can't get this to work: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"...
3
by: davidkarlsson74 | last post by:
Error: document.getElementById("folderMenu").cells has no properties File: http://www.volkswagen.se/tillbehor/js/foldermenu.js Rad: 49 The function activates different DIV:s, but doesn't seem to...
7
by: Papelotte | last post by:
Hi all, I'm new to this forum and I am hoping that there is someone here who can help me. I have an ASP page that has javascript that works perfectly in IE, but not in Firefox. Can anybody tell...
5
by: althafexcel | last post by:
hi everyone Im trying to include an external js in my aspx page under the head tag, it doesn't load or it displays an object expected error whenver the function from the .js is called. Actually...
2
by: sorobor | last post by:
dear sir .. i am using cakephp freamwork ..By the way i m begener in php and javascript .. My probs r bellow I made a javascript calender ..there is a close button ..when i press close button...
1
by: dustylane | last post by:
I know very little about HTML and CSS but I've been able to decipher most of what I've needed to know based on trial and error. I had a friend coding me a website long ago and he abandoned the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.