Closed
Bug 257578
Opened 20 years ago
Closed 11 years ago
dhost.info - iframe is suppose to be for typing in. Works in Internet Explorer not in Mozilla.
Categories
(Tech Evangelism Graveyard :: English US, defect)
Tech Evangelism Graveyard
English US
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: info, Unassigned)
References
()
Details
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) Build Identifier: In the example: http://www.dhost.info/gmforum/rethink/admin/editor.html I found that in Mozilla i was not able to type in the text area. However, i could in the other browsers. The textarea is an iFrame converted into a object that is used to creating html code. ie) Wysiwyg. Reproducible: Always Steps to Reproduce: 1. function document.onreadystatechange() { idContent.document.designMode="On"; } 2. The above code may be the problem 3. Actual Results: I could not type in the iframe. It is disabled. Expected Results: I should have been able to type in the text area (iFrame) and be able to edit using the buttons. Here is my code. <script language="javascript"> //put design mode on for editing var isHTMLMode = false function document.onreadystatechange() { idContent.document.designMode="On"; } //html and normal views function setMode(bMode) { var sTmp; isHTMLMode = bMode; if (isHTMLMode) { sTmp=idContent.document.body.innerHTML; idContent.document.body.innerText=sTmp; } else { sTmp=idContent.document.body.innerText; idContent.document.body.innerHTML=sTmp; } idContent.focus(); } //our own commands just for quick command creation function cmdExec(cmd,opt) { if (isHTMLMode) { alert("Please uncheck 'Edit HTML'"); return; } idContent.document.execCommand(cmd,"",opt); idContent.focus(); } //submit the content function SubmitContent() { if (isHTMLMode) { alert("Please uncheck 'Edit HTML'"); return (false); } document.editor.YOUR_CONTENT.value = idContent.document.body.innerHTML; document.editor.submit(); } //preview function doPreview(){ temp = idContent.document.body.innerHTML; preWindow= open ('', 'previewWindow', 'width=500,height=440,status=yes,scrollbars=yes,resizable= yes,toolbar=no,menubar=yes'); preWindow.document.open(); preWindow.document.write(temp); preWindow.document.close(); } </script>
not security related and not bugzilla related
Assignee: zach → general
Group: webtools-security
Component: Testing Suite → Browser-General
Product: Bugzilla → Browser
QA Contact: mattyt-bugzilla → general
Version: unspecified → Trunk
Comment 2•20 years ago
|
||
You're throwing a JS error. Error: missing ( before formal parameters Source File: http://www.dhost.info/gmforum/rethink/admin/editor.html Line: 36, Column: 17 Source Code: function document.onreadystatechange() { This is not a blocker.
Severity: blocker → normal
Comment 3•20 years ago
|
||
In fact, it's simply not valid ECMAScript or JavaScript (though apparently it's valid JScript).
Assignee: general → english-us
Status: UNCONFIRMED → NEW
Component: Browser-General → English US
Ever confirmed: true
Product: Browser → Tech Evangelism
QA Contact: general → english-us
Version: Trunk → unspecified
Updated•20 years ago
|
Summary: iframe is suppose to be for typing in. Works in Internet Explorer not in Mozilla. → dhost.info - iframe is suppose to be for typing in. Works in Internet Explorer not in Mozilla.
Updated•9 years ago
|
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•