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

 HTML code change on Generate Code

Print topic Send  topic

Author Message
pevans

Posts: 14
Posted: 07/24/2006, 7:56 PM

I am using the following code to generate a horizontal list using CSS.
----------------------------------------------------------------
<div id="navcontainer">
<ul id="navlist">
<!-- BEGIN Row -->
<!-- BEGIN RowError --><!-- END RowError -->
<li>
<input type="hidden"value="{ProgramID}"name="{ProgramID_Name}">
<input type="hidden" maxlength="10" size="2"
value="{DayNumber}"name="{DayNumber_Name}" style="WIDTH: 32px; HEIGHT: 22px">
<a href="{Link1_Src}">{DayNumber}</a>
</li>
<!-- END Row -->

</ul>
</div>
----------------------------------------------------------------
However CCS keeps changing the code to the following.


----------------------------------------------------------------
<div id="navcontainer">
<ul id="navlist">
<!-- BEGIN Row -->
<!-- BEGIN RowError --><!-- END RowError -->
<li>
<input type="hidden"value="{ProgramID}"name="{ProgramID_Name}">
<input type="hidden" maxlength="10" size="2"
value="{DayNumber}" name="{DayNumber_Name}" style="WIDTH: 32px; HEIGHT: 22px">
<a href="{Link1_Src}">{DayNumber}</a>nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;
<!-- END Row -->
</li>
</ul>
</div>
----------------------------------------------------------------

It moves the </li> tag outside the row definition, which affects the generated code by leaving the </li> off the end of each list item. It also adds nbsp inside the row definition, which affects the display. It seems to keep adding a nbsp each time the code is generated.

I do not do any editing of the HTML between these changes made to the code. It seems to occur when the code is generated for Live View or on Generate Code.

How can I prevent these changes?

PhilE

(I have re-formatted this code here from what is generated to make it a bit easier to see the changes.)
View profile  Send private message

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.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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