Skip to main content
Inspiring
June 23, 2008
Question

Coldfusion with frames - showing select query as text on screen

  • June 23, 2008
  • 1 reply
  • 410 views
I've decided to try coldfusion with frames for the first time today.

I have my main page, index.htm containing

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<frameset rows=200px,*>
<frame noresize="noresize" src="menu.cfm">
<frame noresize="noresize" src="transmission.cfm">
</frameset>
</html>

the trouble I'm having is with each coldfusion page referenced above. On their own they work fine, but when shown in a frame they display the contents of the <cfquery> tag eg:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>transmission menu</title>
<LINK REL="stylesheet" HREF="style.css" TYPE="text/css">
</head>

<body>

<!--- create manufacturer query for drop-down list at the top of the page --->
<cfquery name="aaa" datasource="xxx" username="yyy" password="zzz">
Select distinct manufacturer
from transmission
order by 'manufacturer'
</cfquery>

when the page is displayed - it shows all the "Select distinct manufacturer" clause

any ideas what I'm doing wrong ?
This topic has been closed for replies.

1 reply

Inspiring
June 23, 2008
please ignore - I've found the source of the problem - Dreamweaver was previewing in the browser from

c:\.......

instead of

http://localhost.......