Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Needs Help with Code
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Needs Help with Code

 Post Reply Post Reply
Author
Misty View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 February 2002
Location: United States
Status: Offline
Points: 711
Post Options Post Options   Thanks (0) Thanks(0)   Quote Misty Quote  Post ReplyReply Direct Link To This Post Topic: Needs Help with Code
    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?

Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post 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>')")

Back to Top
Misty View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 February 2002
Location: United States
Status: Offline
Points: 711
Post Options Post Options   Thanks (0) Thanks(0)   Quote Misty Quote  Post ReplyReply Direct Link To This Post 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';

 

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.