?
Solved

Classic ASP using AJAX.  Save TEXTAREA to text file

Posted on 2008-10-11
4
Medium Priority
?
1,998 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
The most up-to-date version of this article is on my Blog https://iconoun.com/blog/
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

762 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