rich dropdown

Last post 04-22-2004, 12:01 PM by Adam. 3 replies.
Sort Posts: Previous Next
  •  04-21-2004, 4:49 PM 695

    rich dropdown

    I have a problem with the rich dropdown javascript functions. They are automatically added to the page the editor lives on. But the links (onmouseover etc) have parent.rOver defined instead of just rOver. This way, when using frames, i get a javascript error that the function rOver is not defined.

     

    How can i remove the parent. identifier from these links?

     

    Thanks in advance

  •  04-22-2004, 6:46 AM 697 in reply to 695

    Re: rich dropdown

    Hi,

     

    I just set up an example using frames, please check the following link:

     

    http://cutesoft.net/example/frames.aspx

     

    Below is the code I am using:

     

     

    <html>

          <frameset cols="50%, 50%">

               <frame src="general.aspx">

              <frame src="general.aspx">

          </frameset>

    </html>

     

     

    If you still have problems, please post your frame code here....

     

     

     

     


    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  04-22-2004, 11:11 AM 699 in reply to 697

    Re: rich dropdown

    Hello Adam,

     

    It has to do with the sylesheetpath property. I want to use my own css for the editor so i link my stylesheet to the editor (it is already on the page howvever!) That way i get the error because the following javascript code is not generated:

     

    <script language="javascript">
         function rOver(el) {el.style.background = 'highlight'; el.style.color='white';}
         function rOut(el) {el.style.background = '#FFFFFF'; el.style.color='black';}
         function rOver1(el) {el.style.border = '1px solid highlight';}
         function rOut1(el) {el.style.border = '1px solid #D4D0C8';} 
         function rOut2(el) {el.style.border = '1px solid #808080';} 
    </script>

     

    When i leave the stylesheetpath property blank, the default styles for the editor are also added to the page, but they are also included in my stylesheet, so i cannot determine wchich one is a;lways used.

     

    Do i have to configure this another way?

     

    Then, i also have a small problem with the OBJECT tag that is automatically added (dlgHelper). it is configured with a height of 0px, but i still get a small line on top of my page. Since that section has no white background it is visible between 2 frames.

     

    I hope you can help me solving thse two issues

     

    Frans

  •  04-22-2004, 12:01 PM 700 in reply to 699

    Re: rich dropdown

    Frans,

     

    If you want to configure the fancydropdown background color. Please try the following two properties:

     

    /// <summary>

    /// Specifies the background color of the Container table

    /// </summary>

     

    BgColor

    /// <summary>

    /// Specifies the background color of the drop downs.

    /// </summary>

    DropDownBackColor

     

    If you want to use your own style sheet and also want to enable fancydropdown, you have to put the following JavaScript code at the top of your page:

     

    <script language="javascript">
         function rOver(el) {el.style.background = 'highlight'; el.style.color='white';}
         function rOut(el) {el.style.background = '#FFFFFF'; el.style.color='black';}
         function rOver1(el) {el.style.border = '1px solid highlight';}
         function rOut1(el) {el.style.border = '1px solid #D4D0C8';} 
         function rOut2(el) {el.style.border = '1px solid #808080';} 
    </script>

     

     

    Then, i also have a small problem with the OBJECT tag that is automatically added (dlgHelper). it is configured with a height of 0px, but i still get a small line on top of my page. Since that section has no white background it is visible between 2 frames.

     

    Can you post your code here?  I will check the code for you.

     

     


    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML