Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 23rd, 2006, 09:13 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default using &#40 instead of (

Code:
pstCostTxt = "#40;#43;£" & formatNumber(iCalcDiff) &"#41;"
I have this code in my Classic ASP page, it will display
Code:
(+£40.00)
Is there any benefit in coding the HTML codes instead on
Code:
pstCostTxt = (+£" & formatNumber(iCalcDiff) &")"
What is generally thought of as the correct way to do this.

Thanks.

Picco


www.crmpicco.co.uk
__________________
_______________________
Ayrshire Minis - a Mini E-Community
http://www.ayrshireminis.com
http://www.crmpicco.co.uk
 
Old March 23rd, 2006, 09:45 AM
Authorized User
 
Join Date: Mar 2006
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I don't know ASP so perhaps I'm not following but the only thing that matters, as far as HTML is concerned, is the output HTML. How you code it in ASP doesn't matter to the browser.

As far as to whether to use the entity references, they are very much preferred in XML and XHTML and are particularly important with unicode and international things.

 
Old March 23rd, 2006, 11:01 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

i was just thinking of when the page is read?

www.crmpicco.co.uk
 
Old March 26th, 2006, 05:56 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

By whom or what?

--
http://yupapa.com
 
Old March 28th, 2006, 12:08 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

It makes no difference to the page output one way or another.

"The one language all programmers understand is profanity."
 
Old April 10th, 2006, 09:06 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

thanks dparsons, I think for readability '(' would be best........

www.crmpicco.co.uk
www.ie7.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Error 40. Do anyone known it? Please help! avgCS Classic ASP Basics 0 July 27th, 2007 06:53 AM
Error 40 prasanta2expert SQL Server 2000 1 December 7th, 2006 01:31 AM
Error 40 prasanta2expert ASP.NET 1.x and 2.0 Application Design 1 December 6th, 2006 06:04 AM
Error 40 prasanta2expert ASP.NET 1.0 and 1.1 Basics 0 December 6th, 2006 02:58 AM
Linux & KDE & C++ & QT & MYSQL & Kdevelop Munnnki Linux 0 January 2nd, 2005 05:41 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.