ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old August 10th, 2004, 04:12 AM
mreiner mreiner is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 3 mreiner User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
CF Access query and HTML frames

Hello,

I'll start by saying that I am new to ColdFusion scripting. I am connecting to an Access database and executing a simple query. When I preview the page, home.cfm, it executes flawlessly. However, when the page is part of a frameset, it won't execute. Oddly enough, when I preview the frameset in IE6, the file itself (home.cfm) actually starts to download. I have not tested this on a "live" server. I am previewing locally on a Windows XP Pro machine running Windows IIS and ColdFusion MX 6.1 Dev. Please help!

Thanks,

Michael R

Reply With Quote
  #2  
Old August 10th, 2004, 08:19 AM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,627 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 10 h 8 m 55 sec
Reputation Power: 53
The page loads when you view it in its own window, but won't load in a frameset? That doesn't make any sense. CF has no idea whether the page is being used in a frame or not, it just gets a request for a page and returns the resulting output. I would start by looking at the source code for the frameset and confirm that you are using a valid URL. Copy the URL and use it in its own window to confirm that it works.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian.
How to Post a Question in the Forums

Reply With Quote
  #3  
Old August 10th, 2004, 02:03 PM
Ebot's Avatar
Ebot Ebot is offline
Meatball Surgeon
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2004
Location: Elbow deep in code
Posts: 1,163 Ebot User rank is Brigadier General (60000 - 70000 Reputation Level)Ebot User rank is Brigadier General (60000 - 70000 Reputation Level)Ebot User rank is Brigadier General (60000 - 70000 Reputation Level)Ebot User rank is Brigadier General (60000 - 70000 Reputation Level)Ebot User rank is Brigadier General (60000 - 70000 Reputation Level)Ebot User rank is Brigadier General (60000 - 70000 Reputation Level)Ebot User rank is Brigadier General (60000 - 70000 Reputation Level)Ebot User rank is Brigadier General (60000 - 70000 Reputation Level)Ebot User rank is Brigadier General (60000 - 70000 Reputation Level)Ebot User rank is Brigadier General (60000 - 70000 Reputation Level)Ebot User rank is Brigadier General (60000 - 70000 Reputation Level)Ebot User rank is Brigadier General (60000 - 70000 Reputation Level)Ebot User rank is Brigadier General (60000 - 70000 Reputation Level)  Folding Points: 21785 Folding Title: Starter FolderFolding Points: 21785 Folding Title: Starter Folder
Time spent in forums: 1 Week 4 Days 3 h 34 m 39 sec
Reputation Power: 684
Michael,

When you view the file in the frameset, does everything come up blank or it is just not executing your queries.

If it is coming up blank, then you probably have some text or some kind of output in your frameset that is causing it not to be a frameset (framesets are real loners, they don't like anyone else in thier file).

Reply With Quote
  #4  
Old August 10th, 2004, 06:28 PM
mreiner mreiner is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 3 mreiner User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by Ebot
Michael,

When you view the file in the frameset, does everything come up blank or it is just not executing your queries.

If it is coming up blank, then you probably have some text or some kind of output in your frameset that is causing it not to be a frameset (framesets are real loners, they don't like anyone else in thier file).


Kitless| was of the mind that it shouldn't matter whether you output in a frame or not which is why this is so perplexing to me. Do you mean that I should be checking the source URL for the frame that is not loading in the frameset? If that is what you mean, I am able to load that frame by itself. I may be a bit confused.

Ebot| When I run the frameset, the frame which executes the CFquery does come up blank. It won't even load the error checking info, so i'm not sure if the query is even executing. Again, what's really odd is that the frame with the CF in it starts to "download," pops open a download dialog box?

Reply With Quote
  #5  
Old August 10th, 2004, 07:20 PM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,627 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 10 h 8 m 55 sec
Reputation Power: 53
You are correct, to ColdFusion it doesn't matter if the page is by itself or nested in a frameset that is 6 levels deep. All it knows is that it got an HTTP requset and it returns output in response to that. If you can load the URL that is the source for the frame in a browser window by itself, then CF is working correctly. If that frame won't populate correctly as part of the frameset, then the problem is absolutely somewhere in your frameset code and is totally independent of the CF server.

Reply With Quote
  #6  
Old August 11th, 2004, 06:50 AM
Ebot's Avatar
Ebot Ebot is offline
Meatball Surgeon
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2004
Location: Elbow deep in code
Posts: 1,163 Ebot User rank is Brigadier General (60000 - 70000 Reputation Level)Ebot User rank is Brigadier General (60000 - 70000 Reputation Level)Ebot User rank is Brigadier General (60000 - 70000 Reputation Level)Ebot User rank is Brigadier General (60000 - 70000 Reputation Level)Ebot User rank is Brigadier General (60000 - 70000 Reputation Level)Ebot User rank is Brigadier General (60000 - 70000 Reputation Level)Ebot User rank is Brigadier General (60000 - 70000 Reputation Level)Ebot User rank is Brigadier General (60000 - 70000 Reputation Level)Ebot User rank is Brigadier General (60000 - 70000 Reputation Level)Ebot User rank is Brigadier General (60000 - 70000 Reputation Level)Ebot User rank is Brigadier General (60000 - 70000 Reputation Level)Ebot User rank is Brigadier General (60000 - 70000 Reputation Level)Ebot User rank is Brigadier General (60000 - 70000 Reputation Level)  Folding Points: 21785 Folding Title: Starter FolderFolding Points: 21785 Folding Title: Starter Folder
Time spent in forums: 1 Week 4 Days 3 h 34 m 39 sec
Reputation Power: 684
Framesets do not care if CFqueries are in the same file, however, if you have an object or text in the same file as a frameset, it will not load correctly. Basically, keep any tags that would go inside a form out of the file that holds your frameset.

Reply With Quote
  #7  
Old August 13th, 2004, 12:01 PM
mreiner mreiner is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 3 mreiner User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thank You

Quote:
Originally Posted by Ebot
Framesets do not care if CFqueries are in the same file, however, if you have an object or text in the same file as a frameset, it will not load correctly. Basically, keep any tags that would go inside a form out of the file that holds your frameset.


Ebot & Kiteless| Thank you both for your replies. The probelm seems to lie somewhere in the configuration of my testing server. For some reason, the frameset cannot be viewed through my local testing server. However, if type the url into the browser, it works fine. Still a bit confused, but I think it requires more learning on my end. Thanks again.

Michael

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > CF Access query and HTML frames


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway