textarea

Events dispatched by setFormatofRange

I have a text area on which I would like to listen to change events when I change the text formatting using setFormatOfRange(). So far all other events I have tried, such as Event.CHANGE or TextOperationEvent.CHANGE are only dispatched when the actual text is changed. Anyone know what I should be listening for ? ...

rich text editor for textarea

can some of you guys suggest me some free rich text editor for textarea? I like the one that stackoverflow uses. ...

Why do IE/Chrome initially give incorrect clientHeight and scrollHeight for a textarea?

Chrome (and IE when browsing local files) gives an initial value for the clientHeight of a textarea element that is incorrect. How do I get IE and Chrome to give the correct values? (Problem demo'ed here) I am setting the position and size of the textarea via CSS fixed/absolute positioning. Then I am checking the value of clientHeight v...

How to get HTML <textarea> value using c# ?

How can I get the value of a textarea using c# ? my issue is when I using MultiLine TextBox I can't get the full value !! I mean what I wrote including the breake lines. ex: Google Micrisoft Yahoo after saving above data it come's in one line 1.Google 2.Microsoft 3.Yahoo ...

Is it possible to change width of tab symbol in textarea?

By default tab symbol in textarea equals to the width of 8 spaces. Is it possible to change this value to 4 for example? I am mostly interested in using this in Chrome browser. ...

How come my <textarea> is not centered when it parents are centered with 'margin: 0 auto' ?

For some reason my textarea DIV is not inheriting margin: 0 auto from its parent: * { padding: 0; margin: 0 auto; } Here is a link to my CSS & HTML for this example How can I make it so that the textarea DIV actually gets centered? ...

How to stop someone uploading a script in textarea?

Hello I have a situation where users can submit feedback through a textarea on a HTML page or JSP. This works fine and the text ends up in the database. But, can anyone suggest any safeguards which could prevent somebody trying to submit malicious scripts which could possibly affect the page's behaviour? I am aware of parsing the tex...

Auto expanding textarea

When a textarea has more text in it than can be shown it will display scroll bars. How can I make it so that the textarea will expand itself when it has more text than it can display. My goal is never to have scroll bars appear. A jQuery solution is preferred. ...

Secure inserting value of $_POST['textarea'] into <textarea> HTML tag using PHP only.

Is there any way to insert $_POST['textarea'] into <textarea> without escaping shell special chars? I do sth. like : <textarea> <?php echo escapeshellcmd($_POST['textarea_field']) ; ?> </textarea> and I have a problem with \ chars. I do not wont them in <textarea> but without escapeshellcmd(); function it ...

Problem creating jQuery plugin with textareas

I'm trying to modify this script that emulates the Word 2007 minibar in a textarea. I have wrapped it in a plugin, the problem is that it will not work with multiple textareas. You can try it out at JSBin (Just select som text in the first textarea and then click on the "b") Can someone help me? I'm kinda lost. Update Should have m...

Using jWYSIWYG with autoGrow (textarea) in jQuery

I'm trying to use jWYSIWYG and autoGrow together so that the textarea in the jWYSIWYG editor expands as you type. Either jWYSIWYG works or autoGrow works, but not both together. I'm pretty new to jQuery, so would appreciate hearing what I'm doing wrong here. <script type="text/javascript"> $(function(){ $('#wysiwyg').autoGrow();...

How do I fix inconsistent Textarea bottom margin in Firefox and Chrome?

I'm trying to eliminate the extra bottom margin that both FF and Chrome seem to give to Textareas. Surprisingly IE seems to do it correctly. I would like to avoid using conditional includes but CSS3 tweaks are ok. TIA! Screen Shots Sample Code <!DOCTYPE html> <html> <head> <style> .red-box { background-color...

How to disable tinymce's textarea.

I've tried all of the following: $(#"tbxNote").attr("disabled", "disabled"); ////doesn't work $(#"tbxNote").attr("disabled", "true"); //doesn't work either :) tinyMCE.init( mode: "none" ); //throws an error This is how I'm loading tinymce: //load tinymce plugin $('#tbxNote').tinymce({ // Location of TinyMCE scrip...

php show data in textarea after link has been pressed

Hi, How can i display data in a textarea after a link has been pressed? This data is saved in a database. I'm trying to dynamically create a link for the field 'date'. If a user presses the link, the rest of the data for that date should be shown in a textarea. i'm looping through my data like this: foreach($data as $key) { echo ...

WebView textarea doesn't pop up the keyboard.

Hi, When I display a webview, I don't see the soft keyboard popping up. The hard keyboard also doesn't work! What are the usual shortcomings. The code which I use to access the webview is package com.example.blahblah; import android.app.Activity; import android.content.Intent; import android.content.SharedPreferences; import androi...

showing contents of textarea as I type

I am going to make a textarea box for input a text and save it and show it in another part... like comment, ... but when i put the text in another area it is plain text....no paragraph no space ... nothing... as it shows here in below as a preview ,.....what i should do? ...

Getting .html() or .text() from a textarea

Hi there, I'm have a very annoying issue with a textarea when trying to retrieve its content. When I call $('#formMessage').text() I always get the textarea's original value, doesn't matter how much I write or delete of it, it keeps returning me the original content. I'm not posting the code because it's really simple. A textarea withi...

Check if textarea has any characters (and ignore whitespaces) before submitting

I have a simple check ( .val() == "" ) with jQuery if textarea is empty or not before submitting.. it works, but it counts whitespaces. How can I ignore white spaces in this check? // Post guestbook; Check on frontend before submitting function postGuestbook() { if ($('.post-form textarea').val() == "") { $('div.mess...

dynamic shortened text areas with "See more" link

I need to add text areas to my website with the following charateristics: Only the first 2 lines should be visible with a "See more" link. When the user clicks on see more the remaining text is displayed without page refresh... It should be similar to Facebook "See more" functionality, showing the complete comments content, if these ...

How to wrap each new line in textarea with li tags? PHP

I have a textarea form field where users will put URL's separated by a new line. Would it be possible to wrap each line from this textarea field with < li > tags? So I would need the output from the field to be something like this: <li>some.url.com</li> <li>some.url.com</li> <li>some.url.com</li> <li>some.url.com</li> <li>some.url.com<...