CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Code Charge Newbie Question

Print topic Send  topic

Author Message
chief123

Posts: 2
Posted: 03/04/2004, 6:11 PM

Hi,

I've successfully played around with the various example projects and am learning whether this tool will suit my needs.

One thing I can't figure out though. I've searched through this forum and even though a couple topics came close the suggesstions didn't work.

What I need to do is include the following PHP code in my PHP project:

[code<?php include 'http://mydomain.com/newsfeeds/zfeeder.php');?>. What this does is pulls in a set of RSS feeds I'd like to put at a certain point on the page. It's important I use this PHP script versus Javascript. Now it pulls in fine - exactly as it's supposed to. However, no matter which event I put it in and which control or page I include it in it always shows up before the CC generated stuff or after. That's not what I need it to do. I need it to be at a certain point on the page - integrated in the page - not before or after. Any ideas? Thanks in advance.
View profile  Send private message
DonB
Posted: 03/04/2004, 6:48 PM

The template (PHP file) gets loaded before the page executes, and the
include then is immediately sent to the browser before the rest of the page
is even loaded.

I would put a label on the page at the appropriate location for the data the
include generates, mark the label as "HTML" data, then assign the label the
include string in the label's Before Show event.

You should never include server-side code delimited with "<?php ... ?>" in
the template.

--
DonB

http://www.gotodon.com/ccbth


"chief123" <chief123@forum.codecharge> wrote in message
news:24047e1cf8d0b0@news.codecharge.com...
> Hi,
>
> I've successfully played around with the various example projects and am
learning whether this tool will suit my needs.
>
> One thing I can't figure out though. I've searched through this forum and
even though a couple topics came close the suggesstions didn't work.
>
> What I need to do is include the following PHP code in my PHP project:
>
> [code<?php include
'http://mydomain.com/newsfeeds/zfeeder.php');?>. > > What this does is pulls in a set of RSS feeds I'd like to put at a certain point on the page. It's important I use this PHP script versus Javascript. > > Now it pulls in fine - exactly as it's supposed to. > > However, no matter which event I put it in and which control or page I include it in it always shows up before the CC generated stuff or after. That's not what I need it to do. > > I need it to be at a certain point on the page - integrated in the page - not before or after. > > Any ideas? > > Thanks in advance. > --------------------------------------- > Sent from YesSoftware forum > http://forums.codecharge.com/ >
chief123

Posts: 2
Posted: 03/05/2004, 5:35 AM

Thanks for the quick reply.

Unfortunately that didn't work. The feed still comes in at the very top of the page.

Any other ideas?
View profile  Send private message
DonB
Posted: 03/05/2004, 6:51 AM

What does the included file do to create its output - that is, to display
data? Does it output a complete <table>, a simple stream of text
characters, or perhaps <html> or <head> tags?. If it does a bunch of echos,
then you might not be able to use it as-is.

Personally, I'd rather rework the thing into a class module with a
"GetValue()" method implemented to return the assembled feed, then it would
be possible to write:

Label1->SetValue( clsRssFeed->GetValue()) ;

and fill in the Label in a more appropriate manner.

--
DonB

http://www.gotodon.com/ccbth


"chief123" <chief123@forum.codecharge> wrote in message
news:24048821fa18f8@news.codecharge.com...
> Thanks for the quick reply.
>
> Unfortunately that didn't work. The feed still comes in at the very top of
the page.
>
> Any other ideas?
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>


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.