CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 How do you include a non code charge page?

Print topic Send  topic

Author Message
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
View profile  Send private message
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.
View profile  Send private message
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
View profile  Send private message
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.
View profile  Send private message
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?
View profile  Send private message
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.
View profile  Send private message
Wkempees
Posted: 05/16/2007, 4:59 AM

OK, thanks, no sorry needed, as long as you got it, everybody happy.

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.