want to swap the contents of two textarea fields in my form.i have the hyperlink and layout donw just want to know how i access and set the form fields to their new values.
I'm using a form where a user enters data in a textarea which is then copied to all other textareas on the page. Currently I have it working for 2 textareas using this code:
I'm working on a text editor with simple BBCode tags, like . It works perfectly in firefox and chrome, but not in Internet Explorer.
The js function in question:
Do we even have a selection?
The variable textArea is, of course, a <textarea>.
I call this function with the onclick event of a button, like this:
In Chrome and FF, clicking the button inserts the tags, just as it should. In IE, nothing happens.
I have another js function that formats the text and displays it, which works in all browsers. No idea why this doesn't. Any reason this wouldn't work in IE? Anything I can do to make it work?
I need to send the contents of a ExtJS Textarea to the backend server for saving (autosave facility) as the user types in. How do I buffer the contents and push the buffer to the server after some threshold value. I've done as below:
I have Validation working across a form (I fire it several times before Submit to check sections of the form), and a tinyMCE editor working in 1 textarea.I want to move the contents of the tinyMCE iframe into the textarea before (that's the key here - before) the Submit button is pressed so that the contents can be validated in the section before Submit. I've used tinyMCE.triggerSave(); in several ways to move contents and then fire Validation before Submit. None work. I am beginning to believe that tinyMCE contents cannot be moved by any Javascript other than Submit, but I don't see that stated anywhere. In tinyMCE, I've tried onchange_callback: and handle_node_ change_callback: to fire functions with triggerSave and other saving commands. I can get the contents of tinyMCE to validate when I press Submit twice (others have noted this peculiarity), but not in any other way. Also, when errors are corrected in tinyMCE, Validation does not revalidate until Submit is pressed.
2 questions - how to move tinyMCE contents into the textarea without hitting Submit? Does CKEditor allow updates other than via Submit, and if so, where's a tutorial or example? Here's an example of code that is supposed to be triggered by tinyMCE's onchange_callback, but only triggers upon the second click on Submit.
function tinyMCESetValue(inst) { var content = tinyMCE.activeEditor.getContent();[code].....
HTML UL I have ul inside ul but all I want to get when I select a certain list is the children of that list but remove the ul inside that list so they dont show at all [URL]
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 but this is not possible in NN6+.
I am trying to set up some simple Javascript that takes the text value from a form submission (textarea A), and dynamically inserts that text into another textarea on the same page (textarea B).I need the text from textarea "A" to go in the *middle* of pre-existing text inside textarea B (instead of replacing it).
[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?
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.
I 'm writing a wen page, om which I need to get the whole content of a textarea. i tried both .text() and .html() (and of course .val() won't work, cause a textarea has not actually value but "content") but this only gives me the predefined contents of the textarea. Not these that I did write
I found a way to do this in IE but is this possible to do in Firefox aswell? I mean when a user chooses to make it his default page by clicking on a link.
I have a hexagon of pictures displayed on an HTML page. I need these pictures to rotate counter clockwise every 3000 ms. I have the code below and have made some adjustments, but how would I modify the functions to get the pictures to move?
i have designed a page that uses a jquery script in a div in the middle of the page (below the logo and upper nav) Every time I click on a button that is part of the script, the page jumps down to the top of that jquery div. I want the page to stay rooted to the top. I can't tell whether this is a problem with the css or the js script.[URL]
Im working on my final project for my DOM and DHTML class and we have to make a calculator site. I have it working (for the most part). I was wondering If there was a way to make it so whenever the form finishes executing that the page wont reload, right now I have an alert pop up and say the result but I would like to have it put the result back into the form so the user can use it for other calculations. I didn't know if there was an easy way to do this, or what I would have to use, were allowed to use Prototype and Ajax, but I dont know how to use Ajax all that well...
I am making a calculator, and it is not finnished yet, but the problem i am running into is when i run the script it gets rid of everything but what it writes.
<html>
It works fine but it does not open it gets rid of everything but the document.write text. I want it to keep the old information and right the new information.
What I need, Is the code for this: making a radio button (once activated with green dot inside it) link to a different page. That's about it. Pretty simple.
Im wondering if there is any way to access and traverse through a remote web page. im trying to traverse through a remote web page from a diferent domain so i can display some text from that page to users. is it possible to do it using javascript if so how else what is the best way to do this with out keeping the user waiting for long.
I can't seem to extract XML from an somepage.xml document and display it on a regular webpage. I have no way of reading its contents.
I read up on some microsoft way of doing it, but not sure that is gonna fly (need it for most browsers), so can this be done easily with json/ajax?
I have an xml file in normal format:
www.somedomain.com/somepath/somexml.xml
<products> <items> <item>blah</item>
[Code]....
So, how do I get that data to manipulate and display in my html? I don't even know where to begin with json/ajx etc.. and how to call the xml file etc..
In javascript, I want to do run a script based on the contents of a page. My page called page.php either contains only a 1 or is totally blank, and I want, from another page, to query the contents of that page in the form of an if, then, else statement. Code: