How do you run a script on the client side?

  • Thread starter Thread starter Carl Jones via .NET 247
  • Start date Start date
C

Carl Jones via .NET 247

(Type your message here)
I'm trying to run a client-side script from a web page.
It's a VB script that gets information (computer name, software versions etc )about the computer and writes it to a txt file.
If I simply run the script from a button click it gathers the information of the server, not the workstation, no matter what workstation I'm on.
What am I missing?
 
Probably that you are writing a server side script and not a client side
one. A client side script is typically written in client side javascript,
it is in a <script> tag (no runat=server att).

Now, what you are trying to do however, is not possible. I don't think
client side javascript would have access to that kind of information - and
it would certainly not be able to write a file on the client's computer at
will. If you are thinking you want it to write on the server's computer -
well, it can't do that either, since it is running on the client, and not on
the server. It's connection to the server has long been terminated. You
would need to do some sort of call to the server, and give it the
appropriate information - which I don't think think you would even have
access to.

Carl Jones via .NET 247 said:
(Type your message here)
I'm trying to run a client-side script from a web page.
It's a VB script that gets information (computer name, software versions
etc )about the computer and writes it to a txt file.
If I simply run the script from a button click it gathers the information
of the server, not the workstation, no matter what workstation I'm on.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top