CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 How to get rid of   in templates

Print topic Send  topic

Author Message
cionow
Posted: 02/07/2002, 1:42 PM

Is there anyway to get rid of the   in the CC templates? These tend to get in the away of some more advanced formatting, and cause minor display problems.
Andrew B
Posted: 02/07/2002, 6:50 PM

Perhaps you could toy with 'DBlocks' (see templateobj.asp).

Try putting code like this somewhere on the page, at least before it either does the call to parse("main") or printvar("main").

DBlocks("main") = Replace(DBlocks("main"), " ", "")

This is asp, but i remember php has a similar function.

This will go through the dblocks array and replace all the nb's with nothing. It only works if you are using template code, though.

If you don't like this method, one thing you can do is go get a search and replace program and replace all the nbsp's with nothing in the template html or even in the non templated version. We use this program (actually bought it)

http://ourworld.compuserve.com/homepages/funduc/

regexp replaces, saving of s&r operations, quick and small and good shell integration. if you need help using it, i can work out the commands you will need to get it doing what you want.

   


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.