Preview window not using Styles

Last post 08-05-2009, 4:05 PM by Adam. 3 replies.
Sort Posts: Previous Next
  •  08-05-2009, 10:40 AM 54513

    Preview window not using Styles

    I have added a custom CSS file which amongst other things changes the background colour to dark blue. When I hit the Preview button, the preview page is white.
     
    Any ideas?
  •  08-05-2009, 1:11 PM 54521 in reply to 54513

    Re: Preview window not using Styles

  •  08-05-2009, 3:31 PM 54525 in reply to 54521

    Re: Preview window not using Styles

    That example works - I am using IE, and FF. Where can I get the code?
     
    Kevin
  •  08-05-2009, 4:05 PM 54528 in reply to 54525

    Re: Preview window not using Styles

    Kevin,
     
    1. <html>  
    2.     <!-- #include file = "CuteEditor_Files/include_CuteEditor.asp" -->    
    3. <head>  
    4.         <script type="text/javascript">  
    5.   
    6.         function jumpTo(strMenu) {   
    7.             if (strMenu.value != "")   
    8.                 top.location.href = strMenu.value;   
    9.   
    10.             return true;   
    11.         }   
    12.         </script>  
    13.            
    14.         <%    
    15.             Dim css   
    16.             css = "style.css"  
    17.                
    18.             if Request.QueryString("css") <> "" then   
    19.                 css = Request.QueryString("css")   
    20.             end if   
    21.         %>  
    22. </head>  
    23. <body>       
    24.     <form name="theForm" action="/asp/Get_HtmlContent.asp" method="post">  
    25.     <div id="Common">                
    26.                     <table id="RadioList" border="0">  
    27.                         <tr>  
    28.                             <td>  
    29.                                 <input type="radio" name="RadioList" value="Using-External-Style-Sheets.asp?css=/asp/style.css" onclick="jumpTo(this)" />style.css   
    30.                             </td>  
    31.                             <td>  
    32.                                 <input type="radio" name="RadioList" value="Using-External-Style-Sheets.asp?css=/asp/backgroundimage.css" onclick="jumpTo(this)" />backgroundimage.css   
    33.                             </td>  
    34.                             <td>  
    35.                                 <input type="radio" name="RadioList" value="Using-External-Style-Sheets.asp?css=/asp/style.css,/asp/backgroundimage.css" onclick="jumpTo(this)" />style.css+backgroundimage.css   
    36.                             </td>  
    37.                         </tr>  
    38.                     </table>  
    39.                     <%   
    40.                         Dim editor   
    41.                         Set editor = New CuteEditor   
    42.                            
    43.                         editor.ID = "Editor1"  
    44.                         editor.Text = css  
    45.                         editor.EditorWysiwygModeCss = css  
    46.                         editor.Draw()   
    47.                                                                                                
    48.                         ' Request.Form(ID) access from other page   
    49.                     %>  
    50.     </form>  
    51. </body>  
    52. </html>  

    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