Re: Issue with Changes (?) to CFDocument and a background image.

2015-02-20 Thread lesm...@bellsouth.net lesm...@bellsouth.net

I've created two test documents that can be viewed publicly so everybody can 
see what I'm talking about.

1st, a Coldfusion only version of the file:
http://www.internationalhelpers.co.gg/test/coldfusion.cfm
The styling will be just a little off, because the CSS is specific for the PDF 
doc. The card background image is showing as it should be here.

2nd, here's the cfdocument version. It's the exact same file as Coldfusion, 
just with the cfdocument tag added back in to give me a PDF:
http://www.internationalhelpers.co.gg/test/pdf.cfm

NOTHING I've tried - setting transparency on everything, screwing with z-index 
... This is the exact code that was working great prior to the upgrade to CF10. 
I'm at a loss as to how to get it to show the darned background images again. 

Help!?!?!



Since the upgrade, the image is still being called, but you only see 
JUST a few pixels of it to the right and bottom of the cards.
It's like everything layered on top of the backgroup is opaque. 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:360139
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Checking if a file exist - then choice to overwrite or not ...

2013-05-10 Thread lesm...@bellsouth.net lesm...@bellsouth.net

I'm working on building a document. Got almost everything working perfect, 
except ...

When a user tries to upload a file into the depo, I'm checking to see if 
there's already a file with that name. If there IS, the offer them a choice to 
cancel, or overwrite.

So, something like

cffile action=UPLOAD filefield=doc destination=C:\MyPart\temp\ ... blah 
/   

cfif FileExists(C:\MyPart\#filetoupload#)  !--- this works - no problem 
---

!--- here's where I get into trouble I need to do the pseudo code below ---

!--- SHOW AN ALERT HERE: ---
THERE'S ALREADY A FILE WITH THIS NAME. DO YOU WANT TO OVERWRITE?
  Choice NO {
  !--- STOP PROCESSING AND RETURN TO THE ORIGINAL FORM --- }
  Choice YES {
  !--- UPLOAD/MOVE the file where it needs to go and overwrite the 
original --- }

cfelse !--- there's not a duplicate, so do your file stuff ---

   cffile action=upload ... blah  /

/cfif

I've tried various javascript alerts ... but CF either keeps processing past 
the alert, or just does nothing with it... like:

 script type=text/javascript
   ! function makesure() { 
if (confirm('Overwrite?')) {
   return true;
 } else { 
 alert('Deletion of this item cancelled.');
 window.location = 'test_files.cfm';
return false;
}
   }();   
 /script

There's GOT TO BE A BETTER WAY!! Anybody got a link to a good tutorial or 
anything for this? So far, I've not turned up anything on Google that works... 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:355716
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: rss.cfc problem in IE9

2012-08-17 Thread lesm...@bellsouth.net lesm...@bellsouth.net

 I don't think that's a bug. Any XML metacharacters in an XML element
 or attribute must be escaped. The escape sequence for the single 
 quote XML metacharacter is apos;. 

The only thing I've been able to get work in the title is to just strip them 
out COMPLETELY. Anything else gets me apos back in all the titles...

cfset request.titlemsclean = #replace(request.titlemsclean, ', , ALL)#

What I REALLY don't understand is - why do they appear correctly in the 
description? 


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:352187
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: rss.cfc problem in IE9

2012-08-17 Thread lesm...@bellsouth.net lesm...@bellsouth.net

I think I've found the problem. 

I've got a stupid number of cleaning routines that everything goes through 
before it gets to the cffeed tag - mainly because the client does EVERYTHING in 
MS Word, then paste.

At the end of the clean chain, before cffeed I do this:

cfset myStruct.item[currentRow].title = #xmlformat(request.titlemsclean)# /

If I REMOVE the xmlformat and just do this:

cfset myStruct.item[currentRow].title = #request.titlemsclean# /

All my problems seem to go away.

OK, somebody tell me WHY? I though xmlformat was supposed to escape the 
problems I was having...



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:352189
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: rss.cfc problem in IE9

2012-08-17 Thread lesm...@bellsouth.net lesm...@bellsouth.net

I think I've found the problem. 

I've got a stupid number of cleaning routines that everything goes through 
before it gets to the cffeed tag - mainly because the client does EVERYTHING in 
MS Word, then paste.

At the end of the clean chain, before cffeed I do this:

cfset myStruct.item[currentRow].title = #xmlformat(request.titlemsclean)# /

If I REMOVE the xmlformat and just do this:

cfset myStruct.item[currentRow].title = #request.titlemsclean# /

All my problems seem to go away.

OK, somebody tell me WHY? I though xmlformat was supposed to take escape the 
problems I was having...



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:352188
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: rss.cfc problem in IE9

2012-08-15 Thread lesm...@bellsouth.net lesm...@bellsouth.net

Perhaps add cfcontent before the output to set the right type for RSS?

I've been playing with this for the last few hours. Version 1, which uses 
rss.cfc does this:

cfcontent type=text/xml reset=true
cfoutput#rssxml#/cfoutput

This works fine in almost everything, except IE9 (for me).
I see a blank page, although viewing the source looks correct.
Client sees (also in IE9), run-on unformatted text. Really odd.

Looking at the source, header looks like:

?xml version=1.0 encoding=ISO-8859-1 ?
rdf:RDF 
xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns#;
xmlns:dc=http://purl.org/dc/elements/1.1/;
xmlns=http://purl.org/rss/1.0/;


I've gone ahead and written a test page using cffeed (CF8 version).
Same result - almost...
Still can't see it in IE9, works everywhere else, but another bug has cropped 
up.
In the TITLE there's a single quote/apostrophe issue - regardless of what I do, 
I end up with Tomapos;s Hardware. Nothing seems to fix that. However, in the 
description (body), it displays correctly as Tom's Harware. Go figure.

If I check the actual string before it goes into the cffeed tag, it's showing a 
single quote Tom's Hardware. Even stripping that out and replacing it with 
#39; doesn't work. Still displays as apos; in the feed title.

Code for cleaning this stuff for both description and title looks like:

  cfset request.titlenohtml = #rereplacenocase(pr.title,[^]*,,all)# 
/
  cfset request.titlemsclean=#ReplaceMicrosoftChars(request.titlenohtml)#  /
  cfset request.titlemsclean = #replace(request.titlemsclean, nbsp;,  , 
ALL)#
  cfset request.titlemsclean = #replace(request.titlemsclean, ndash;, -, 
ALL)#
  cfset request.titlemsclean = #replace(request.titlemsclean, amp;, , 
ALL)#
  cfset myStruct.item[currentRow].title = #xmlFormat(request.titlemsclean)# 
/ 

Header for the feed, now using RSS 2.0 instead of 1.0, looks like:

?xml version=1.0 encoding=UTF-8?
rss xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns#; 
xmlns:itunes=http://www.itunes.com/dtds/podcast-1.0.dtd; 
xmlns:dc=http://purl.org/dc/elements/1.1/; 
xmlns:taxo=http://purl.org/rss/1.0/modules/taxonomy/; version=2.0 


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:352168
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: rss.cfc problem in IE9

2012-08-15 Thread lesm...@bellsouth.net lesm...@bellsouth.net

Perhaps add cfcontent before the output to set the right type for RSS?

I've been playing with this for the last few hours. Version 1, which uses 
rss.cfc does this:

cfcontent type=text/xml reset=true
cfoutput#rssxml#/cfoutput

This works fine in almost everything, except IE9 (for me).
I see a blank page, although viewing the source looks correct.
Client sees (also in IE9), run-on unformatted text. Really odd.

Looking at the source, header looks like:

?xml version=1.0 encoding=ISO-8859-1 ?
rdf:RDF 
xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns#;
xmlns:dc=http://purl.org/dc/elements/1.1/;
xmlns=http://purl.org/rss/1.0/;


I've gone ahead and written a test page using cffeed (CF8 version).
Same result - almost...
Still can't see it in IE9, works everywhere else, but another bug has cropped 
up.
In the TITLE there's a single quote/apostrophe issue - regardless of what I do, 
I end up with Tomapos;s Hardware. Nothing seems to fix that. However, in the 
description (body), it displays correctly as Tom's Harware. Go figure.

If I check the actual string before it goes into the cffeed tag, it's showing a 
single quote Tom's Hardware. Even stripping that out and replacing it with 
#39; doesn't work. Still displays as apos; in the feed title.

Code for cleaning this stuff for both description and title looks like:

  cfset request.titlenohtml = #rereplacenocase(pr.title,[^]*,,all)# 
/
  cfset request.titlemsclean=#ReplaceMicrosoftChars(request.titlenohtml)#  /
  cfset request.titlemsclean = #replace(request.titlemsclean, nbsp;,  , 
ALL)#
  cfset request.titlemsclean = #replace(request.titlemsclean, ndash;, -, 
ALL)#
  cfset request.titlemsclean = #replace(request.titlemsclean, amp;, , 
ALL)#
  cfset myStruct.item[currentRow].title = #xmlFormat(request.titlemsclean)# 
/ 

Header for the feed, now using RSS 2.0 instead of 1.0, looks like:

?xml version=1.0 encoding=UTF-8?
rss xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns#; 
xmlns:itunes=http://www.itunes.com/dtds/podcast-1.0.dtd; 
xmlns:dc=http://purl.org/dc/elements/1.1/; 
xmlns:taxo=http://purl.org/rss/1.0/modules/taxonomy/; version=2.0 


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:352169
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: struct/array problem with empty cells

2012-06-23 Thread lesm...@bellsouth.net lesm...@bellsouth.net

Weird - it only include the FIRST empty element

Actually, if there are duplicate values for any of the fpcomm cells, it will 
only display the FIRST one.

So, if fpcomm1 and fpcomm2 contains Bob has News, it's only going to include 
fpcomm1 in the array. 


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351661
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm