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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File operations in JavaScript

Status
Not open for further replies.

raabbasi

Technical User
Jun 21, 2005
52
PK
I could not find any code related to the file operations, including copying, moving, deleting and/or setting the attributes etc.

Any help is highly appreciated.

Abbasi
 
Are you talking about Javascript ASP, Windows Scripting Host, or client side Javascript? If the latter, you won't find much because Javascript can't play with the files on a client computer without help from ActiveX controls, which are IE only.

Lee
 
I see! It means file operations are not available in Client-side JavaScript.

Regarding JavaScript, I have a long-time question in mind that how to call JavaScript from ASP.

It will be kind of you if you let me know how to call JavaScript from within ASP and what JavaScript functions are available.

Regards
 
Call Javascript from ASP" doesn't mean anything. Do you want to use Javascript for your ASP programming language, or fill ASP variable values into client-side Javascript code? You can't call client-side functions from server-side code, or vice versa, if that's what you're referring to.

Lee
 
No, no, I mean calling JavaScript routine(s) from within ASP code - how to do it!

Secondly, what if I intend to manipulate my files on the Server using JavaScript?

Sorry for not being able to convey my confusions clearly.
 
I use JScript for ASP programming, which is Microsoft's version of Javascript, rather than VBScript. I've encountered a few other people around TT who use that, as well, so it's quite possible.

I still can't tell when you're talking about client-side Javascript and server-side coding. Client-side Javascript can't communicate with the server directly, and server-side coding can't communicate with the client-side computer directly.

Show an example of what you want to do, and we can go from there. Just asking how to do something isn't a productive question when there are thousands of possibilities for what you might want to accomplish.

Lee
 
Actually, I just want to get some of my concepts and confusions cleared.

Let me start coding something and then I may get back to the forum for further explaination.

Thanks and regards.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top