simmsdk
Posts: 6
|
| Posted: 09/23/2004, 2:59 AM |
|
This is giving me more grey hairs than i already have...
I have made a file called inc_functions that contains my custom functions (a gallery), this file is includable.
I include this file in my page, and then i call the function from a label... (eg, in default value or before show)
But no matter what i do, the called function generates all the output at the top of the page... nomatter what i put at the top, the functions output end up at the top....and i need it NOT to be at the top of the page.
Can some one please help.... ???
|
 |
 |
DonB
|
| Posted: 09/23/2004, 7:41 AM |
|
It sounds like you omitted the script delimiters <?php ... ?> from the
include file, so the code is being treated as text, not code.
--
DonB
http://www.gotodon.com/ccbth
"simmsdk" <simmsdk@forum.codecharge> wrote in message
news:541529e954769a@news.codecharge.com...
> This is giving me more grey hairs than i already have...
>
> I have made a file called inc_functions that contains my custom functions
(a
> gallery), this file is includable.
>
> I include this file in my page, and then i call the function from a
label...
> (eg, in default value or before show)
>
> But no matter what i do, the called function generates all the output at
the
> top of the page... nomatter what i put at the top, the functions output
end up
> at the top....and i need it NOT to be at the top of the page.
>
> Can some one please help.... ???
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
simmsdk
Posts: 6
|
| Posted: 09/23/2004, 9:17 AM |
|
No, it's not that. I'll try to explain it better...
I have in CCS a page called "functions", set to be includable. In the After initialize event i have put all my functions..
In another page, named "gallery" also in CCS, i include the "functions" page just like i include a footer page...
On this gallery page i place in the following order a:
header,
a label where i call the gallery function,
footer
But when i run the page, the output is :
gallery
header
footer
...Why ???
|
 |
 |
simmsdk
Posts: 6
|
| Posted: 09/23/2004, 10:14 AM |
|
Dont bother i have found the bug....
It was related to the way i build the html output....
|
 |
 |
ispwebhosting4u
Posts: 17
|
| Posted: 09/29/2004, 1:38 PM |
|
Can you please explain how you correct the problem? I am having the same issue.
Thanks.
Rick
_________________
Rick Page
PageHosting4U.com |
 |
 |
peterr
Posts: 5971
|
| Posted: 09/30/2004, 1:28 AM |
|
You have to make sure that your custom PHP functions do not send any output to the browser. If you need output then you can assign it to a Label.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
ispwebhosting4u
Posts: 17
|
| Posted: 09/30/2004, 9:06 AM |
|
Hi Peter,
I am trying to integrate a spell checker into my ccs site. The example html that came with the script has php through out it with <?php?> tags.
I am going to have to rewrite the functions to be compatible with ccs.
Thanks for your help.
Rick
_________________
Rick Page
PageHosting4U.com |
 |
 |
|