Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

IWP and iframe environment

Featured Replies

I have a database that works fine in IWP.

However, in our environment, it must be accessed by external users via an iframe. When we place the URL of the IWP page in the iframe and access the page, it looks like the following javascript opens a new window – so what happens is I embed the url into the iframe, but when you access the page the script runs and opens a new browser on top of the main site.

Sorry is there a question in all of that? The line that does the window opening is this:

if( window != window.top )

top.location = "/fmi/iwp/cgi?-home";

  • Author

Sorry, I want the IWP window to show in the iframe. The JS is from the Filemaker IWP software. So I'm wondering if there is a way to control that so that the IWP window stays in the iframe.

Sure, just hack the page - find the iwp_home.html page (will be in your fmpro / server dir somewhere) and remove the line if( window != window.top )

top.location = "/fmi/iwp/cgi?-home";

  • Author

Thanks for your reply. My sense is that as I go deeper into the application, it's having problems due to the fact that it isn't at the 'top'. For example, the left side nav is not in the frame and also whenever I click on anything on the right side (in my form), I get an error because it's trying to access 'top...'.

Should I be able to do this, or is this a problem with IWP?

99% IWP is required to run in a top window :

  • 3 years later...
  • Newbies

Hello Genx

Just finishing a database-solution for a customer and tried to put that thing in an iframe. It displays the database as excepted but no button will work. The standalone version of the database published via IWP works fine. Here you'll find the database integrated into the website:

http://www.christkindlimarkt.ch/service/test/service/online_bewerbung.php

Any idea?

Thanks a lot in advance

Rolf

Hello Genx

Just finishing a database-solution for a customer and tried to put that thing in an iframe. It displays the database as excepted but no button will work. The standalone version of the database published via IWP works fine. Here you'll find the database integrated into the website:

http://www.christkin...e_bewerbung.php

Any idea?

Thanks a lot in advance

Rolf

I have exactly the same issue - I am trying to place an IWP into either a wrapper or an iframe and no buttons work.

Anyone? I cannot believe that someone else hasn't come across this issue?

The code on that form tells me it needs to be the top window to work:

onclick="CancelEventPropagation(); top.iwp.executebuttonscript(27,0,0)" (for the Login button)

If you really need this to work in an iFrame, then you probably have to move to using Custom Web Publishing - IWP likes owning the entire window to work properly

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.