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 -> General/Other

 Using layers around generated HTML

Print topic Send  topic

Author Message
djaekimaar

Posts: 4
Posted: 10/09/2004, 9:12 AM

Hi
I am very new to Code Charge. I want to put <div> tags around the HTML generated by CC. The doco seems to imply that I should put it in the template file that I can specify. However if I do this, the generated code is placed outside the div tags. Is there anyway of fixing this ? I have looked throught the manual and this forum but haven't found anything yet.

thanks for any help

Tim
View profile  Send private message
peterr


Posts: 5971
Posted: 10/10/2004, 6:14 AM

Tim,
Sorry, I don't quite understand your question. Did you switch to the HTML mode, modified something, and then it was lost? Did you place <div> tag before the <html> tag? Also if you can please try explaining the purpose of what you're doing, as there may be several ways to accomplish something.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
djaekimaar

Posts: 4
Posted: 10/10/2004, 8:09 AM

Hello Peterr
What I am trying to do is have all the code that CodeCharge Studio produces generated inside a div tag that I can then control using css. Within Tool / Options Paths there is a field for a template path that the documentation implies can contain a template from which the html will be generated. So this is where I put my DIV tags. The doco did not say how to indicate that I wanted the generated code within the tags, so I just tried. I guess one option would be to put the start of the div tag in the template and the finish in the footer but this seems a bit of a crap way of doing it .
If I have got completely the wrong idea about how it works then please let me know .
View profile  Send private message
peterr


Posts: 5971
Posted: 10/11/2004, 2:55 AM

In my opinion:
1. Applying <div> tag to the whole HTML is the same as not applying <div> tag at all. You only need <div> if you have several distinct sections (layers) on the page. Having one layer is the same as operating on the HTML without a layer (though I could be wrong, as I just learned about this a minute ago from Google and the example below).

2. You don't need <div> tag to control using css.
For example I just found some code on Google and entered this style at the top of my HTML and now all my tables on the page have this style applied to them:
<style>  
td { border:1px solid blue; }  
table { border:1px solid black; empty-cells:show; }  
</style>

3. I checked the documentation for the "Path" and it reads:
"HTML Page Template - Specifies the path to an HTML template page that will be used as the base for all newly created pages.". I don't see this as an implication that this is a template from which the html will be generated. It is simply the base HTML when creating a new page. Once you create a new page with this template, later it will not be used again, especially if you make changes to your HTML. In fact, CCS doesn't generate HTML - it just copies the HTML that you designed to the server. Thus if you don't see something (like <div> tag) in the HTML mode then it is not there and will not appear later. Parts of the HTML are only created by the Builders and the full HTML is shown in the HTML mode. Basically CCS doesn't touch your HTML code (with minor exceptions that I don't see as a problem in your case yet).

Hope this helps.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
djaekimaar

Posts: 4
Posted: 10/11/2004, 4:38 AM

Hello Peterr.
Thanks for you reply.
I do indeed want to have several distinct sections within my page. So far I have managed to sort that with the Header and a Navigation bar down the side (Though I am having problems getting a menu bar system working) I do want to be able to put DIV tags around all that codecharge generates. It does generate HTML when the Page or Application builders are used and it is this HTMl I want be able to control the positioning of within a page containing 3 main layer.
The code you found in 2. is really just CSS embeded in the page rather than a CSS file. ( I have used the4 StormyWeather theme and all the tables are "Stormy Weather"
I am a bit confused as to why you think that there is no
Quote :
implication that this is a template from which the html will be generated

It is described as a path to an HTML Template and when a page is generated this HTML is used.

Going back to the begining. _ Do I have to wrong idea about how to use CCS. Is there a way to have distinct layers on a page. (It is a fairly standard method now that tables are not supposed to be used for layout purposes)

Thanks for your time on this

Tim
View profile  Send private message
peterr


Posts: 5971
Posted: 10/11/2004, 6:55 AM

Tim,

I believe that the code I have found works the same whether is placed on the page or in a CSS file. It was just an example.

There is no implication that this is a template from which the html will be generated, since the documentation/Help states (again): "HTML Page Template - Specifies the path to an HTML template page that will be used as the base for all newly created pages.". Newly created page is just a new, blank page. Nothing else is implied.

Back to the builders, I think that I understand now that you don't want a DIV tag around the whole HTML, but around each form/component created by the builders. Currently there is no feature for the builders to create HTML via a template or use DIV tags. You can:
a) add those <div> tags manually to the page, even create some program or script that will do this for you automatically.
b) Modify the Builders (for example ...\CodeChargeStudio\Components\Dialogs\Wizards\Record\Record.js)
c) Request a new feature at http://support.yessoftware.com , or in the Wishes forums.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
djaekimaar

Posts: 4
Posted: 10/11/2004, 7:37 AM

Thanks Peter I think you have answered my question.
I would disagree with you though I think the fact that it is described as an HTML Template implies that it is a template from which HTML will be generated, and if a new blank page is created from it what is the point if it is blank ?
Thanks though - question answered - and I will go an have alook at
the components and see if I can figure out how to change them .
View profile  Send private message
DonB
Posted: 11/30/2004, 1:35 PM

When I insert DIVs (and I do it just about all the time anymore), I turn on
the P symbol in the toolbar to show all tags in the design window. Also, I
usually create DIVs by typing this into the HTML panel:

<div class='xyz'>xyz</div>

Then it's easy to locate the insertion point on the design panel, so my
grids, etc. are placed where I want them to be - inside the DIV. I select
the text 'xyz' with my mouse and then add the object I want to insert. It
ends up properly positioned inside the DIV.

--
DonB

http://www.gotodon.com/ccbth

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.