[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

08/27/2005 at 07:50AM PDT, ID: 21542209
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.2

Richedit bug with SSL enabled sites

Asked by ap_sajith in JavaScript

Tags: javascript

So here is the issue: When I try and access a page with the RichEdit component over SSL, the annoying "This page contains both secure and non secure items" message.

I know that the IFrame without the src attribute is causing the issue. So I tried giving an src attribute to the IFrame, pointing it to "blank.htm". Now the real problem starts. For some reason I get a permission denied error on the d.close() line within the richedit.js file.

Here is the code that I am using:
- RTE.asp
=============================================
<IFRAME ID="edit" CLASS="richEdit" usebr="true"  oneditinit="editInited(this)" STYLE="padding-top: 0px; width: 500; height: 200; border: 0px inset;" TABINDEX="4" src="blank.htm">
    <BODY TOPMARGIN="0" LEFTMARGIN="0" STYLE="color: black; background: white;font: 11px verdana;">
     
    </BODY>
   </IFRAME>
   
   <SCRIPT TYPE="text/javascript">

   function editInited(edit) {
      edit.frameWindow.document.body.style.color = "black";
      //** PASS THE VALUE FROM THE HIDDEN VARIABLE ON REFRESH **
      edit.frameWindow.document.body.innerHTML=window.document.all.txtDescription.value;
   }

   </SCRIPT>
===============================================

- RichEdit.js
===============================================
function initRichEdit(el) {
 if (el.id) { // needs an id to be accessible in the frames collection
  el.frameWindow = document.frames[el.id];
  if (el.value == null)
   el.value = el.innerHTML;
 
  if ( el.value.replace(/\s/g, "") == "" )
   el.value =  "<html>\n" +"<head>\n<title></title>\n</head>\n<body>\n</body>\n</html>";
  var d = el.frameWindow.document;
  d.designMode = "On";
  el.src = "blank.htm";
  d.open();
  d.write(el.value);
  d.close();//==>this is where I get the permission denied error

Thanks in advance for your suggestions. Please let me know if you need to see more of the code.

Cheers!
Sajit
[+][-]08/27/05 08:16 AM, ID: 14768082

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/27/05 08:46 AM, ID: 14768172

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/27/05 08:53 AM, ID: 14768191

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/27/05 08:55 AM, ID: 14768196

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/27/05 10:39 AM, ID: 14768473

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: JavaScript
Tags: javascript
Sign Up Now!
Solution Provided By: Zyloch
Participating Experts: 2
Solution Grade: A
 
 
[+][-]08/28/05 09:45 AM, ID: 14771703

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/01/05 09:28 AM, ID: 14803639

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]09/13/05 09:35 PM, ID: 14878219

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20090824-EE-VQP-74