Print Page | Close Window

Needs Help with Code

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=11667
Printed Date: 31 March 2026 at 1:17am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Needs Help with Code
Posted By: Misty
Subject: Needs Help with Code
Date Posted: 02 September 2004 at 1:30am

I need some help with fixing this line of code:

Response.Write(vbCrLf & "                 //Create an iframe and turn on the design mode for it" & _

vbCrLf & "              document.write ('<iframe id=""message"" src=""RTE_textbox.asp?noCache=" & CInt(RND * 2000) & """ width=""100%"" height=""250px"" onMouseOver=""hideColourPallete()""> & HTMLCode & </iframe>')")

Look at the bolded & HTMLCode &. HTMLCode came from a record in a database. Can someone please give me the correct quotes to make this work?




Replies:
Posted By: Mart
Date Posted: 02 September 2004 at 3:26am

Response.Write(vbCrLf & "                 //Create an iframe and turn on the design mode for it" & _

vbCrLf & "              document.write ('<iframe id=""message"" src=""RTE_textbox.asp?noCache=" & CInt(RND * 2000) & """ width=""100%"" height=""250px"" onMouseOver=""hideColourPallete()"">" & HTMLCode & "</iframe>')")



Posted By: Misty
Date Posted: 02 September 2004 at 1:41pm

I've fixed the line of code. But the information from HTMLCode won't show up in the iframe field. How do I get it to display? However, the HTML source showed that it showed up. But it is not displaying in the iframe field.

Here's my ASP Code:

vbCrLf & "          <iframe width=""260"" height=""165"" id=""colourPalette"" src=""RTE_colour_palette.asp"" style=""visibility:hidden; position: absolute; left: 0px; top: 0px;"" frameborder=""0"" scrolling=""no"">" & HTMLCode & "</iframe>" & _

vbCrLf & "          <script language=""javascript"">")

         

'Randomise the system timer

Randomize Timer

 

                

Response.Write(vbCrLf & "                 //Create an iframe and turn on the design mode for it" & _

 

vbCrLf & "                document.write ('<iframe id=""message"" src=""RTE_textbox.asp?noCache=" & CInt(RND * 2000) & """ width=""100%"" height=""250px"" onMouseOver=""hideColourPallete()"">" & HTMLCode & "</iframe>')")

Here's the HTML Source:

  <td height="61" width="86%" valign="top">

          <iframe width="260" height="165" id="colourPalette" src="RTE_colour_palette.asp" style="visibility:hidden; position: absolute; left: 0px; top: 0px;" frameborder="0" scrolling="no"></iframe>

          <script language="javascript">

                  //Create an iframe and turn on the design mode for it

               document.write ('<iframe id="message" src="RTE_textbox.asp?noCache=1262" width="100%" height="250px" onMouseOver="hideColourPallete()">How are you doing today?</iframe>')

                         frames.message.document.designMode = 'On';

 




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