Solved

Classic ASP using AJAX.  Save TEXTAREA to text file

Posted on 2008-10-11
4
1,966 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
Comment Utility
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
Comment Utility
Try perhaps escaping entities client-side and then decoding it on the server after the POST?
0
 

Author Comment

by:KeithMcElroy
Comment Utility
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
Comment Utility
totally works
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

744 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now