Solved

Classic ASP using AJAX.  Save TEXTAREA to text file

Posted on 2008-10-11
4
1,976 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

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

There is basically two types of AJAX request in mootools. Request  and Request.HTML Request: Request is the basic XHR request class in MooTools. While not extremely useful on its own, it provides the basic functionality for both Request.HTM…
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

809 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