September 10, 201510 yr Running Filemaker Pro 13 on Mac OS X 10.10.5 I found some earlier posts on this issue, and many suggest to open the file in Safari and copy the location URL, but that isn't working for me. I keep getting "The requested URL was not found on this server." error in the Web Viewer field. Seems like this should be a fairly straightforward use case right? Alternatively, if someone knows how to allow an image to scale to fit horizontally in a container to allow for vertical scrolling, that's what I'm trying to do with the web viewer. Thanks, Ryan
September 10, 201510 yr An example file illustrating the problem would help. Looks like turning off "automatically encode URL" fixes it. WVPic.zip Edited September 10, 201510 yr by BruceR
September 10, 201510 yr Author Apparently turning off 'automatically encode URL' was the issue! An hour of googling and a simple checkbox resolves the problem. Thank you! Now, any idea of how to adjust the size? The tutorials i've found provide solutions for remote URLs, but I can't get them to work with the Local files.
September 10, 201510 yr Author I found this as a solution: http://cimbura.com/tech/2010/12/24/filemaker-web-viewer-dynamic-image-resizing/
September 10, 201510 yr Alternatively, if someone knows how to allow an image to scale to fit horizontally in a container to allow for vertical scrolling, that's what I'm trying to do with the web viewer. That could be made by: 1) giving a name to the Web Viewer ( I give it "wv" )2) putting this code into the calculation for the WV: "data:text/html, <html> <style> body {border:0px;margin-top:0px;margin-left:0px;} </style> <body> <img src=' " & YourTable::TheURLField & " ' width=' " & GetLayoutObjectAttribute ( "Wv" ; "width") - 17 & " '/> </body> </html>" Note that:1) the number 17 in the calc works for my windows system and must be suited so that the horizontal bar hides.2) on my pc I do not need to uncheck the box: "Automatically encode URL"
Create an account or sign in to comment