Re: Maybe OT: Content Disappears when .cfm call, shows when .html
I've had that same experience attempting xmlParse -- the trim was absolutely necessary. This was just a plain 'ol XHMTL document. Not strict XML. I believe according to the standard, XML isn't allowed to have any white space before the doctype. This is the first I'd heard of a browser refusing to render it though. Actually IIRC, the XML standard does not care about white space, nothing else is allowed before the doctype, but whitespace is ok. I.E. on the other hand has a different opinion. Well that's what I'd remembered reading... and at the time I was trying to figure out why a particular XmlParse(variable) wasn't working... turned out XmlParse(trim(variable)) was the fix, because the parser was choking on white space before the document root element (there wasn't a doc type in that particular packet). And since then I've always been sure to trim() before using XmlParse because of that. This is the first time I can recal anyone disagreeing about the white space, although I would personally have loved for the standard to insist that the parser be able to handle white space there. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311975 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Maybe OT: Content Disappears when .cfm call, shows when .html
We've got a site in development, that is giving us fits. A specific page, when viewed in Safari (mac and win), will not show div contents of a specific class when surfed to as a .cfm file. If you view source the content is there. Save source as an .html file and surf to that, the content shows fine. Have you flushed your browser cache? Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311928 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Maybe OT: Content Disappears when .cfm call, shows when .html
Put a cfcontent reset=true right before the doctype on the same line and see what happens. Adrian -Original Message- From: Kris Jones [mailto:[EMAIL PROTECTED] Sent: 02 September 2008 19:42 To: CF-Talk Subject: Maybe OT: Content Disappears when .cfm call, shows when .html This doesn't make any sense to me at all, so toss it out to the list. We've got a site in development, that is giving us fits. A specific page, when viewed in Safari (mac and win), will not show div contents of a specific class when surfed to as a .cfm file. If you view source the content is there. Save source as an .html file and surf to that, the content shows fine. The page behaves perfectly in FF2 (mac, win), IE7, IE6, Opera 9.27 (win). The html/css validates fine, and the page renders in standards compliant mode. Of note: tons of whitespace prior to the doctype declaration (we're all used to seeing this in CF-generated content, I imagine). Thoughts? Suggestions? Cheers, Kris ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311929 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Maybe OT: Content Disappears when .cfm call, shows when .html
Yup. Happening for more than one developer too. We've got a site in development, that is giving us fits. A specific page, when viewed in Safari (mac and win), will not show div contents of a specific class when surfed to as a .cfm file. If you view source the content is there. Save source as an .html file and surf to that, the content shows fine. Have you flushed your browser cache? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311930 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Maybe OT: Content Disappears when .cfm call, shows when .html
OMG. This fixes it. What's that all about anyway? Put a cfcontent reset=true right before the doctype on the same line and see what happens. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311932 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Maybe OT: Content Disappears when .cfm call, shows when .html
OMG. This fixes it. What's that all about anyway? Put a cfcontent reset=true right before the doctype on the same line and see what happens. I believe according to the standard, XML isn't allowed to have any white space before the doctype. This is the first I'd heard of a browser refusing to render it though. -- s. isaac dealey ^ new epoch isn't it time for a change? ph: 781.769.0723 http://onTap.riaforge.org/blog ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311943 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Maybe OT: Content Disappears when .cfm call, shows when .html
s. isaac dealey wrote: I believe according to the standard, XML isn't allowed to have any white space before the doctype. This is the first I'd heard of a browser refusing to render it though. Actually IIRC, the XML standard does not care about white space, nothing else is allowed before the doctype, but whitespace is ok. I.E. on the other hand has a different opinion. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311946 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Maybe OT: Content Disappears when .cfm call, shows when .html
Funny, in this instance, IE played nice. Just Safari gave us a problem. I've seen other cases where Safari is a bit more sensitive to character-encoding type of things, but don't know that this was the issue this time. I'm guessing that there was something other than true white-space in that thar white-space, but at this point, it's fixed. Thanks everyone for the help Cheers, Kris Actually IIRC, the XML standard does not care about white space, nothing else is allowed before the doctype, but whitespace is ok. I.E. on the other hand has a different opinion. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311949 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Maybe OT: Content Disappears when .cfm call, shows when .html
s. isaac dealey wrote: I believe according to the standard, XML isn't allowed to have any white space before the doctype. This is the first I'd heard of a browser refusing to render it though. Actually IIRC, the XML standard does not care about white space, nothing else is allowed before the doctype, but whitespace is ok. I.E. on the other hand has a different opinion. Well that's what I'd remembered reading... and at the time I was trying to figure out why a particular XmlParse(variable) wasn't working... turned out XmlParse(trim(variable)) was the fix, because the parser was choking on white space before the document root element (there wasn't a doc type in that particular packet). And since then I've always been sure to trim() before using XmlParse because of that. This is the first time I can recal anyone disagreeing about the white space, although I would personally have loved for the standard to insist that the parser be able to handle white space there. -- s. isaac dealey ^ new epoch isn't it time for a change? ph: 781.769.0723 http://onTap.riaforge.org/blog ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311950 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4