Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.databases.filemaker > #583

Re: osx vs win

From <Ursus>
Newsgroups comp.databases.filemaker
References <65556$4f204f0d$535375e6$555@cache1.tilbu1.nb.home.nl> <no.email-36CD9A.15072725012012@news.eternal-september.org>
Subject Re: osx vs win
Date 2012-01-26 19:04 +0100
Message-ID <42352$4f2195b5$535375e6$18053@cache70.multikabel.net> (permalink)
Organization Ziggo

Show all headers | View raw




Hou je goed, Erik
"David Stone"  schreef in bericht
news:no.email-36CD9A.15072725012012@news.eternal-september.org...

In article <65556$4f204f0d$535375e6$555@cache1.tilbu1.nb.home.nl>,
<Ursus> wrote:

> I have a calc that produces a link for a webviewer to display jpg's. While
> it works for Win it fails for OSX. Can anyone shed light on this?
>
> the calc is cWebview [ calc, textrestult, "data:text/html,<img  src=\"" &
> "/photo/" & file name & "\" >" ]
> which returns the following: data:text/html,<img  src="/photo/MyFile.jpg"
>  >
> The calc is put in the Web Address field of the WebObject which shows the
> file for Win but nothing for mac.
> the photo folder is always in the same directory as the filemaker file.

Is it a question of case-sensitivity for the folder and file names, by
any chance?

--------------

No it wasn't. Osx requires a quite different format.

the folder with the files is actually inside the same folder as the
fmp-file.
So the folder contains:
/photo
MyFile.fp7

After several test I have now found the solution.
With the myfilename known (or calculated elsewhere) the calc becomes:

"data:text/html,<img  src=\"" &
"file:///Volumes/" &
Middle ( Get ( FilePath ) ; 7 ; ( Length( Get ( FilePath ) ) -7 ) - ( Length
( Get ( FileName ) )+4 ) ) &
"/photo/" & myfilename & "\" >"

which for example evaluates to:
file:///Volumes/SchijfB/1 20Datamap/Data
Genealogie/ProGen/ProgenFMP/photo/00087.jpg
which results in the photo being shown in the webview object.

Ursus 

Back to comp.databases.filemaker | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

osx vs win <Ursus> - 2012-01-25 19:50 +0100
  Re: osx vs win Martin Τrautmann <t-usenet@gmx.net> - 2012-01-25 20:55 +0000
  Re: osx vs win <Ursus> - 2012-01-26 19:04 +0100
  Re: osx vs win David Stone <no.email@domain.invalid> - 2012-01-25 15:07 -0500
    Re: osx vs win Martin Τrautmann <t-usenet@gmx.net> - 2012-01-26 20:25 +0000

csiph-web