Hi Beverly, No I didn't ignore your advice.
Your very cool post dropped in while I was composing the first response to Miki. I meant to specifically thank you in my second response, but I forgot, sorry. :-) Let me do it now, "Thanks for the cool post about GetAsCSS()!" I tried your code and it is really nice and it works. But still, I consider HTML more about the "presentation" and I will be expecting to use *tons* of CSS, just not that supplied by FileMaker. Indeed, I am not a fan of formatting text *within* the data content of the field. When I tried your code it generated the "vanilla" content of the field, and then when I made a portion bold or a different size it was reflected in the Web Viewer accordingly, but again, I like the Text data to be unformatted (other than obvious uses like mail-merge and so on). If I want to format the text, I am happy to do so with HTML/CSS and other web technologies within the Web Viewer content -- again, this is purely "presentation" and FileMaker (other than layouts -- and how fields are formatted on a layout and conditional formatting) is "data" as I like to use it. Thanks for the links you cite. However, on the Help page that Lee cited it instructs one to search on "data URL scheme" which googles pretty directly to the Wikipedia entry you cite. And that almost immediately references the RFC you cite. So I had already added those to my delicious account. But thanks anyway -- and I am sure others will benefit by the specific links. I look forward to taking the time to pour over those two links and FileMaker Help for GetAsCSS() and so on to really discover all the possibilities of the the "data URL scheme" that Web Viewer supports (including time/effort saving shortcuts not directly using HTML). In the meantime, I can write "Hello World!" and many, many, many dynamically generated Web Viewer content pages merely with the "data:text/html," prefix and good old-fashioned HTML/CSS. Eventually I will try to learn *everything* there is to know (alas, I think I will die first, but I will try), however, I don't want to make the perfect the enemy of the good... Hello World! is always my first step, and until yesterday I couldn't even get that far. BTW, I would recommend that someone with your expertise augment the Wikipedia page to include the FileMaker Web Viewer under "Web browser support" -- either directly or indirectly (not sure if one would call FileMaker's Web Viewer a "browser" per se, or whether it is a feature that relies on one of the others, but as I say, someone with your expertise would know how best to write it) -- regardless a citiation of the support of that standard by FileMaker and a link to FileMaker would benefit Wikipedia users and our community. Again, apologies for not specifically thanking you previously. Thanks again, Brad On Sat, Aug 1, 2009 at 12:54 PM, Beverly Voth <[email protected]> wrote: > On 8/1/09 11:58 AM, "Brad Lowry" <[email protected]> wrote in whole or > in > part: > > > Or better yet: > > "data:text/html,<html> > > <head> > > </head> > > <body> > > <h1>Hello " & Case(IsEmpty(NameFirst) = false; NameFirst; "World") & > "!</h1> > > </body> > > </html>" > > Brad, you *totally* ignored my advice: > > "data:text/html,<h1>Hello " & Case(IsEmpty(NameFirst) = false; NameFirst; > "World") & "!</h1>" > > You do NOT need the full HTML "page" to make the data url render. If you > really want to know what it's about. Read these: > > <http://www.ietf.org/rfc/rfc2397.txt> (the original "specs") > <http://en.wikipedia.org/wiki/Data_URI_scheme> > > Beverly > > > -- Sincerely, Brad
