coder1957**
Community Beginner
coder1957**
Community Beginner
Activity
‎Sep 10, 2024
01:23 AM
Sorry, it's only been 6 months ... but today I followed your instructions and VOILA; it worked like a charm as expected.
... View more
‎Aug 14, 2023
12:28 PM
I am using Coldfusion Builder Version 3.1.3 I want to know how to change the background color to black and the code color to white and other colors. How do I do it?
... View more
‎Oct 18, 2020
01:41 AM
In that thread Charlie says that WKHTMLTOPDF and htmltopdf are one and the same. Nor did I see an example as to how to "use it in a sentence"
... View more
‎Oct 18, 2020
01:40 AM
Are you seriously saying, Charlie, that using WKHTMLTTOPDF and cfhtmltopdf are the same code??? You may have just saved me a lot of time trying it as an alternative. htmltopdf is broken in cf2018. So WKHTMLTTOPDF is also?
... View more
‎Oct 16, 2020
02:22 PM
Do you execute it by simply stating <cfWKHTMLTOPDF destination="c:\???\???\file.pdf" #content#> I'll give it a shot anyway.
... View more
‎Oct 16, 2020
08:06 AM
We are now on CF2018 (after being forced to abandon CF11 when Adobe crippled the CF11 developer edition's IP limit) ... and CFHTMLTOPDF is BROKEN. Give it an Hello World and it works. Give it anything bigger and it fails with a timeout. Confirmed here: https://tracker.adobe.com/#/view/CF-4208624 and there's no fix after 6 months. By a 3rd party no less. Is there an alternative to CFHTMLTOPDF from JQuery, anyone else?
... View more
‎Sep 07, 2020
02:42 AM
For YEARS have used same CF11 development server and no problems. Suddenly I am getting a License error. License Error. You tried to access the Developer Edition from IP address (xx.xx.xx.xx). Already two IP addresses are accessing ColdFusion concurrently. The Developer Edition supports access by any IP address, but only two at a time, apart from the localhost. The additional IP addresses accessing ColdFusion are: 107.178.239.218,185.220.100.249 I have tried everything to reset CF. Restarted the service. Rebooted server. Cold booted. I have also added these to IP addresses to IIS forbidden IP's. I have not changed the server at all. No upgrades. My single scheduled task on same server has stopped working.
... View more
‎May 25, 2020
07:43 AM
DOH!!! I knew that. 🙂 Ever wish you could relive the last 30 minutes? Movie: About Time Thanks for your contribution to my BRAIN cell.
... View more
‎May 25, 2020
06:07 AM
For security reasons, I am uploading photos to OUTSIDE the /inetpub/wwwroot/ area on my server. To c:\isolate\ Then emailing the admin a copy of the photo for admin to approve photo. How do I get the photo display??? Under normal circumstances, I simply do a: <img src="http://www.domain.com/images/photo_name.jpg"> But what when it's outside the web root? I have tried what I thought was the obvious <img src="c:\isolate\photo.jpg"> I do not get an "error" (a "symbol" top left of the image) but I get a blank. What am I missing? Not really a CF issue, more an HTML one?
... View more
‎Apr 26, 2020
09:16 AM
Already done. Not tested it yet to see if it fails on CF16 or 18.
... View more
‎Apr 26, 2020
07:08 AM
We've all seen the screen on Googlemaps. And the likes of VR/BO and Air/bnb where they: Place a list on the left, a map on the right and as you scroll down the list the pin on the map changes. So I used CFMAP and CFMAPITEM and all went well. Searched it and Adobe confirmed that there is no way using mouseover, Javascript and then change the pin color. So my question is, has anyone done it using CF (a workaround) or done it withOUT CF - using Google Maps API directly, and provide a simple instructions to this JS challenged human? Thanks!
... View more
‎Apr 26, 2020
07:01 AM
A word to the wise. There is a bug in CF11 ... handler for <cffile ACTION="UPLOADALL" DESTINATION="c:\inetpub\wwwroot\snip\images\xxxxxxx\" NAMECONFLICT="MAKEUNIQUE" FILEFIELD="file_upload" result="fileuploaded" accept="image/*, image/jpg, image/jpeg,image/png" > If xxxxx does not exist, it does NOT throw an error. Instead CF corrupts the result. And provides the fileuploaded.serverfile with the folder name you supplied and adds one or more integers. Definitely place a <Cfdirectory tag before it and wrap it in a cftry.
... View more
‎Apr 19, 2020
04:03 AM
We'll have to agree to disagree. I have been using var e= new (images); for years and it works fine. There may be TWO ways to skin this cat but there's nothing wrong with the above. I just tested "your" way using var e= new images() and it works too but nothing wrong that I can see with the first.
... View more
‎Apr 14, 2020
01:27 PM
I am using HTML tags that reference the innerHTML. Use this method all the time. I am posting here because I am using ColdFusion.navigate('/manage.cfm?loc_id='+propID,'adminConsole');rePositionWindow('adminConsole');ColdFusion.Window.show('adminConsole') so it could well be specific to CF. Dare I ask why you're being pedantic about the Correct answer thing? I asked you to send me a string copy and paste to I know which post you meant. But seriously?
... View more
‎Apr 14, 2020
10:43 AM
Ok, ran into a small snag ... in the iframe. The iframe adds the uploaded image to the database, but once that is done, I want to redraw the photo "carousel" into the web site admin panel. Normally I do this by calling an AJAX function then taking that result and innerHTML it into a <div id="result"> BUT within the iframe the <div> in the modular popup is not visible within the DOM. Not sure I've ever tired this ... so what syntax does one use to address the DIV outside the iframe? I tried several including adminConsole.innerHTML=carousel; document.adminConsole.innerHTML=carousel; all I get is the error ReferenceError: adminConsole is not defined
... View more
‎Apr 11, 2020
12:03 PM
It would help out if I could figure out which post you meant. This WEAK software doesn't include a post #. Not even an accurate time stamp. Sorry to bug you but if you can give me a "string" to look for that is unique to that post I'd happy to. Or am I being really DUMB as usual. No need to answer that!
... View more
‎Apr 11, 2020
08:03 AM
That did it. You get another star! Now ... where was I? 🙂
... View more
‎Apr 11, 2020
07:15 AM
Nope. Changed array to index ... and yes CF11. Same error. Thanks for trying.
... View more
‎Apr 11, 2020
06:00 AM
Say what?? Look at mine again ... <cffile ACTION="UPLOADALL" DESTINATION="c:\inetpub\wwwroot\snip\images\xxxxxxx\" NAMECONFLICT="MAKEUNIQUE" FILEFIELD="file_upload" result="fileuploaded" accept="image/*, image/jpg, image/jpeg,image/png" > Or ... maybe for Easter I need new prescription glasses? 🙂 I should have chosen a different career path all those decades ago ... JK. Loved almost EVERY day of it. As have you, no doubt.
... View more
‎Apr 11, 2020
05:32 AM
No, I didn't use that but I am now. And it fails if used per the docs. I tried: <cffile ACTION="UPLOADALL" DESTINATION="c:\inetpub\wwwroot\snip\images\xxxxxxx\" NAMECONFLICT="MAKEUNIQUE" FILEFIELD="file_upload" result="fileuploaded" accept="image/*, image/jpg, image/jpeg,image/png" > <cfloop array="#fileuploaded#" item="item"> <cflog text="uploaded [#item.serverfile#] "> </cfloop> and I get the error: Attribute validation error for tag CFLOOP. It has an invalid attribute combination: array,item Yet the docs at https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-tags/tags-f/cffile-action-uploadall.html say that exactly <cfloop array="#fileUploaded#" item="item"> FRUSTRATING! 🙂
... View more
‎Apr 11, 2020
03:21 AM
Decided to use Charlie's idea ... using iframe. Got it working fine using a single file upload. Not like I hadn't done a thousand of them over the years. Problem I have is with multiple uploads. The field says 2 files selected. But when it goes to upload them ... I ASSUMED this code would work? <cfloop list="#form.file_upload#" index="this_file"> <cffile ACTION="UPLOAD" DESTINATION="c:\snip\\#listgetat(application.resources_folders, url.rid)#\" NAMECONFLICT="MAKEUNIQUE" FILEFIELD="#this_file#" accept="image/*, image/jpg, image/jpeg,image/png" > </cfloop> Thought wrong. I get the error: The form field C:/ColdFusion11/cfusion/runtime/work/Catalina/localhost/tmp/neotmp2207139492128668403.tmp did not contain a file. If I revert to JUST using filefield="file_upload", I only get one succesfully processed.
... View more
‎Apr 07, 2020
03:28 PM
I'm running CF11 on localhost. And no errors in the browser console. I'm abandoning trying to get this to work and will have a developer fix the blueimp version or, use another solution. Thanks for your input.
... View more
‎Apr 07, 2020
01:33 PM
No, you misunderstand my comment. Based on the docs, the tag ITSELF is supposed to show a button and presumably a field into which the file name would go? And it's not even doing that.
... View more
‎Apr 07, 2020
01:06 PM
That's exactly where I am using it. The page I am using it does nothing else. 😞
... View more
‎Apr 07, 2020
12:30 PM
You are correct, Charlie. Using cfajaxproxy tag. I tried to put the cffileupload into the form page and after getting rid of bugs, the field or button is not visibie. I tried: <cffileupload addbuttonlabel= "label" align = "center" bgcolor = "blue" clearbuttonlabel = "label" deletebuttonlabel = "label" extensionfilter = "none|jpg,jpeg,png" height= "500" hideUploadButton = "false" maxfileselect = "1" maxuploadsize = "10" name = "file_upload" oncomplete = "bbb" onerror = "error" onUploadComplete = "xxx" progressbar = "true" stoponerror = "true" title = "Title panel name" uploadbuttonlabel = "label" url = "#cgi.script_name#" width = "500"> </cffileupload> and see nothing. And Charlie, yet again there's a typo in the docs where it has <cffileupload> History: a former developer of ours did add a file uploader to our code using blueimp. And it broke. Understanding blueimp is above my pay grade. It could be that it is trying to upload to a non existent folder but I'll be ****ed if I can find where in the code it does that. So I was going to write it using the above method. Til I realized it won't work.
... View more
‎Apr 07, 2020
09:25 AM
How do I upload a file using AJAX? <form name="pic" id="pic" action="" method="post" enctype="multipart/form-data"> <input class="redField" type="file" name="file_upload" value="" size="20" maxlength="50" onBlur="sendPhotoNew(this.form)"> </form> <script> function sendPhotoNew(form){ var file=form.file_upload.value; var e= new (images); e.setForm('pic'); e.setHTTPMethod("POST"); var picNLink=e.photos_upload(file); photo_new.innerHTML=picNLink[0]; $('#photo_new').show(); } </script> I know how do this using conventional forms. I am getting the error Invalid content type: application/x-www-form-urlencoded.The files upload action requires forms to use enctype=""multipart/form-data"". The specific sequence of files included or processed is: C:\inetpub\wwwroot\snip\images.cfc Which I would expect if I didn't use the correct form header. } <cffunction name="photos_upload" access="remote" returnType="array"> <cfargument name="file" type="string" required="true" > <cffile ACTION="UPLOAD" DESTINATION="c:\inetpub\wwwroot\blahblah\coldfusion\images\images_folder\" NAMECONFLICT="MAKEUNIQUE" FILEFIELD="#arguments.file#" accept="image/*, image/jpg, image/jpeg,image/png" > </cffunction>
... View more
‎Apr 01, 2020
03:44 AM
Charlie ... are you OK? 🙂
... View more
‎Mar 30, 2020
06:03 AM
Ok, building a web site that, once loaded, does not select objects based on URL, instead we have one huge <div id=""></div> When button is clicked, javascript function loads an AJAX function and sends it an "object ID". <cfsavecontent>constructs all the data. Returns it to the Javascript and we then object_detail.innerHTML=xxx and put it to the screen. Then perform a JQuery slideDown ... ALL WORKS WELL. Until we want to Google Maps. Or a new widget we want(ed) to add; a weather widget to provide us with the weather in that object. I also created on a simple .cfm splash page and put the same script into that. Works perfectly. Script looks like: <a class="weatherwidget-io" href="https://forecast7.com/en/48d862d35/paris/" data-label_1="PARIS" data-label_2="WEATHER" data-theme="original" >PARIS WEATHER</a> <script> !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src='https://weatherwidget.io/js/widget.min.js';fjs.parentNode.insertBefore(js,fjs);}}(document,'script','weatherwidget-io-js'); </script> On the real screen all I get is the LINK PARIS WEATHER. Weatherwidget then told me their product would not support over 30 "locations". So I went to darksky.net at their suggestion ... same problem. Is there a work around for either Googlemaps or these widgets when using AJAX to render screens in the background? I was told Javascript needs to be present ... but it is cause we're using it all the time. For now it's a theory based question ... if code is needed, happy to upload stuff to really make it look like a hornets nest.
... View more
‎Mar 27, 2020
08:43 AM
https://tracker.adobe.com/ is a waste of time .. too much time just to figure out HOW to add a bug. Too many required choices.
... View more