npglvr
Posts: 12
|
| Posted: 05/14/2007, 9:09 AM |
|
I've coded a page by hand and want to include it in the middle of a table. The forms include in studio only allows you to select .ccp pages. Is there a way to include non code charge created pages?
Thanks
|
 |
 |
Benjamin Krajmalnik
|
| Posted: 05/14/2007, 9:23 AM |
|
It all depends how the forms work.
One way would be an iframe.
|
|
|
 |
npglvr
Posts: 12
|
| Posted: 05/14/2007, 9:58 AM |
|
It's actually not a form. I just meant that I was using the "forms" tab in code charge to add the include.
The IFrame doesn't work because I have to pass parms to that page that's in the IFrame. I can't do that in the html portion of code charge.
If I'm able to do an actual include, then the include will pick up the parms that are being passed to the page that it's included in.
|
 |
 |
wkempees
Posts: 1679
|
| Posted: 05/14/2007, 10:18 AM |
|
Place a label in your table at the desired place.
A label from the Forms tab.
Set type to text, content=HTML
in the label either copy paste your include
OR
include_once( path to your include)
Walter
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|
 |
 |
Benjamin Krajmalnik
|
| Posted: 05/14/2007, 7:34 PM |
|
Not a problem.
Do not hardcode the iframe.
Instead, create a label. Set it to be an HTML label. In the beforeshow,
generate the source for the iframe, parameters included.
|
|
|
 |
npglvr
Posts: 12
|
| Posted: 05/15/2007, 9:35 AM |
|
Your answers helped me come to the following solution:
At the very top of the .cfm page I put in a <cfinclude>. In the Include, I set my ouput equal to a variable (TheResults). After that, I put in a <cfset page_include=TheResults> Then I just used "TheResults" as the control for the label and displayded it in html.
|
 |
 |
Wkempees
|
| Posted: 05/16/2007, 2:37 AM |
|
So finaly you tell us you are using ColdFusion.
Glad it worked out, all the time I thought PhP was your language of choice.
LOL Walter
|
|
|
 |
npglvr
Posts: 12
|
| Posted: 05/16/2007, 4:38 AM |
|
um...oops?
|
 |
 |
Wkempees
|
| Posted: 05/16/2007, 4:50 AM |
|
Are you not using ColdFusion, then tell us what your programming
environment is, I thought it to be PhP.
Until you wrote Quote : <cfinclude> and Quote :I put in a <cfset
page_include=TheResults>
Walter
|
|
|
 |
npglvr
Posts: 12
|
| Posted: 05/16/2007, 4:57 AM |
|
Right...the "um...oops" was a "sorry".
Anyway...thanks for all the help.
|
 |
 |
Wkempees
|
| Posted: 05/16/2007, 4:59 AM |
|
OK, thanks, no sorry needed, as long as you got it, everybody happy.
|
|
|
 |