Click here to Skip to main content
15,921,174 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
After working with hardware for 5 years I managed to get a job working in the world of code. I am looking to design a html page that will show me the name, location and size of databases on my local network. Now I have looked into this and created a asp page which works great on my local machine but when I upload to server does not work. As I do not want to change any server side settings yet I figured a simple html page with maybe a jscript to get file size. All I wanted to ask is does anyone have any helpful info or direction on this task. Or is there a better approach.

Thank You :)
Posted

As you are using core/vanila HTML, you do not have any typical server side execution. Your entire code is going to be executed on the clients Web Browser. However, try to keep all the paths (machine specific) details in single file, which would make code management easier and avoid giving absolute paths, try using relative paths whereever possible.

Regards,
Sushant.
 
Share this answer
 
i thought It may be more clear if I was to post the code I have

I have grabbed this code online and tweaked where I can so far. Having
Currently my code does an alert when you click the button but when I try to write the details to the page it does not work.
another feature I would like to have is many locations listed with the single click
(i want to monitor around 20 files)
The button is not required, the only reason I have is because I cannot get the code to work without it hahahah can you tell this is my first time with java? :)

Also I am reading / study like crazy as I am trying to get up to speed asap.

my code so far:

<html>
<BODY>
<script language="JScript">
<!--
function get1()
{
var myObject, f;
myObject = new ActiveXObject("Scripting.FileSystemObjec…
f = myObject.GetFile("g:\\Test.txt");
alert("The file size is: " + f.Size);
}
//-->
</script>
<form name="myFormtest">
<input type="Button" value="testfile" onClick='get1()'>
</form>
</body>
</html>

Really do appreciate the help/ guidance
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900