473,503 Members | 1,677 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

cfoutput to a htm file? html frames

19 New Member
Currently i have a DEFAULT.htm file that display 2 htm frames , FRAME1.htm and FRAME2.htm.

1.FRAME 1.htm present a form to fill up a sql query and pass info to a "MYQUERY.cfm"
2.MYQUERY.cfm performs query on sql and show results in table on FRAME1.

Is any way i can make that result table to show up on FRAME2.htm instead??

I tried everything and nothing works

Any help will be appreciated

This is the code :
MYQUERY.CFM
Expand|Select|Wrap|Line Numbers
  1.  
  2. <html>
  3. <CFOUTPUT>
  4.  
  5. The item selected is #item#
  6.  
  7. </CFOUTPUT>
  8.  
  9.  
  10. <h1> List of product selected with price </h1><hr>
  11.  
  12. <!--- Step 1: The SQL query to list a subset of columns from supplier table --->
  13. <cfquery name="testing" Datasource="Northwind">
  14. select productid,productname,unitprice,unitsonorder from products
  15. </cfquery>
  16.  
  17. <cfif #testing.recordcount# EQ 0>
  18. No products available. 
  19. <cfelse>
  20.  
  21.  
  22.  
  23. <!--- Step 2-a): Print Column Headings --->
  24.  
  25. <table border="1" cellpadding="1">
  26. <tr>
  27. <td>Productid</td>
  28. <td>ProductName</td>
  29. <td>UnitPrice</td>
  30. <td>UnitsOnOrder</td>
  31. </tr>
  32.  
  33.  
  34. <!--- Step 2-b): Code for outputting retrieved data in table format ---> 
  35. <cfoutput query="testing">
  36. <tr>
  37. <td>#ProductID#</td>
  38. <td>#ProductName#</td>
  39. <td>#UnitPrice#</td>
  40. <td>#UnitsOnOrder#</td>
  41. </tr>
  42. </cfoutput>
  43. </table>
  44. </cfif>
  45. </body>
  46.  
  47. </html>
  48.  
Jun 9 '08 #1
1 3524
acoder
16,027 Recognized Expert Moderator MVP
Set the target of the form to frame2. An HTML solution rather than a Coldfusion one.
Jun 9 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
2750
by: Yvan J. Gagnon | last post by:
I am encountering a strange problem in Netscape 7 with a CFM file I am trying to troubleshoot (the page is working fine in NS Communicator and IE). Below is a sample of the problematic line of...
7
7656
by: Go USA! Go Israel! | last post by:
I was wondering if the following was possible: Instead of using a frameset which references other individual HTML files, have the <SPAN> tag reference another HTML file, which is placed within...
14
2182
by: Frances Del Rio | last post by:
if (parent.frames.main.location == 'mediaselect.html') { I have a very simple frameset, name of frame where I'm checking is 'main'... why is this not working? I mean this is correct syntax,...
2
2016
by: ChrisR | last post by:
Hi folkes I have a simple html file with 2 frames, as my Help file to my DB. It consists of 3 parts: Help.htm = Is the main file with the 2 frames. Index.htm = Is the left frame as a index...
1
1306
by: fro5tie | last post by:
Please would anyone be able to help me, i have search google and tried my best to get this to work for hours and its really infuriating now. basically i have a site with frames 5 frames, one...
14
3396
by: indessen | last post by:
Hi, got the following problem: I want to include some code in an HTML page so that at a particular place, it fetches another HTML file from another server and puts it in. Reason for this is that...
4
1382
by: admyc | last post by:
Hi, I have a site I designed using frames.The document that sets up the frame structure is called index.html, and one of its frames contains the main document called main.html. The search...
1
2710
by: pbd22 | last post by:
hi. i have been posting this here and elsewhere a lot and can't seem to get resolution on this problem. i have been trying to upload files using a hidden iframe to a asp.net/vb.net form. the...
12
5576
by: Geoff Cox | last post by:
Hello I'm having a problem loading a frameset file using an include in a php file. Nothing is displayed and when I look at the source code I see that <html> <head> <title></title>
0
7202
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7278
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6991
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7458
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3167
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1512
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.