Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - RTE V3 beta and Layers
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedRTE V3 beta and Layers

 Post Reply Post Reply
Author
GerS View Drop Down
Newbie
Newbie
Avatar

Joined: 22 January 2005
Location: Netherlands
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote GerS Quote  Post ReplyReply Direct Link To This Post Topic: RTE V3 beta and Layers
    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 ================================== 
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.