Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. nnn000555

    saving txt to a directory and not to a hard drive

    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(...
  2. nnn000555

    saving txt to a directory and not to a hard drive

    I tried the following: var url = window.location.hostname + window.location.host + window.location.pathname + 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(...
  3. nnn000555

    saving txt to a directory and not to a hard drive

    My question is will window.location.pathname work on third party servers?
  4. nnn000555

    saving txt to a directory and not to a hard drive

    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 =...
  5. nnn000555

    saving txt to a directory and not to a hard drive

    I got a better code var url = samplefile.location frm.txt.value = url frm.txt.value = ".,,,........" but still no visibility of the result.
  6. nnn000555

    saving txt to a directory and not to a hard drive

    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...
  7. nnn000555

    Hit counter

    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...
  8. nnn000555

    saving txt to a directory and not to a hard drive

    ->[network server]->[folder-path]-[file] Actually, that's the path that I would like to recreate.
  9. nnn000555

    saving txt to a directory and not to a hard drive

    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...
  10. nnn000555

    saving txt to a directory and not to a hard drive

    It is actually getCanonicalPath(). Thanks.
  11. nnn000555

    saving txt to a directory and not to a hard drive

    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?
  12. nnn000555

    saving txt to a directory and not to a hard drive

    What is an equivalent of unix pwd in javascript. In Java its getCannonicalPath(), can I use that in Javascript?
  13. nnn000555

    saving txt to a directory and not to a hard drive

    How would pwd work here?
  14. nnn000555

    saving txt to a directory and not to a hard drive

    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?)
  15. nnn000555

    saving txt to a directory and not to a hard drive

    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...
  16. nnn000555

    saving txt to a directory and not to a hard drive

    <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...
  17. nnn000555

    saving txt to a directory and not to a hard drive

    the theory behind the command dinrname(path) is here comment: # Where $path_separator is / for Unix, \ for Windows, dirname($path) . $path_separator . basename($path);
  18. nnn000555

    saving txt to a directory and not to a hard drive

    function dirname(path) { return path.replace(/\\/g,'/').replace(/\/[^\/]*$/, '');
  19. nnn000555

    saving txt to a directory and not to a hard drive

    function dirname(path) { return path.replace(/\\/g,'/').replace(/\/[^\/]*$/, '');; this is the command but I have no clue what to do with it.
  20. nnn000555

    saving txt to a directory and not to a hard drive

    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...

Part and Inventory Search

Back
Top