473,508 Members | 2,475 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to set values other than text in textarea using javascript???

43 New Member
hi
i wish to set output of a jsp page having tabular data along with colors and fonts
into the textarea using javascript....

is it possible via javascript????
if yes how?//
any alternative....
Jul 10 '07 #1
3 4825
acoder
16,027 Recognized Expert Moderator MVP
You could search for "javascript textarea editor" or something similar. There are editors which convert textareas into WYSIWYG editors though that might be a bit too much for what you require.
Jul 10 '07 #2
praveen2gupta
201 New Member
hi
i wish to set output of a jsp page having tabular data along with colors and fonts
into the textarea using javascript....

is it possible via javascript????
if yes how?//
any alternative....
It is Possible. Declare a Javascript variable and assign value to it. I assume data is coming from JSP using database connection. Use proper jsp tag to assign value <%= %> to javaScript variable.
now set value of textarea to the variable of javascript.
Jul 10 '07 #3
acoder
16,027 Recognized Expert Moderator MVP
hi
i wish to set output of a jsp page having tabular data along with colors and fonts
into the textarea using javascript....
Show an example of your data. You can use styles to set the colors and fonts, e.g.
Expand|Select|Wrap|Line Numbers
  1. color: red;
  2. font-family: arial, helvetica, sans-serif
or with javascript:
Expand|Select|Wrap|Line Numbers
  1. obj.style.color = "red";
  2. obj.style.fontFamily = "arial, helvetica, sans-serif";
Jul 11 '07 #4

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

Similar topics

7
13841
by: pstiles | last post by:
I have a need to create a list in a textarea, some selected by clicking on a word, some typed in by user. I have tried many things to little avail. I can set the text in the texarea, but it will...
3
3881
by: jiayanxiang | last post by:
Is there any sample code to use Javascript to load and display a text file? It will be best if the user can select files using some kind of explorer. If that's complex, a text box to specify the...
1
2123
by: snipersix | last post by:
How do you display values in a textarea using javascript. ex. i have 2 radio buttons o Adult =$9.99 o Child =$6.99 i need it to be, so that if i select adult in the...
1
1744
by: Amar | last post by:
Hi All, In my php application , I am using an sql query and this query is returning me a now of rows and I am storing these values in check box. Here I am using a single check box and...
2
2443
by: franklin moses | last post by:
how do i insert textbox values to ms access using javascript
1
1565
by: silviya | last post by:
Hi all: I am in a need to insert a link to the textarea dynamically using javascript. That works for IE,Mozilla and FireFox. I got a code that works for Mozilla but not for IE. I need this...
2
3409
by: rohitaya | last post by:
hi , i m building a texteditor using javascript whose functions like MS Front Page.so ,how i can give the effect bold,underline,italic using javascript on button click& if i press again...
2
5102
by: dev saini | last post by:
how to remove number one by one in the calculator text box using JavaScript. its urgent
1
2279
by: Sithu Thwin | last post by:
I would like to detect a textarea in a form using javascript. And insert onkeypress into that textarea. I do no want to change original html code for textarea. I just want to add <script> tag in...
0
7133
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...
0
7336
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,...
0
7405
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...
1
7066
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...
0
7504
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...
1
5059
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...
0
3214
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...
0
3198
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1568
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 ...

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.