In the following code
var url = window.location.href
frm.txt.value = url
//frm.txt.value = ".,,,........"
ts.Close()
ts=fs=null
}
</script>
<form action="" name = "frm">
Click here:
<span onclick="window.open( url,'_blank');"> ok</span>
if I use
<span onclick="window.open(...
Do you think this code will work on a third party web server? That's what I really want.
<html>
<head>
</head>
<body>
<script type="text/javascript">
var c=0;
var file = "\\my-path.txt"
function addToFile() {
var fs = new ActiveXObject("Scripting.FileSystemObject")
var ts =...
This code in theory should work. But there might be a different syntax, which I can't seem to get right. May be somebody can help me?
frm.txt.value = window.location.pathname.toString().value
The code compiles, runs, but no result displayed.
Here is the full web page code for references...
I have found a way to do the counter. Thanks. Here is the sample code.
<html>
<head>
</head>
<body>
<script type="text/javascript">
var c=0;
var file = "\\my-path.txt"
function addToFile() {
var fs = new ActiveXObject("Scripting.FileSystemObject")
var ts = fs.OpenTextFile(file,8,true,-2)
/*
var...
Here is an example on how to create a file, but the getCanonicalPath does not give you any results. What can you use to find the path of the file? or pwd?
<html>
<head>
</head>
<body>
<script type="text/javascript">
var c=0;
var file = "\\folder\my-path.txt"
function addToFile() {
var fs = new...
If I have a command
ts.Write(getCannonicalPath());
it runs and compiles.
But I don't see the path.
There must be a different spelling. What is it? Help?
or maybe there are commands in unix, that simply place the file in the same directory, instead of putting them in c on line
var file = \\my-file.txt (use something like .\my-file.txt.. or anything else like that in unix?)
I found out, that dirname returns the directory of the path, except that you have to enter the path yourself, and all it does is it takes away the file.txt at the end. I need something like that, except I need to find out the path, knowing the file.txt. May be there are commands in unix that are...
<script type="text/javascript">
var c=0;
var file = "\\my-file.txt"
function addToFile() {
var fs = new ActiveXObject("Scripting.FileSystemObject")
var ts = fs.OpenTextFile(file,8,true,-2)
</script>
Allows me to save into the my-file.txt information. 8 and -2 allow the file to not refresh. So...
the theory behind the command dinrname(path) is here
comment: # Where $path_separator is / for Unix, \ for Windows,
dirname($path) . $path_separator . basename($path);
It is hard to tell, if this architectural problem could be solved by code for instance, I have been researching, and found a command dirname(path) it could be used in javascript or php. I prefer to use in javascript. Do you know anything about this command and how to use. A tutorial on how it is...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.