I have a webpage I've been working on and it utilizes jQuery Autoscroll. You can view it here [URL]
I'm having a problem and I can't figure it out.
I have a text area. I can put text into it and it will scroll. However, when I go to File>new window to create a new identical but separate webpage the text which I just typed into the autotext area doesn't get copied over. Everything else does. Why is that? How can I fix it so that it will copy over.
Is this a JQuery issue or is it more of an html issues.
I am trying to take text that is in a <DIV></DIV> and insert it into a <TEXTAREA> tag. in CHROME the line breaks are preserved however in IE I lose all my line breaks.
$("#serviceEdit-notes").val($(this).next().html()); #serviceEdit-notes : the TEXTAREA $(this) is a 'A' linkprecedingthe DIV
Like I said, it works in CHROME, but in IE(8 or 9) I lose my line breaks.
I've been trying to change the text in a textarea element to no avail. I'm using the following to change the text:
$(inlineEditor.CurrentEditCollection).find('#resource_description').each(function(){ this.val(vals.value); }); vals.value contains the text. The Textarea element is in a TD in a TR that is contained in inlineEditor.CurrentEditCollection
The selector seems to find the element just fine but the text will not change.
I'm having a problem. What I'm basically trying to accomplish is a quote function on a forum. When I click the quote button, I want the text for that specific forum post to end up in the textarea field.
<textarea cols='1' rows='1' title='Reply to this post' id='entryField' name='entryField' style="width: 100%;" class='expand20-200'>
I am creating a small CMS module for a client. I created a little form and when they click Submit, it goes straight out into an include (.inc) file, which is connected to the web page to be displayed.
The trouble I am having is that I'd like to create an additional button that will insert some text (certain html tags to make their life easier, etc) - I got it to work, actually. The script executes and the text is inserted - but once the script runs and the page refreshes (or whatever it does), the text then disappears. The only way I can seem to get it to stay put is when I use "onmouseup" instead of "onclick" - which means that every time the user accidentally mouses over the thing, it inserts the text.
[URL]..I want to wrap some html code to user's selected text inside the textarea, I tried the code in above url but it seems not work in IE, is there a plugin of any way to make it work?
Ive created this simple test page with a textarea, a div, and a button. And then this code:
function copytext() { var temp= $('#TextArea').text(); $('#emptydiv').append(temp); }
Now in a normal browser (IE, firefox), when i type something in the field, and push the button, the text appends and shows - exactly as it should.
But on a phone (I´ve tried with Iphone and htc), nothing happens. It wont copy the text. I´m using jquery for alot of other stuff on the mobile page which works just fine.
I have a grammar check on the server that can grammar check text... big surprise there. It'll return a list of match problems, along with the positions in the text that are flawed. It'll also send the grammar rule that was broken in plain english, to help someone fix it.
So we have a list of these basically:
What I'd like to do is apply different styles to the text inside of the <textarea> for all these positions (5 to 10 in the case above, but I'm going to have a list of these).
I also want to make it so if a user hovers on top one of these problems, I can show a tooltip that contains the "message" property.
On a simple html page I included jQuery. The page contains a big form including text input fields as well as select list fields (with multiple values).
I want to combine the values from all fields (text and select list) into one (hidden) textarea.
I have a problem to solve where I have a Hidden set of 40 text inputs. A link to show 10 more of these in inputs at a time, all having unique ID's. The goal I am trying to accomplish is to set the focus to say the 10th input. If the "show more inputs" link is clicked then the focus should go to the next 10th input (really input ID number 20) and so on.
What I need to do is create a simple wiki editor. A user will be able to type <html> code and click submit. onclick a new window will appear with the html page that they typed
My problem is I am grabbing the textarea by its Id but when it opens the new window it is displaying the Id of the textarea, not the actual information inserted into it.
I try to created a function to (Add Text into <textarea>), but the problem is that if I click on the button again it keeps adding " - New Text" again and again, while it suppose to be stopped and be added only once.
How would i change back to the default length of textarea?
I have this comment area that after clicking submit i will append the new comment in the list of comments through ajax... i got one problem though, everything is working perfectly well except for the textarea that won't change back to it's default size...
EXAMPLE:
The problem is that the textareawon't change back to it's default size // let's say that the default size is rows=3
I'm working on setting up a "Send this link to a Friend" page. The page has a couple of inputs and a textarea. I have some default text in the textarea that is populated at the time of page load. What I would like to do is replace the "Dear Friend" in the textarea with the name of the friend once it is entered in the input. Code:
Does anyone know if its possible to left-justfy text in a <textarea>? I can do left justify with a simple style declaration, but can't find any reference anywhere to a left justify as can be done.
End result: I want to have buttons along the top of a textarea which will be used to add tags around highlighted text / the text curser thingy. (Basically it will be an edit box like the I am using now to make this post).
Problem at the moment: I want to reference the var to use in the function. e.g.
function addtext(id) { var al = "<div style="text-align:left;"></div>"; document.myform.outputtext.value += id; }
"id" will be defined as "al" in the HTML onclick function, I want this to use "var al" where it says ".value += id;".
HTML:
<form name="myform"> <textarea name="inputtext">Type Here
I'm about to build a custom CMS using PHP, but I was hoping to add text formatting (bold, italic and maybe inline links) to a textarea in a secure admin section.
I was wondering whether it's possible to use Javascript to allow the user to highlight some text and click a button which will cause the script to write the appropriate HTML tags into the textarea.
I'm looking to get some code so that if the user clicks a textarea for the first time after the page loads, the text clears out, else if he types some text, navigates away, comes back and then clicks again, it does not vanish.
And oh, I'm trying to find something other than what I already wrote:
JavaScript Code:
onClick="if(document.form1.tarea.value=='Click here to make this text disappear and begin writing.') document.form1.tarea.value='';" onClick="if(document.form1.tarea.value=='Click here to make this text disappear and begin writing.') document.form1.tarea.value='';"
I have a dropdownbox with values. When the user selects a value and presses the button [add], this value is added to the textareabox. Now I like to create a function that will remove the selected value from the same dropdownbox from the textareabox when the user presses a button [remove]. Currently I check if the textareabox is empty and set the value from the dropdown to the textareabox. If it is not empty, it will add the value + a linebreak ( )
Example: <Select name="A"> <option value="" selected>select</option> <option value="123, xy; ">123, xy</option> (notice the space at the end after the [;] !)
I have a simple website with 2 Frames,In top frame I have a button that invokes CGI script and internally that CGI script prints info (text) into the bottom frame.Going further we want to print the output coming from CGI into a textarea object in bottom form.
I have a function in my CGI script:But ends up printing multiple textarea objects in lower frame.We want to print each line of text into the same textarea object in lower frame. and at the end display a new button.How can we do this using javascript/CGI?I tried the following but not displaying anything.
sub print_message { my($message1, $message2) = @_; my $final_message = $message1 . " " . $message2;