On May 9, 4:45 am, Martin Trautmann <t-...@[EMAIL PROTECTED]
> wrote:
> On Fri, 9 May 2008 11:48:26 +0200, Ursus wrote:
> > Martin, SVG is not directly sup****ted within filemaker. The newer
versions
> > sup****t a WebObject, where you are able to show webpages on a layout.
Since
> > svg is a htm sup****ted format I don't see any reason why that
wouldn't work.
>
> Could FMP serve the html code directly or would I have to ex****t from
> FMP to an external, static page in order to see this self-generated page
> within the Web Viewer again?
> Or is there any option in order to build a web page not from the layout
> data, but from a single text field which will be used as souce code
> (such as html, css, php, svg)?
For small 'do***ents' you can url encode the entire page in the URI
which accomplishes exactly what you describe. For more information,
see the 'data:' uri scheme. (You know how http:// loads
from web
server... ftp:// loads from a ftp server... well data: loads data
inline from the URI.)
Safari sup****ts the data: uri scheme. Internet Explorer 6/7 do not.
(IE8 apparently does). However, on Windows Filemaker handles the data:
uri for you, by behind the scenes creating a tem****ary file, and then
loading that via a file: uri.
For example you could set a field to be:
data:text/html,<h1>Hello World!</h1>
And set the web viewer to load that URI.
For larger do***ents, yes, you will need to ex****t to a file and then
load it. Filemaker 9 provides the function 'Get(TempoaryPath)' that
will return a convenient and appropriate place to save these ex****ts.
So building the do***ent in a text field is easy. Ex****ting a single
text field is easy. (simply ex****t the current record
as ...tempoarypath/somefilename.html in csv format -- because its one
field of one record, there won't be any commas etc) and then set the
webviewer object to load file://tem****arypath/somefilename.html
Voila.
PS regarding the maximum size a data: uri before you have to switch
to an ex****t. I do know that its based on the browsers limit. So for
Mac it will be Safari's limit. For windows, because Filemaker creates
a tem****ary file behind the scenes anyway, you aren't really limited.
Internet Explorer 5/6/7 is 2kb. IE8 will be at least 32kb (but, per
above, it isn't relevant in FM)
Safari is known to sup****t at least 80kb
So you can create definitely create some pretty sophisticated
do***ents before you're out of bounds with the data: uri.
-regards,
Dave


|