Print Page | Close Window

RTE V3 beta and Layers

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Rich Text Editor (RTE)
Forum Description: Support forum for the Web Wiz Rich Text Editor (RTE).
URL: https://forums.webwiz.net/forum_posts.asp?TID=14043
Printed Date: 28 March 2026 at 8:59pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: RTE V3 beta and Layers
Posted By: GerS
Subject: RTE V3 beta and Layers
Date Posted: 28 February 2005 at 4:12pm

I have a problem with the beta version of RTE V3, concerning layers in IE6, (WinXP).

There is a layer on top of the basic information of the page.
In this layer there is a form with the RTE-textarea.
Everyting works fine, but when the user clicks a button to hide the layer (and show the underlaying information), all the entered text disappears as expected, Smile
but graphical things like emoticons or inserted imaged are still visible.Confused

Any ideas why this happens and how to overcome it???

To show what I mean, here is a very basic code example that should work if you already have installed RTE V3.

================================================================ start code example:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function switchlayerIE(object) {
 if (document.all[object].style.visibility == 'hidden' ) {
     document.all[object].style.visibility = 'visible'; }
 else
   { document.all[object].style.visibility = 'hidden' ;
    }
          
  }
//-->
</script>
</head>
<body onload="initialiseWebWizRTE();" >
<table width="100%" border="1" >
  <tr>
      <td onClick="switchlayerIE('Layer1')">layer on/off</td>
  </tr>
</table>
<p>&nbsp;</p>
<div id="Layer1" style="position:absolute; width:510px; height:409px;
     z-index:1; left: 145px; top: 76px;">
  <form name="form1" method="post" action="">
    <table width="100%" height="283" border="1"  bordercolor="#99CCFF">
      <tr>
        <td> <% dim strFormName, strTextAreaName
       strFormName = "form1"
       strTextAreaName = "textarea1" %>
    <!--#include file="RTE_editor_inc.asp" -->
  </td>
      </tr>
      <tr>
        <td><textarea name="textarea1" cols="50" rows="10" id="textarea1"></textarea></td>
      </tr>
     
    </table>
  </form>

</div>
</body>
</html>


end code example ================================== 


-------------
Ger



Replies:
Posted By: WebWiz-Bruce
Date Posted: 01 March 2005 at 4:54am
In  stead of using layers, which in my opionon still are not support well enough by browsers a suck use tables.

You could create a table containing your form giving that table an ID.

Then use CSS to hide the table.

tableID.style.display = 'none';

This would then hide that table.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net