Pages

Wednesday, September 25, 2013

red text in viewsource in firefox / why code is in red in firefox view source

 
 
 
if you wonder why you see red text in view source in firefox.   
 
 
<b><u><font size="2">EN </u></b></font> 
 
refer above example. 
 

here is the reason. 
there must be wrong with its start/end tag, missing double quote, missing single quote
or wrong  opening or closing of tag. 
 
in above example you can see i m closing font at last but i 
should close  it immediately after  text "EN".

Saturday, September 21, 2013

adding a blank value in a list

some times we need to add a blank value in a list. 


just as a note blank value will not be added if you are not adding a space in it



code 1 :     <cfset lstBOtitle = listappend(lstBOtitle,"",",")/>   -- will not work

code 2:     <cfset lstBOtitle = listappend(lstBOtitle," ",",")/>   -- will work
(above code has a space in it )