|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
document.getElementById() problems in IE
Hi there,
I am trying to inject some text into an iframe (edit) using the javascript. I have been using: document.getElementById('edit').contentWindow.docu ment.body.innerHTML = mytext; which works ok with Mozzila but not for IE. so I've tried document.getElementById('edit').value() = mytext but it still doesn't work. Could anyone help me with this? Thanks |
|
#2
|
|||
|
|||
|
RE: document.getElementById() problems in IE
if you are amking a cross-browser content-editable WYSIWYG editor, i suggest you use htmlArea..
it is open source, so you can use it, or learn from it.. (or at least, you can see how to read/write from/to editor in both IE and mozilla. it's a bit different, but i don't know without looking) |
|
#3
|
|||
|
|||
|
RE: document.getElementById() problems in IE
Thanks
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > document.getElementById() prtoblems in IE |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|