Does anyone know how to create a java object in a cfscript block that will write a cookie?
I ask this because in my application I want to read or set, read to verify that I wrote one and increment a unique visitor counter.
The problem is the cookie scope - even if the visiting browser has...
This is probably bit more than you want - but it converts whatever they entered into html and vice versa if need be:
http://www.depressedpress.com/Content/Development/ColdFusion/Extensions/DP_ParseBBML/Index.cfm
My website, or a bad habit?
BarSmart
You need to server the page with blue dragon - there is a free version on their webpage:
http://www.newatlanta.com/c/products/bluedragon/download/showLicenseAgreement?sku=BD-15-062-d
My website, or a bad habit?
BarSmart
Something like this may work for you, this is how I handle edits and such for my admin tools using an onclick handler.
<cfparam name="yourmode" default="list">
<html>
<head>
<script language="javascript">
function handle_delete()
{
if ( confirm( "Are you sure?" ) )
{...
OK here's the answer to the question:
Use cfhtmlhead
What you need to do is remove the title from your header template, and on all of your display templates do this:
<cfhtmlhead text="<title>mysite.com - whatever custom title you want with generated dynamic content in it</title>">
and it...
ok cfsavecontent will work, but many hoops need to be jumped thru to return a title variable back to the calling template, deciding on if it's worth it to hack the code this way or to just start redesigning templates.
If anyone knows of a way to append to an html title server side, please let...
Well I can't really cleanly include it first, because it has display data in it, and all of those templates before it are headers and other display stuffs, so they have to be before it.
I suppose I can include it first and save the generated content to a variable THEN place that variable where...
I think I need to redesign my entire site, but before I do that I'm asking here.
Every page on my site has a header/footer template which are called like this:
<!--- events.cfm --->
<cfinclude template="top.cfm">
<!---some layout stuff here--->
<cfinclude template="a_events.cfm">...
Think of cfhttp as a web browser with javascript disabled on a
computer without a monitor. Any limitation a browser like that would have, would apply to cfhttp.
So if this site requires javascript then this may not work.
Try disabling javascript on your computer, login and see if you can use...
I use this function...
http://www.cflib.org/udf.cfm?ID=989
and compare it the users stored offset time in their session structure, but this requires the user being logged in.
I'm doing it this way...
(I know this probably shouldn't go here but in the future if anyone follows this thread it will help)
<script language="JavaScript">
function testInput(){
fullpath = document.forms['upload_form'].UploadFile.value;
filename =...
The system is naming the file as specified in my post above -- I can see it when I ftp to the site as well.
The problem is that I can not delete it even from ftp.
I think I am going to do an 'on click' on the upload button that checks the length of the input text; to nip this in the bud...
Well the issue is with the file name being too long, when outputting my cfcatch errors I see:
The destination
"E:\SiteData\webppliance\conf\domains\websitepart\InetPub\wwwroot\
tmp\uploads\11111111111111111111111111111111111111111111111111...
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.