dbTalk Databases Forums  

osx vs win

comp.databases.filemaker comp.databases.filemaker


Discuss osx vs win in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
 
Posts: n/a

Default osx vs win - 01-25-2012 , 12:50 PM






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.

Hou je goed / keep well,

Ursus

Reply With Quote
  #2  
Old   
David Stone
 
Posts: n/a

Default Re: osx vs win - 01-25-2012 , 02:07 PM






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

Quote:
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?

Reply With Quote
  #3  
Old   
 
Posts: n/a

Default Re: osx vs win - 01-26-2012 , 12:04 PM



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

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

Quote:
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

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.