Viral
05/09/2022, 3:08 PMgsr
05/09/2022, 8:34 PMmauzer
05/10/2022, 8:54 AMdeactivateduser
05/10/2022, 4:49 PMdanmurphy
05/10/2022, 4:57 PMJason Ryan
05/10/2022, 8:25 PMqueryExecute
functions? We have some stored procedure that I'd like to maintain some version control on, and it's much cleaner to do so in a separate SQL file but I'm not really sure if it's a good idea. I'm guessing the FileRead
would be a good candidate for pulling the file. Does this make sense to do?seancorfield
seancorfield
Dirk
05/11/2022, 12:33 PMseancorfield
Scott Steinbeck
05/11/2022, 5:59 PMarray_key_exists
?Scott Steinbeck
05/11/2022, 6:26 PMJodi
05/12/2022, 4:17 AMJodi
05/12/2022, 4:45 AMsthornton1978
05/12/2022, 8:17 AMHas anyone used google.visualization.LineChart recently?
I am looking to have a query result returned by a CFC, and I can't quite grasp how to pass the result ( as JSON? ) to the google API.
I was hoping not to re-invent the wheel.
What is causing me concern the most, is setting the data types of the columns. An example that better explains it then me ( although php) . The ajax call would call a method of a CFC.
<https://developers.google.com/chart/interactive/docs/php_example>
Iyob Zenebe
05/12/2022, 11:12 PMzackster
05/13/2022, 11:01 AMGVJustDOIT
05/13/2022, 11:31 AMAdam Cameron
<cfhttp method="get" url="<https://example.com>" result="httpResponse">
<cfdump var="#httpResponse#">
Lucee 5 gives:
Unknown host: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Jim Partin
05/16/2022, 5:24 PMDustin Lennon
05/16/2022, 5:53 PM/siteRepository
, if it does, update that to now point to an AWS S3 location where the image will be located at. as of right now, I know how to get the image tags, and I'm able to get the file name from the src because I'll need that. I just don't know how to go about handling the updating of all matches that get returned and then have the post updated with these changes. As of right now, this is all I've been able to come up with.
regexp = "<img\s[^>]*?src\s*=\s*['\""](\/siteRepository\/[^'\""]*?)['\""][^>]*?>";
fileRegexp = "\/userfiles\/(.+)";
contentPagePosts.each(
function(struct row, numeric rowNumber, query query) {
<!--- Take the body of the post and replace the img src to point to S3 bucket location --->
currentPostBody = row.body;
currentSchoolId = row.schoolid;
<!--- Find all image references in the post body --->
<!--- images is an array that has length (len), match, and position (pos) --->
images = reFindNoCase(regexp, currentPostBody, 1, true, "all");
<!--- Loop through images arrays --->
images.each(function(element, index) {
if (element.match[1] NEQ "") {
fileName = "";
<!--- Retrieve the file name --->
element.match[2].each(function(e, i) {
findFileName = reFindNoCase(fileRegexp, e, 1, true, "all");
fileName = findFileName[1].match[2];
writeDump(e);
writeDump(fileName);
});
writeDump(element);
}
});
<!--- Update the body value with the updated data --->
//writeDump(images);
//newPostBody = reReplaceNoCase(currentPostBody, regexp, "#s3LinkBase##currentSchoolId#/userfiles/", "ALL");
},
false,
500
);
An example post would be something like
<p style="text-align: center;"><img alt="" src="/siteRepository/203/userfiles/Hoodie.jpg" style="width: 100px; height: 133px;" /></p>
<p style="text-align: center;">Woodgrove Hoodie (Blue)<br />
$40<br />
S, M, XL</p>
<hr />
<p style="text-align: center;"><img alt="" src="/siteRepository/203/userfiles/hat.jpg" style="width: 100px; height: 133px;" /></p>
<p style="text-align: center;">Woodgrove Hats<br />
Adjustable (Blue)<br />
$20<br />
MD, XL</p>
<hr />
<p style="text-align: center;"><img alt="" src="/siteRepository/203/userfiles/greenhat.jpg" style="width: 100px; height: 133px;" /></p>
<p style="text-align: center;">Woodgrove Hats (Green)<br />
$20<br />
LG, XL</p>
<p> </p>
dbinott
05/16/2022, 5:55 PMAdam Cameron
seancorfield
Sebastiaan Naafs - van Dijk
05/18/2022, 7:42 AMDaniel Mejia
05/18/2022, 9:00 PMEvil Ware
05/19/2022, 2:49 PMbdw429s
05/19/2022, 2:52 PMwebsolete
05/19/2022, 2:53 PMwebsolete
05/19/2022, 2:53 PM