473,785 Members | 2,819 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Preserving the Character set inside text area

5 New Member
HI

I want to display the contents of a big XML inside a text area so that the user would be able to edit it. But the XML consists of characters such as & " which are interpreted by as & and " respectively.
But if this going to be the case the backend systems could not read them. I used <xmp>, but it is already deprecated and further it would not work inside text area. Could somebody help me with this.

in short : &amp; should be displayed as &amp; itself and not & inside the textarea.

Vinoth
Apr 4 '07
16 4417
KevinADC
4,059 Recognized Expert Specialist
<plaintext> is a legitimate html tag, or maybe I don't understand your comment.
Apr 6 '07 #11
drhowarddrfine
7,435 Recognized Expert Expert
No wonder I never heard of it. It was "obsoleted" in HTML 2.0 and listed as deprecated in 3.0 and 3.2. Only some browsers support it but IE and Firefox do not from what I read.
Apr 6 '07 #12
mrhoo
428 Contributor
I don't know if rite2 ever got an answer, but if you fetch any text file,
including xml,with an xhtmlHTTPReques t 'GET', and set the value of the textarea to the response text returned, the literal text will be displayed in the text area- &amps; <'s, and all.
Apr 6 '07 #13
KevinADC
4,059 Recognized Expert Specialist
No wonder I never heard of it. It was "obsoleted" in HTML 2.0 and listed as deprecated in 3.0 and 3.2. Only some browsers support it but IE and Firefox do not from what I read.

Deprecated is not the same as obsolete, although I believe I understand what you are saying. Even before the tag was deprecated it had no pratical use. I think it was mostly used by mischief makers with great results on unsuspecting html enabled forums, guestbooks, and such.

IE and FireFox do support it, but might not if the DTD is set properly.
Apr 6 '07 #14
AricC
1,892 Recognized Expert Top Contributor
We moving this to javascript? I believe the escape character in JS is \
Apr 6 '07 #15
rite2vinoth
5 New Member
We moving this to javascript? I believe the escape character in JS is \
Guys !! Thanks a ton for all of your suggestions. In fact we took the fool proof solution of going into the server side.

Mr.Moderator.Ho w can i trace this thread in the JS forum ?

Vinoth
Apr 11 '07 #16
acoder
16,027 Recognized Expert Moderator MVP
Mr.Moderator.Ho w can i trace this thread in the JS forum?
If you want to find your posts/threads, go to your Control Panel (top right-hand corner) and subscribed threads. Alternatively, go to your own user profile (if you can find one of your posts), then click on 'Find all posts by...'.
Apr 12 '07 #17

Sign in to post your reply or Sign up for a free account.

Similar topics

10
2395
by: Cocy | last post by:
Hi, This might be a sort of FAQ, but I don't see why, so I would someone help me to understand what's wrong? I've just created following code which wold trim white space(s) in a (given) string. But, it resulted the Segmentation fault, and so as when running in gdb (saying "Program received signal SIGSEGV, Segmentaion fault at *p++ = *st++"). The platform is Linux kernel 2.4.27, gcc version
16
5142
by: TTroy | last post by:
Hello, I'm relatively new to C and have gone through more than 4 books on it. None mentioned anything about integral promotion, arithmetic conversion, value preserving and unsigned preserving. And K&R2 mentions "signed extension" everywhere. Reading some old clc posts, I've beginning to realize that these books are over-generalizing the topic. I am just wondering what the difference between the following pairs of terms are: 1)...
2
3380
by: Pete | last post by:
Hi all... I sincerly hope one of the MS guys can clear this up for me... First some background... Ok, I have a web site which is fully translatable into several languages. All the strings for the web site are held in a database and all the labels, buttons etc are populated at run time in the Page_Load handler. The retreval of the strings from the database is all
3
10201
KevinADC
by: KevinADC | last post by:
Purpose The purpose of this article is to discuss the difference between characters inside a character class and outside a character class and some special characters inside a character class. This is not a regular expression tutorial. Assumes you are already familiar with basic regular expression concepts and terminology. If not, you may want to read some regular expression tutorial. See the end of the article for links to online resources....
35
4254
by: rajash | last post by:
Hello everyone, Thanks again for all the suggestions, though I think some people are a bit fussy in their answers. Here is a solution to Exercise 1.14. It deals well with control characters too. // make histogram of character frequencies
3
3303
by: sophia.agnes | last post by:
Dear all, I was going through the book "C a software engineering approach by darnell & Margolis" there was a section named sign preserving vs value preserving it is as follows sign preserving rule:- when signed and un signed objects meet in an expression, the result is
1
4483
by: amulyab | last post by:
Hi, M using browse button to select a text file.The contents of text is made to display inside text area.Now i have to add some links for the some parts of text which is inside text area.How can i do this?Please help me.
1
1484
by: amulyab | last post by:
Hi, M using browse button to select a text file.The contents of text is made to display inside text area.Now i have to add some links for the some parts of text which is inside text area.How can i do this?Please help me.Is there any way to do in ajax or javascript.
1
6681
by: coolguyraj | last post by:
Hi i have the following HTML code for the text Area how can i disable the enter key inside the text area. <td colspan="7"><textarea cols="80" onkeypress="keyhandler<?php echo $x?>()" rows="5" name='ITEM_IN'><?php echo $_REQUEST);?></textarea></td> Help will be greatly appriciated. Thanks
0
9645
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10324
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10147
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10090
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9949
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7499
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6739
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4050
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.