473,394 Members | 1,701 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,394 software developers and data experts.

How do you run a script on the client side?

(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?
--------------------------------
From: Carl Jones

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>i9ms5AysxEOKKACK2W1Upw==</Id>
Nov 18 '05 #1
1 1597
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" <an*******@dotnet247.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
(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?
--------------------------------
From: Carl Jones

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>i9ms5AysxEOKKACK2W1Upw==</Id>

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Don | last post by:
I want the server-side php script to return a browser page that is essentially a copy of the original client page that contained the <form> which referenced the php script in the first place....
14
by: Liam Gibbs | last post by:
I'm having some trouble with my script tag. I'm trying to include a piece of PHP text via the script tag by doing so: <script src="http://pinata.no-ip.org/~altmarvel/Scripts.php"></script> ...
1
by: MonkeyBoy | last post by:
I am doing some some HTML manipulation in client-side script (IE5.x and IE6.x browsers only). Something like.. var tmpHTML = oTable.outerHTML // do something to the HTML her oTable.outerHTML =...
6
by: S P Arif Sahari Wibowo | last post by:
Hi! I am thinking to have a client-side script doing processing on file downloading, basically the script will process a downloaded file from the server before it received by the user. For...
2
by: Jeronimo Bertran | last post by:
A couple of questions I am having problems with converting my JavaScript to C#. I have the following code using JavaScript for the mouseover handler that works fine: <SCRIPT...
4
by: Bob T | last post by:
Hi All, I am trying to pass a variable from my VB asp.net script (from for example Sub Page_Load in mypage.aspx.vb) to my Client side script. I have found and looked at a very good example...
9
by: Harry Smith | last post by:
While reading the documentation on IsStartupScriptRegistered, there is a reference to "client startup script" as "Determines if the client startup script is registered with the Page object." What...
7
by: kelly | last post by:
Hi I have an app where I have 2 dropdown lists (state and city) and a Save button. When a user selects a value from the state dropdown list, I use script callback to populate the data for the...
5
by: Ankur | last post by:
Hi Folks, I am new for this group. I want to clarify one thing what's a basic difference between Client Side Java Script and Server Side Java Script. how we can differentiate it. Why we called...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.