apple17 Posted February 22, 2009 Posted February 22, 2009 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.
Genx Posted February 22, 2009 Posted February 22, 2009 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";
apple17 Posted February 22, 2009 Author Posted February 22, 2009 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.
Genx Posted February 22, 2009 Posted February 22, 2009 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";
apple17 Posted February 23, 2009 Author Posted February 23, 2009 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?
Newbies rolf.buholzer Posted February 24, 2012 Newbies Posted February 24, 2012 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
rizlaalzir Posted February 29, 2012 Posted February 29, 2012 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.
rizlaalzir Posted March 5, 2012 Posted March 5, 2012 Anyone? I cannot believe that someone else hasn't come across this issue?
webko Posted March 5, 2012 Posted March 5, 2012 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
Recommended Posts
This topic is 4913 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now