Blog
- August 30, 2010
- Using ColdFusion Code Within .htm/.html file
Hello friends,
if you want to use .htm and .html files in coldfusion.you should follow below step.
you will need to edit the web.xml file located generally at C:\ColdFusion8\wwwroot\WEB-INF Modify and insert at the end of the other mappings ...- Read More
- Comments(0)
- August 27, 2010
- Place Scripts at the Bottom of Your Page
Placing JavaScripts at the bottom of the page is a good way to makeother things of the page download faster. Keep in mind — the most important goal is to make the page load as speedily as achievable for the user. As soon as load script statement is encountered the browser tries to download and becomes unresponsive until the whole file has been loaded. Therefore, the user will have to wait longer before noticing some development or rendering in the page. If you have JavaScript ...
- Read More
- Comments(0)
- August 27, 2010
- List out all coldfusion datasources along with username and password.
Hello Friends,
Using ColdFusion service Factory we can take all details of data sources, database, username, class, map details (database role), driver.The following code can be used to list out data sources along with username and decrypted passwords. I hope it may be useful to you ...- Read More
- By Bharat Patel
- Comments(0)
- August 23, 2010
- Use CSS2 Property like: after, :before, :first-letter, and :first-line
The :before pseudo-element is used to insert content immediately before an element. This is done via the content property. The content assigned by the content property can be characters, a string, text, or an image. Further, you can apply style to the content, such as setting font and color. This is a convenient way to prefix the same text to large number of related text elements which have the same class value. The similar :after pseudo-element is used to insert content immediately after ...
- Read More
- Comments(0)
- August 23, 2010
- A little about coldfusion sessions and general logout code
Hello friends, I just started working on ColdFusion, and I have some interesting stuffs, that I'd like to share with you. For any web application, we normally use session for maintaining client's login/logout activity. Sessions are created on server side, and each session will have some unique id (in ColdFusion, we have 'sessionid'). It will alive for some time duration, so if successfully logged-in user requests another page during that time, then server will skip checking of authentication. ...
- Read More
- By Vikas
- Comments(0)
- August 14, 2010
- anonymous procedure to measure query performance by averaging
Following code can be used to measure query elapsed time by performing multiple runs of the same query and finding the average elapsed time of the query ...
- Read More
- Comments(0)
- August 11, 2010
- how to hide output in coldfusion function without set attribute output=false.
Hello Friends, Everybody know's how to print output in function ,you just need to set attributes output=true. But here I have a function which outputs some text and I want to call it in a CFM page where I do not want to display output which is printed by the function. I was facing a similar problem in one of my tasks. I have created function in CFC and used it at more than one places. I don't want to print output and I cannot set attribute output=false because I need to print the output in some ...
- Read More
- By Bharat Patel
- Comments(0)