Welcome to WebmasterWorld Guest from 54.162.226.212

Forum Moderators: open

Message Too Old, No Replies

Wysiwyg update input value major problem

can't update input value without resetting undo

     
12:57 pm on Aug 13, 2002 (gmt 0)

10+ Year Member


Whenever I try to update the value of an input field from within a wysiwyg the undo batch resets. Take the code I have pasted below and type a couple of lines, hit return, and type a couple more lines. Try to undo and redo. No problem.. Now try to click into the wysiwyg before undoing. Big Problem! Thanks in advance for any help..

<IFRAME WIDTH=200 HEIGHT=200 ID=myEditor></IFRAME>
<SCRIPT>
frames.myEditor.document.designMode = "On"
frames.myEditor.document.onmouseup=hello

function hello(){
document.getElementById("border2").setAttribute("value", "Please Work");

}
</SCRIPT>

<form>
<input id='border2' value='' size='25'>
</form>

7:22 pm on Aug 14, 2002 (gmt 0)

WebmasterWorld Administrator brotherhood_of_lan is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Hello djsambo, welcome to webmasterworld

I've never read into javascript, so I'm not sure what the problem is. Maybe it could spur on others if you mention which WYSIWYG you are using?

 

Featured Threads

Hot Threads This Week

Hot Threads This Month