Solved

I need to write to a text file from JavaScript

Posted on 2011-09-29
2
192 Views
Last Modified: 2012-05-12
I have an in-house unobtrusive library for jqGrid that I need to debug. Calling the windows.alert() works, but writing to a text file gives me a log of the sequences of the funnction calls. I can not use console.log since I will be comparing IE (where the bug does not appear) and FireFox (where the bug exists).

How can I code this?

Thanks.
0
Comment
Question by:newbieweb
2 Comments
 
LVL 6

Accepted Solution

by:
rknetwork earned 500 total points
ID: 36815769
You may run in to permissions issues trying to write a file on the local disk. Why not trying to a use cookie instead? http://www.w3schools.com/js/js_cookies.asp
0
 

Author Closing Comment

by:newbieweb
ID: 36815986
Thanks.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question