I say this because having all css in 1 place would make organization easier for my project and I would be taking advantage of file caching (I accept the first page may be a little slower to load when the initial cache takes place but hopefully not by a great deal)
Does it follow then that it is ok to put all of your css (or javascript - I assume .js works the same) into 1 page - ie it is not necesary to try to break up your css into smaller files for each page
I suppose the best way to ask this question is 'is it best practice to trim for the VARIABLES scope or are you making your code superfluous by doing this'?
The example I had in mind was as follows
[code]
<cfset myvar = "">
[.code]
Ii decided at one point that I would trim everything.
Throughout a page I then tested the length of this variable. The test used len(trim....
but it seemed so pointless to trim here that I removed all trims. Was this...
Does it make any difference if I put my css directly into my page or whether I use
<link rel="stylesheet" href="styles.css" type="text/css" />
Assuming the styles are used in this page only, which is the preferred method
I have heard that some browsers add whitespace onto strings sent in URl or Form variables and so you must use trim(..)
For example
<cfif len(trim(url.str))> ...do sthg
Is it correct to say you do not have to use trim(..) when dealing with variables in all other scopes ?
My display has suddenly got a lot darker, and the issue is not with my monitor. I have also noticed that white areas on an image have become smudged with black. This happens right from the BIOS splash image and throughout XP. I have tried reloading drivers but this has not helped. Should I...
Could the problem be that I am using ERROR_SEVERITY() when there is no actual error, I'm just using RAISERROR to switch back to my Coldfusion catch block
I am trying to detect if a user name already exists in a table in a stored procedure. If it does, I want to throw an error message back to my coldfusion page. My coldfusion page calls this stored procedure within a try catch block
However,my coldfusion catch block is receiving the following...
Are all the coldfusion functions - for example those detailed in http://livedocs.adobe.com/coldfusion/6/CFML_Reference/functions-pt0.htm
available within a cfscript block
quote::floated elements are always block level elements
I understood that floated elements were by definition elements that did not permit other elements on either side. If this is true how can it be that floated elements are block level elements
I am trying to write a series of files. I would like coldfusion to generate unique file names for me, but the code below simply overwrites
<cffile action="write" nameconflict="MakeUnique" file="#getDirectoryFromPath(getTemplatePath())#file.txt" output="the content">
Is it possible to achieve...
I have wrapped a cfform in a cfdiv in the hope of submitting a form asynchronously
My code is as follows
<cfdiv>
<div align="center">
<cfform action=“index.cfm” method="post">
<cfinput type="text" name="email" id="email" required="yes" validate="email" message="Please enter your...
I am doing an experiment. In the following table I have set the <td>s so that they do not add up to the total screen width. By adjusting the px values (sep below say 10px) the display results are sometimes unpredictable. Is there a general rule used by browsers for handling this situation...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.