Solved

Classic ASP using AJAX.  Save TEXTAREA to text file

Posted on 2008-10-11
4
1,982 Views
Last Modified: 2012-05-05
I am creating a simple text editor application that will run on an Classic ASP Financial Accounting system.  The purpose of the text editor application is to make it easy to update an include file within a vieweable asp page.

Using AJAX, when the content of the TEXTAREA has more than just simple text, it does not succeed.  I need a way to make the AJAX request be able to contain any form of content.  Kind of like CDATA in XML.

Attached sample files shows how I am using AJAX and classic ASP
default.txt
savefile.txt
0
Comment
Question by:KeithMcElroy
  • 3
4 Comments
 

Author Comment

by:KeithMcElroy
ID: 22693927
The following is an example of the type of content that is in the textarea that needs to be updated thru ajax to the text file.
<% response.write loadoption("SELECT Grp, GrpDl FROM GLKGrpMaster WHERE GrpGr = 'ZL' AND GrpId = 'OFCR' ORDER BY GrpDl DESC, Grp") %>

Open in new window

0
 
LVL 14

Accepted Solution

by:
_Stilgar_ earned 500 total points
ID: 22696549
Try perhaps escaping entities client-side and then decoding it on the server after the POST?
0
 

Author Comment

by:KeithMcElroy
ID: 22712733
Hi Stilgar.  I am not sure what that means.  When you say entities, what would that mean?
The text area is populated with a portion of a web page so it can not really be edited in any way.
Sorry if I am missing the obvious!  
0
 

Author Closing Comment

by:KeithMcElroy
ID: 31505302
totally works
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Today I am discussing AJAX problems in IE7 and I bet this will helps many guys out here who have problems with AJAX work. Lets start with the discovery of problem and then we will talk about its different solutions. My last two projects included …
jQuery is a JavaScript library that greatly simplifies JavaScript programming. AJAX is an acronym formed from "Asynchronous JavaScript and XML."  AJAX refers to any communication between client and server, when the human client does not observe a…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

839 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