• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2011
  • Last Modified:

Classic ASP using AJAX. Save TEXTAREA to text file

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
KeithMcElroy
Asked:
KeithMcElroy
  • 3
1 Solution
 
KeithMcElroyAuthor Commented:
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
 
_Stilgar_Commented:
Try perhaps escaping entities client-side and then decoding it on the server after the POST?
0
 
KeithMcElroyAuthor Commented:
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
 
KeithMcElroyAuthor Commented:
totally works
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now