Sung Ham
04/25/2024, 5:18 AMMichael Casey
04/25/2024, 7:40 AMbkbk
04/25/2024, 8:49 AMsearchimplicitscopes=FALSE
. If you fail to prefix a variable name with an appropriate scope identifier, you will get an error.Daniel Mejia
04/25/2024, 8:29 PMcomponent {
void function onCFCRequest(string cfcname,string method,struct args){
// Request
request.GetJsonRequest = new utils.Request().GetJsonRequest;
// invoke remote cfc
invoke(arguments.cfcname,arguments.method,arguments.args);
return;
}
}
Or
component {
boolean function onApplicationStart(){
application.GetJsonRequest = new utils.Request().GetJsonRequest;
}
void function onCFCRequest(string cfcname,string method,struct args){
// invoke remote cfc
invoke(arguments.cfcname,arguments.method,arguments.args);
return;
}
}
Slackbot
04/26/2024, 6:34 AMTEMann
04/26/2024, 12:31 PMgsr
04/27/2024, 3:11 PMBrian
04/29/2024, 7:42 PMSathya M
04/30/2024, 1:30 PMtable { -fs-table-paginate: paginate !important; }
but no luck.raymondcamden
05/01/2024, 2:41 PMhpeter16
05/01/2024, 4:39 PMsharondio
05/02/2024, 2:20 PMCristobal
05/02/2024, 6:46 PMmbh
05/02/2024, 11:11 PMDave Merrill
05/03/2024, 3:14 PM<cfinclude template="somePage.cfm">
This doesn't, throws a 500 error:
<cfscript>
include template="somePage.cfm";
</cfscript>
What's wrong here?gsr
05/03/2024, 7:46 PMchinh
05/03/2024, 10:26 PMGareth
05/04/2024, 8:34 AMDave Merrill
05/04/2024, 12:59 PM<cfheader name="content-disposition" value="attachment; filename="...
Default charset for cfheader is UTF-8, which I thought should be fine, apparently not.
I also tried explicitly setting it to UTF-8, and also to iso-8859-1 and windows-1252, same result.
Thoughts?satauros
05/05/2024, 12:48 PMBoris Schwarz
05/06/2024, 10:10 AMDave Merrill
05/06/2024, 4:38 PMsomeData = cfinvoke(component="dotPathToService", method="someMethod", someArg="foo");
That throws the error "Variable CFINVOKE is undefined."
CFDocs says cfinvoke has existed since cf6, it's documented by Adobe too.
I most often use createObjectI) then call the methods I want on that object, but this is a one-off call, won't need the service again, so I thought this should do it, but I guess I'm missing something dumb.
Or maybe that error is erroneous?Cristobal
05/06/2024, 4:43 PMMaria Jose Herrera
05/07/2024, 6:46 PMphillipsenn
05/08/2024, 5:14 PMfunction add1(arg) {
var result = arg
result += 1
return result
}
two = add1(1)
WriteOutput(two)
But changing it to this fixed it:
function add1(arg) {
var result=0
result = arg
result += 1
return result
}
two = add1(1)
WriteOutput(two)
phillipsenn
05/08/2024, 5:16 PMgsr
05/08/2024, 5:21 PMphillipsenn
05/08/2024, 6:25 PMwhile (NOT fileIsEOF(fileHandle)) {
Line = fileReadLine(fileHandle)
(snip)
}
Line 1 has the following 3 characters at its beginning, but not any of the other lines:
chr(239) chr(187) chr(191)
They don't show up in Notepad++ when I "Show All Characters".
Just wondering if anybody's seen something like this before.
I've already written the code to filter those 3 characters out, but just curious.gsr
05/08/2024, 10:18 PMSteve
05/09/2024, 4:53 AMvar checksum = createObject( "java", "java.util.zip.CRC32" ).init();
checksum.update( charsetDecode( input, "utf-8" ) );
var crc = javaCast("int",checksum.getValue());
crc I need inserted into a sql table:
...
crc: { value:"#crc#", cfsqltype:"integer" },
...
The problem is, checksum.getValue() returns a long int (signed) because java does not support unsigned int32. But my google expertise is failing me here and I cannot find a simple solution.