October 2, 201510 yr Hey Guys, Do any of you know if I can use the open url command (or any other FileMaker command) to open a webpage on its own as a pop up and not as a tab. Ideally I need to inject some javascript (which I have) wrapped around the web address. I've tried to inject javascript with the open URL script but I've had no luck. I have also tried to created a button in the web viewer and when the user clicks on that, I'm assuming it opens another tab in the web viewer, as thats where the scope of the button was. Of course I can't debug this as FileMaker WebViewer doesn't have any built in debug tools for javascript (Windows - I.E) I've got the javascript method figured out as I can do it via a html page, but anyone else found a way to create a button on a FileMaker layout which can open a web browser execute javascript. window.open("http://www.w3schools.com", "_blank", "toolbar=yes, scrollbars=yes, resizable=yes, top=500, left=500, width=400, height=400"); Thanks Jalz
October 6, 201510 yr Yeah - you have do a bit of a work around:1) Compile a HTML document that gives you the exact results you want.2) You will need to Copy that HTML into a global field 3) Export the contents of that field to your TEMP directory (open automatically)See this attached sample file. I deal with the Redirect, window position, and window size. Did not take the time to deal with other characteristics of the window (because of browser compatibility issues. I will leave that up to you ;-)BTW - this could be revamped so the HTML you are exporting can be a function where you can re-user it feeding VARS to the various parameters. This is really to get to creativity wheel moving.Hope this helps! dwdc_launchUrl.fmp12 Edited October 6, 201510 yr by dwdata
Create an account or sign in to comment