This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes set width for text areas Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "set width for text areas" Watch "set width for text areas" New topic
Author

set width for text areas

huzefa qutbuddin
Greenhorn

Joined: Jul 30, 2006
Posts: 6
Hi I have a text area in which I am using timymce javascript to produce a formatting bar.
Now the problem is that if I try to use other javascripts to limit chars. in the text area, it doesn't work.
So what I was wandering if there is any way in tinymce itself to limit chars. or if somebody faced a similar problem
and found a new solution.

I desperately need help in this so any help will be greatly appreciated .
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60758
    
  65

This forum is for questions on JSP. Please take the time in the future to choose the appropriate forum in which to make your posts.

This topic has been moved to the HTML forum for you.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
huzefa qutbuddin
Greenhorn

Joined: Jul 30, 2006
Posts: 6
just some more information

I am actually using tiny_mce from this website.
http://tinymce.moxiecode.com/
It is actually a jscript which creates a formatting toolbox(similar to ms word)
eg. you can bold words - It creates the html code, so when you save the text it saves the html code also

My code is as follows

-------------------------------

<HEAD>
.
.
<script language="JavaScript" type="text/javascript" src="../jscripts/tiny_mce/tiny_mce.js"></script>
<script language="JavaScript" type="text/javascript">
tinyMCE.init({
mode : "textareas",
theme: "simple"
});
.
.
</HEAD>

<BODY>
<form name="myform" action="../chapter_admin/<%=chapter_name%>?action=add_missionStatements" method="post" onSubmit="return verify();">
.
.
<b>MISSION STATEMENT:</b><p><p><textarea cols="80" rows="5" name="DESCRIPTION" colspan="2">
<%=checkNull((String)selected_missionStatement.getDescription())%></textarea>
.
.
</BODY>

-------------------------------------------------------------------------------------------------------

Now the problem is that if I try to use any other javascript in this text area, the onkeydown or onkeyup events doesn't work at all


Thanks again
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60758
    
  65

Does not tinymce have support forums? You might have better luck there since this is so product specific.
huzefa qutbuddin
Greenhorn

Joined: Jul 30, 2006
Posts: 6
no there is no tinymce support forum
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60758
    
  65

Originally posted by huzefa qutbuddin:
no there is no tinymce support forum


There is. It took me 15 seconds to find.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: set width for text areas
 
Similar Threads
Ajax Size Limit
How to prevent user from typing into TEXTAREA
input type text limit?
Maximum number of lines in textarea
use of CLOB