473,790 Members | 2,951 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XML inside textarea

2 New Member
Hi all,

I'm fairly new to web development so bare with me.

The html page that i've created isn't working and i can't figure out why. I'm guessing there are some rules that need to be followed when putting xml between the <textarea></textarea> tags. The textarea and the submit buttons are located inside <form> tags. When a button is pressed it calls a jsp page to do the processing needed. For some xml content it works nicely....for others i cant get to that jsp that handles processing. No errors are being generated so its making it difficult for me to catch. Here is the html generated (minus the xml):

Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <head>
  3. <title>DB Editor</title>
  4. <link REL="stylesheet" Type="text/css" HREF="dbeditor_style.css">
  5. </head>
  6. <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
  7. <table bgcolor="#FFFFFF" width="100%" border="0" cellspacing="0" cellpadding="0">
  8.     <tr><td valign="top">
  9. <!--Top Application Header-->
  10. <table bgcolor="#2A1F55" width="100%" border="0" cellspacing="0" cellpadding="0">
  11.         <tr>
  12.             <td class="application">&nbsp;&nbsp;DB EDITOR</td>
  13.  
  14.             <td align="right"><a href="http://www.idsk.com" target="_blank"><img src="http://bytes.com/images/g_poweredby3.gif" width="145" height="26" alt="Powered By InfoDesk" border="0"></a><img src="http://bytes.com/images/g_graphic1.gif" width="96" height="34" alt="" border="0"></td>
  15.         </tr>
  16.     </table>
  17.     <table bgcolor="#D5D3DE" width="100%" border="0" cellspacing="0" cellpadding="0">
  18.         <tr>
  19.             <td><a href="index.jsp"><img src="http://bytes.com/images/b_logout.gif" width="60" height="21" alt="" border="0"></a></td>
  20.             <td align="right" width="100%"><img src="http://bytes.com/images/g_graphic2.gif" width="96" height="21" alt="" border="0"></td>
  21.         </tr>
  22.     </table>
  23.  
  24.     <table bgcolor="#2A1F55" width="100%" border="0" cellspacing="0" cellpadding="0">
  25.         <tr>
  26.             <td colspan="2"><img src="http://bytes.com/images/blank.gif" width="1" height="1" border="0"></td>
  27.         </tr>    
  28.     </table>
  29.  
  30.  
  31. <!--End of Top Application Header-->
  32. <!--Content Area-->
  33. <table border="0" cellspacing="0" cellpadding="0" align="center" valign="top">
  34. <tr><td valign="top" width="600">
  35. <table width="600" border="0" cellspacing="0" cellpadding="0" align="left">
  36.     <form action="db3_action.jsp">
  37.  
  38.     <tr>    
  39.         <td colspan="2" height="30"><img src="http://bytes.com/images/blank.gif" width="1" height="1" border="0"></td>
  40.     </tr>
  41.     <tr>    
  42.         <td class="sectionhead">Edit Field</td>
  43.         <td align="right"><input type="submit" name=update value="Update" height="16" width="34"><input type="submit" name=cancel value="Cancel" height="16" width="34"></td>
  44.     </tr>
  45.     <tr><td class="rule1" colspan="2" height="1"><img src="http://bytes.com/images/blank.gif" width="1" height="1" border="0"></td>
  46.     </tr>
  47.  
  48.     <tr><td colspan="2" height="10"><img src="http://bytes.com/images/blank.gif" width="1" height="1" border="0"></td>
  49.     </tr>
  50.  
  51.         <tr><td width="125" valign="top"><b>story</b></td><td valign="top"><textarea name="xx" rows="30" cols="40" class="input350"></textarea></td></tr>
  52.         <!--<tr><td width="125" valign="top"><b>[field name2]</b></td><td valign="top"><input name="newsid" class="input200" size="25" maxlength="255"></td></tr>-->
  53.     </table>
  54.         </td>
  55.     </tr>
  56.     <tr><td colspan="2" height="20"><img src="http://bytes.com/images/blank.gif" width="1" height="1" border="0"></td>
  57.     </tr>    
  58.     <tr><td class="rule1" colspan="2" height="1"><img src="http://bytes.com/images/blank.gif" width="1" height="1" border="0"></td>
  59.  
  60.     </tr>
  61.     <tr><td colspan="2" height="5"><img src="http://bytes.com/images/blank.gif" width="1" height="1" border="0"></td>
  62.     </tr>    
  63.     <tr><td colspan="2" align="right"><input type="submit" name=update value="Update" height="16" width="34"><input type="submit" name=cancel value="Cancel" height="16" width="34"></td>
  64.     </tr>
  65.     </form>
  66. </table>
  67. </td></tr>
  68. </table>
  69. <!--End of Content Area-->
  70. </td></tr>    
  71. </table>
Sorry I couldnt include the xml portion. Not sure how much i can post online without getting in trouble. Any ideas?

Lawrence
Jun 19 '06 #1
0 3512

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

Similar topics

9
9363
by: Hal Halloway | last post by:
I want a text editor inside a form's textarea, So I would see html markup and html entities - just like a text editor. I also would want to be able to edit it all just like a text editor - this is done in PHPMyadmin for example...is there an easy way to do this? In a way i'm asking the browser to suspend rendering markup.
4
2828
by: google | last post by:
I would like to print a table, using a while loop to insert as many blank text fields as players specified by the user. How do I put html inside a php loop. This is what I have.... <body> <form name="results" method="post"> Number of players:<input type ="textarea" name="number_players">
2
2919
by: Asad | last post by:
I have a form on a page that has several textareas, and textboxes inside a table (so the table containing the textboxes is also inside the FORM tag). I want to replace the textareas with simple text instead. But I want to keep the format of my page EXACTLY the same. However, the problem is that ... 1) Javascript won't let me create say a one-cell TABLE containing some text (e.g. textarea's value) and then insertBefore an element in the
1
18589
by: Hans | last post by:
How do I capture the keycode inside a <textarea> in NN6+ and IE5.5+? I don't want to add add document.keyPress function because I only want this to occure when a specific textarea is selected and not fire for every keypress in the entire document. <textarea onkeypress="captureKeys();".... but I cannot get a reference to the current event so i can ask for the keyCode. In IE I can check the event.keyCode inside my function captureKeys...
6
5993
by: wperry1 | last post by:
I am writing a small database utility to catalog all of my favorite ASM/JS/VBS... functions and scripts on an asp page. Everything is going smoothly except for one thing that I can't quite seem to think my way around. I am using a <textarea> to display the code but some of my scripts have <textarea> tags in them and when the </textarea> tag is entered, it closes my <textarea> and the rest of the code ends up outside of the textarea.
2
19295
by: mattrapoport | last post by:
Hello, I am have a div and inside of that div I have a textarea. There is nothing else in the div. The text in the textarea will come from a database so it needs to be able to wrap and grow as necessary. I've tried a whole bunch of permutations and I'm not having any luck. Any help would be greatly appreciated. Here's the code: HTML: <div class='desc'><textarea class='desc_text'>blah blah blah blah blah blah blah blah blah blah...
0
6437
by: lawrenceS59 | last post by:
Hi all, I'm fairly new to web development so bare with me. The html page that i've created isn't working and i can't figure out why. I'm guessing there are some rules that need to be followed when putting xml between the <textarea></textarea> tags. The textarea and the submit buttons are located inside <form> tags. When a button is pressed it calls a jsp page to do the processing needed. For some xml content it works nicely....for others i...
1
18853
by: den2005 | last post by:
Hi everybody, I am confused and still looking why this codes is not working. Can anyone notice or know why this code is not working? Thanks in advance. Code working: <form id="form1" runat="server"> <div> &nbsp;</div> <div>
2
2151
by: lynx129 | last post by:
Hi there , I have php script that works fine under my server but I dont know how to put the html code inside my site. feedback.html <html dir="rtl"> <head> <title> ????? ??? </title> </head> <body>
0
9666
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
9512
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10145
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
9986
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...
0
9021
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6769
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
5422
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3707
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2909
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.