CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 doctype and head tags don't work from include pages

Print topic Send  topic

Author Message
rbroder

Posts: 67
Posted: 06/19/2011, 5:15 PM

I am trying to put the doctype, head, and meta content-type tags in my include pages. I am using utf-8 charset.

This generates: Warning:The charset used in the HTML template of included page "C:\data\ccpROJECTS\TestQualityApps\header.ccp" does not match the charset of the HTML template of generated page.

Furthermore, the generated html does not contain the doctype, head, or meta tags.

Is this considered normal behavior? Anyone have a work around?
View profile  Send private message
rho


Posts: 85
Posted: 06/19/2011, 11:40 PM

Hi,

CCS sometimes removes the contenttype metatag from include page. This makes sense, as the page will be included in another page - which will have it's own contenttype metatag. However, CCS then gives the warning. I contacted Yes Support about this.

As I like my CCS projects to be 'clean' (that is, no errors and warnings when generating), I workaround this by reapplying the contenttype metatag in the include (and generating the page) until it 'sticks' and then save. However, I've found that when changing the server in the Project Settings, the metatag gets removed again.

It is interesting that the metatag removal is not consistent: it happens on incidentally on some includes and on some servers, so I haven't been able to find a general workaround. Maybe someone else has any tips?

Cheers, Rob.
View profile  Send private message
datadoit
Posted: 06/20/2011, 8:09 AM

As a general practice when working with includable pages:

- When making changes in design mode, switch to code view, then to HTML
view, then to design view.
- Right click in design view and choose Page Properties, set the
encoding back, then switch to code view, HTML view, back to design view,
then publish.
- Test your changes. If all is well, save the changes.
- Repeat.

:)

I do this so often that it's done subconsciously.

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.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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