Our Preferred 5 Star Hosting Provider - Award Winning FileMaker Pro Hosting
Results 1 to 3 of 3
  1. #1
    Gold Member
    Join Date
    Jan 2009
    Posts
    307
    Location
    Shreveport, LA
    FileMaker Pro Software
    Filemaker 14
    OS
    Windows & Mac
    Skill Level
    Intermediate
    Last Post
    03-17-2017
    Local Date
    03-29-2017
    Local Time
    02:22 AM
    Last Active
    03-17-2017

    Get Layout Objectattribute and webviewer

    So i have a webviewer that pulls in a php page i had built that uses html 5 audio player. It works great. I click a button in filemaker and if the audio exists on our server it plays in webdirect through the webviewer. If the audio doesnt exists the php file echos back "Error: Invalid Path" or whatever i have the PHP file coded to do. In my FM script i have it coded so that if the GetLayoutObjectAttribute ( "login" ; "content" ) gets the Error message echoed back from the php file and i can see it visually and i set it in a dialog box to show me the error if i get an error message echoed back.

    Now in the client it works great with no issues but if i view all that in webdirect then what i see echo back in the webviewer is infact the error message i want but the GetLayoutObjectAttribute ( "login" ; "content" ) script step that suppose to get the content of the webviewer is infact giving me the url instead. So in client it gives me the error message but in webdirect it gives me the url which i dont want cause it doesnt give me the message i wanna return to the user.


    Why is that? And is there a way to get around that or is it a bug or what?

  2. #2
    FMT Preferred FileMaker Consultant - Trainer jaymo67's Avatar
    Join Date
    Sep 2014
    Posts
    30
    Location
    Chino Hills, CA
    FileMaker Pro Software
    FileMaker 15 Advanced
    OS
    Mac
    Skill Level
    Developer
    Last Post
    03-28-2017
    Local Date
    03-29-2017
    Local Time
    12:22 AM
    Last Active
    03-28-2017
    GetLayoutObjectAttribute works differently in WebDirect, returning a URL instead of the HTML code. The documentation says it returns the same value as the "source" parameter when used in WebDirect. Sorry, but you'll need to find an alternative solution. Have you tried the Insert from URL script step? It will insert the HTML code and is much more reliable than GetLayoutObjectAttribute, waiting for the page to completely load.
    FileMaker Developer for over two decades. Certified in FileMaker 7, 8, 9, 10, 11, 12, 13, 14 and 15.

  3. #3
    Gold Member
    Join Date
    Jan 2009
    Posts
    307
    Location
    Shreveport, LA
    FileMaker Pro Software
    Filemaker 14
    OS
    Windows & Mac
    Skill Level
    Intermediate
    Last Post
    03-17-2017
    Local Date
    03-29-2017
    Local Time
    02:22 AM
    Last Active
    03-17-2017
    Quote Originally Posted by jaymo67 View Post
    GetLayoutObjectAttribute works differently in WebDirect, returning a URL instead of the HTML code. The documentation says it returns the same value as the "source" parameter when used in WebDirect. Sorry, but you'll need to find an alternative solution. Have you tried the Insert from URL script step? It will insert the HTML code and is much more reliable than GetLayoutObjectAttribute, waiting for the page to completely load.

    Thank you! Didn't see that part of working the same. I just tried the insert from url for webdirect and it works exactly like i wanted. Thanks again for your help.

Thread Information

Users Browsing this Thread

There are currently 3 users browsing this thread. (0 members and 3 guests)

Similar Threads

  1. WebViewer and GoogleDrive
    By sajulara in forum FileMaker on the Web and Web Viewer
    Replies: 0
    Last Post: 02-24-2016, 02:06 PM
  2. webviewer
    By ursus.kirk in forum FileMaker 11 Advanced
    Replies: 2
    Last Post: 03-04-2011, 02:49 PM
  3. WebTitle ( webviewer )
    By barry in forum FileMaker Custom Functions
    Replies: 0
    Last Post: 04-21-2010, 06:34 AM
  4. WebTitle ( webviewer )
    By Brian Dunning in forum FileMaker Custom Functions
    Replies: 0
    Last Post: 03-18-2010, 01:50 PM
  5. IWP inside webviewer?
    By _henry_ in forum FileMaker Pro 9
    Replies: 3
    Last Post: 04-07-2008, 12:55 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Welcome to the Original FileMaker Forum
With designated forums for almost every FileMaker topic...FileMaker Today is a FREE to join community where you can boost your FileMaker expertise, build better apps & solutions and interact with over 42,000+ FileMaker Developers from all over the world. If you're building FileMaker solutions, this is the place for you.
Follow FMT
We Are FMT
FMT is home of The World's leading FileMaker News Site, Worldwide Developer Directory, FileMaker Connect Community and so much more.