Apex in iframe broken in 4.1?

Hi,
I am experiencing a strange problem after I upgraded Application Express to 4.1.
Every new application I create, will not work in an iframe. The frame shows up as empty (with chrome's element inspector showing the content as simply <html><head></head><body></body></html>
But older applications (created in 4.0 and earlier) they show up fine without problems.
I have tried all the themes in 4.1 they all do not work in an iframe and if I create new pages in an older application the new pages work fine in an iframe.
So there is some change in the 4.1 that seems to be breaking apex apps within iframes.
I looked at the sequence of events in the Chrome Network tab of the Developer Tools. I see a request for "f" with a response of "302" (temporarily moved), which is fine, its the session mechanism redirecting.
Then I see another request for "f" which gets the response of "Canceled".
I can get an apex error message to show by pointing to a non-existing page in a new 4.1 app, but that is the only response I have been able to get..
Any ideas anyone?
Oli

That's interesting, tried the Sample Application with the following HTML file
<html>
<body>
<h1>iFrame public page</h1>
<iframe src="http://apex.oracle.com/pls/apex/f?p=29393:99:0" width="100%" height="300">
  your browser doesn't support iframes
</iframe>
<h1>iFrame protected page</h1>
<iframe src="http://apex.oracle.com/pls/apex/f?p=29393:1:" width="100%" height="300">
  your browser doesn't support iframes
</iframe>
</body>
</html>The first iframe works fine which loads a public page with using session zero.
The second iframe which tries to include page 1 which is an authenticated page fails in IE8.
I assume it must have something to do with redirects which are not correctly working in the iframe. It has definitely nothing to do with the new security settings to prevent click hijacking, because that's not enabled for that application.
Will continue investigation.
Regards
Patrick
My Blog: http://www.inside-oracle-apex.com
APEX Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf

Similar Messages

  • Apex in IFRAME login problem (P3P IE6+)

    Hi
    I have problem with Apex application in Frame. I can't login to my APEX app because IE6 or 7 blocked cookies. I browsed internet about it and problem is in P3P.
    At this time I add to my Apex app this meta tag (changed Templates)
    *<meta http-equiv="P3P" content='CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"'>*
    but problem is still.
    Also I found in the Internet some solution for other platform:
    For example
    1. PHP
    header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"');
    2. ASP.NET
    HttpContext.Current.Response.AddHeader("p3p","CP=\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\"");
    *3. APEX*
    *?????????? -- some ideas?*
    Can you help me ??
    Regards
    Edited by: AndyPol on 2009-04-15 00:54

    Hi
    Any APEX app requires authentication (even if that authentication is 'No Authentication') of some kind. Are you trying to access it from another web page or using SSO, or is your custom authentication scheme referencing something tabular within your database?
    Cookie management is handled by the browser and therefore not necessarily applicable to the APEX app that you are trying to access unless you are already authenticated within the same session.
    I'm not sure what exactly you are trying to achieve in your web page, accessing an Apex region or page within an iframe without any kind of authentication within the Apex app itself?
    Sorry, if I have misunderstood, maybe you could post an example on apex.oracle.com and show me what you are trying to do and we should be able to help.
    Cheers
    Ben

  • Apex in IFRAME cookie problem (P3P IE6+)

    Hi All,
    I am having a problem with IE not displaying my content within an IFrame - due to IE not trusting the Apex cookies.
    This problem was resolved on the Apex forum in 2009 - https://forums.oracle.com/thread/887792
    The solution was to set the P3P policy in the web server header response :
    For example
    1. PHP
    header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"');
    2. ASP.NET
    HttpContext.Current.Response.AddHeader("p3p","CP=\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\"");
    3. Apex solution
    I add this section to httpd.conf (Apache proxy)
    *<IfModule mod_headers.c>*
    Header set P3P "policyref=\"/w3c/p3p.xml\", CP=\"NOI DSP COR NID CUR ADM DEV OUR BUS\""
    *</IfModule>*
    Now I have the same problem but I am hosted in the cloud.
    Here is a page with my content embedded - (Bradford Uni) : test widget - SACU
    This works fine on chrome/firefox...
    Is there any other way to set P3P header in the database cloud ?
    Big thanks
    Steve

    Hi Christian,
    Thanks for looking in to this...
    This did not fix it :-(
    However, I used    to inspect the response headers and found that unless the page I was attempting to access was LOGIN_DESKTOP then the response was : 302 Moved Temporarily
    Content (encoded: 0.24 KiB / decoded: 0.37 KiB)
    <html><head><title>302 Moved Temporarily</title></head> <body bgcolor="#FFFFFF"> <p>This document you requested has moved temporarily.</p> <p>It's now at <a href="https://production001-demandanalysis.db.em1.oraclecloudapps.com/apex/f?p=20300147:111:0:::::">https://production001-demandanalysis.db.em1.oraclecloudapps.com/apex/f?p=20300147:111:0:::::</a>.</p> </body></html>
    This may have been causing the error in the iFrame...
    So I changed the Home URL and Login URL to : f?p=&APP_ID.:111:0
    and it now appears to load fine :-)
    Thanks again
    Steve

  • How do you fire a button click event on apex page from fancybox iframe that was created by page

    I am trying to fire off the button click event from fancybox iframe. The apex page has a button that launches a fancybox iframe which is loaded with an APEX form. On close of that fancy box, I am trying to fire a click event on the parent page which will refresh a div with html that is created with plsql. The button on the page works as expected when clicked from the page. It will show a debug alert message to prove it was called and then load the div with the correct data. I am unable to fire off this button click from the fancybox iframe when it closes.
    A couple of points:
    I using Plug-in: Execute PL/SQL Code and Return Content ("PLUGIN_MULEDEV.SERVER_REGION_REFRESH") to place the create fancybox statement. It is used to populate a div using plsql.
    The name of the button on the main page is P2020_REFRESH_SECTION_BUILDER_BTN.
    The click dynamic action on the button is calling the plugin to replace the html in the div.
    The data in the form in the fancybox is being saved to the database. On close of the fancybox box I want to refresh the div so the new record is included in the div html.
    Can anyone help. Here is the fancybox code:
      function customProcessOnReadyState4(){
        for (var i=0;i<11;i++){
          $( "#tabs"+i ).tabs();
          $("#createNewExerciseLink"+i).fancybox({
              ''width''         : ''60%'',
              ''height''        : ''70%'',
              ''autoScale''     : true,
              ''transitionIn''  : 200,
              ''transitionOut'' : 200,
              ''type''          : ''iframe'',
              ''onClosed''         : function() {
                                         window.parent.$(''#P2020_REFRESH_SECTION_BUILDER_BTN'').click();
    Here are the dynamic actions assigned to the button:
    5 - Execute JavaScript Code
    alert("Starting refresh");
    10 - Execute PL/SQL Code and Return Content [Plug-in]
    begin
      SCTUI.create_sct_tabs2(:P2020_CREATE_SECTION_LOV, '1');
    end;

    user setActionListener...
    <af:setActionListener from="#{bindings.XXX.inputValue" to="#{backingbean.variable}"
                  <af:inputText value="#{bindings.Email.inputValue}"
                                label="#{bindings.Email.hints.label}"
                                binding="#{backingBeanScope.backing_ShuttlePage.it2}"
                                id="it2">
                    <f:validator binding="#{bindings.Email.validator}"/>
                  </af:inputText>
                  <af:commandButton text="commandButton 2"
                                    binding="#{backingBeanScope.backing_ShuttlePage.cb2}"
                                    id="cb2" action="passing">
                    <af:setActionListener from="#{bindings.Email.inputValue}"
                                          to="#{processScope.detail}"/>
                  </af:commandButton>next jsf page:
                <af:outputText value="#{processScope.detail}"
                               binding="#{backingBeanScope.backing_ProcessScope.ot1}"
                               id="ot1"/>setPropertyListener also should work
    <af:setPropertyListener from="#{bindings.Email.inputValue}" to="#{processScope.detail}" type="action"/>

  • Iframe of a Blob Content in Apex form/report

    Hi All
    I am developing a application where users will upload documents which will be stored in blob column. Now the requirement is to show the document with in the page using Iframe. Can some one please suggest the steps to show the blob content in iframe.
    Thanks in Advance.
    regards
    Srini.

    You can show the documents in an iframe only if your browser has an appropriate plugin (like to most browsers have it for pdf documents). Otherwise you will be forced to either save the document or open it with the appropriate programm. Means, your application will probably fail to show the documents in an iframe for all other document types other than pdf.
    I have no special case explaining how to display a document in an iframe but you can inspect it here:
    http://apex.oracle.com/pls/apex/f?p=31517:15
    and
    http://apex.oracle.com/pls/apex/f?p=31517:58
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    http://apex.oracle.com/pls/apex/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Upgraded to APEX 3.0 in Oracle 10g Express, broken runtime

    Hi,
    I'm a newbie trying to use APEX with Oracle 10g Express on my laptop. I ran the upgrade to the latest APEX version (3.x). It seems to have worked for design-time, but the run-time has broken. I gave up trying to import samle apps, and built a simple one-page application from scratch, and got the below error after entering username/password and clicking the login button:
    ERR-1777: Page 101 provided no page to branch to. Please report this error to your application administrator.
    Thanks in advacne,
    Shahram

    No longer a problem, I needed to successfully log on to the admin account and associate the developer user to a schema other than SYSTEM, I'm not sure why SYSTEM ended up being the default schema for the workspace during the upgrdae.
    Shahram

  • Broken image links on APEX 3.0 in Oracle 10g XE? Here's the solution

    You're on Oracle 10g XE and you've just upgraded your APEX from 2.0 to 3.0. You log into APEX Admin and there's tons of broken image links. You look into the Oracle documentation for APEX and it instructs you to copy the Images folder into your htmldb directory if you're using Oracle 10g standard, etc. But you're using Oracle 10g XE and there is no Images folder anywhere to be seen!
    HERE'S THE SOLUTION:
    http://daust.blogspot.com/2006/03/where-are-images-of-application.html
    Excerpt from the website:
    In OracleXE these resources (Images) are stored directly in the database, using the Oracle XMLDB feature. You can access the resources and modify them directly by using the WebDAV feature of the XMLDB.
    (1) With Internet Explorer, just go to File > Open > http://127.0.0.1:8080/i (check "open as webfolder")
    Then, copy the contents of your apex/images folder into this webfolder. It will take about 10 minutes. When it's done, refresh your Apex 3.0 website and lo and behold! Images! :)
    Be sure to thank Dietmar Aust for his solution to this problem, provided on his website: http://daust.blogspot.com/2006/03/where-are-images-of-application.html

    Another option: Try the Oracle Database XE and Application Express 3.0.1 install guide.
    C.

  • Spreadsheet from Iframe in APEX 4.1 not using session values

    We recently upgrade to Apex 4.1 and now the spreadsheet option within an iframe is not using the session values to limit the records downloaded into the spreadsheet. This only happens with Internet Explorer running running under windows 7. I don't have control to change anything on the webserrver where the Apex Iframe is running. Is there any option within APEX that can be set so that the spreadsheet will only contain what is displayed on the form versus all the records. The spreadsheet download ignores any criteria that was applied the the report on the same page.
    Thanks,
    Nancy

    Hi Dan,
    thank you for your answer. I have the solution now from Kleber_M, this works.
    Dan McGhan wrote:
    1. Use bind variables in my query. It would look something like:
    SELECT *
    FROM region
    WHERE region LIKE '%'|| :P3_REGION ||'%'
    AND country LIKE '%'|| :P3_COUNTRY ||'%'
    AND city LIKE '%'|| :P3_CITY ||'%'
    This was only a mistake when writing the post, i forgot the colon. I use bind variables of course.
    2. Make sure you have a comma separated list of item names that the report depends on beneath the SQL Query where it says Page Items to Submit. This will make sure that the value of those items on the page are bound into session state prior to the query executing.I tried this, too, but without success...
    3. Use Dynamic Actions to perform the refresh action when any of the three items changes. This would be both more performant and a better experience for the end user than a full page refresh.How can i do this. This sounds good, because when refreshing the page often some items oder actions are done that i don´t want to.
    Regards,
    Matze

  • Multiple pages, how ApEx handle it? (iframe)

    Hello,
    I have a application used by many teams in my company. This application have a stantard layout for all the teams and now I´m developing a personalized layout for each team.
    How it will work?
    The application will have a page (main page) with some stantard fields, and a iframe with the personalized fields. The main page will call the page (iframe) correspondent to each team dynamically, this page is also a ApEx page.
    Page 1
    [Common layout]
    [Team A page 2 (iframe)] or [Team B page 3 (iframe)] or [Team XPTO page N (iframe)]
    [Common layout]
    My question is: Can I use iframe in ApEx without problems? I saw some topics that said to dont use iframes, but they dont explain why. How ApEx will handle those pages?
    Thanks in advance,
    Felipe

    Hi,
    I think i coldn´t explain what I´m trying to do, and my picture doesn´t help either! (Well, it´s already done :C)
    Sorry for that guys, let me try to be more specific:
    I´m developing a issue tracker system. That application is used by many teams in my company. Every team use the same interface. I made some authorization schemes, and other DB logics to make the data accessible only for those who can access that data, like, Team A cannont access/see/modify Team B data.
    The new chalenge: Some teams need aditional/different fields.
    What we already have, for example:
    Page "BUGS"
    [Bug_ID]
    [Creation_TS] [LastDiffe_TS]
    [Product][Component]
    [Reporter][Assigned_TO]
    [Summary]
    [Description]
    [Add comments]
    [Choose STATUS]
    (Submit)
    What we need?
    Page "BUGS" that Team A will see
    [Bug_ID]
    [Creation_TS] [LastDiffe_TS]
    [Product][Component]
    [Reporter][Assigned_TO]
    [Summary]
    [Description]
    [Source][Environment]
    [Contact][Phone][Location][Email]
    [Problem ID][Probaly Solucion]
    [...] <-- here we have anything that Team judge to be necessary to have here
    [Add comments]
    [Choose STATUS]
    (Submit)
    Page "BUGS" that Team B will see
    [Bug_ID]
    [Creation_TS] [LastDiffe_TS]
    [Product][Component]
    [Reporter][Assigned_TO]
    [Summary]
    [Description]
    [Problem root][Afected subsystems]
    [Solution Roadmap]
    [Estimed time to solution]
    [Responsible][Detected in version]
    [Correction PKG ID]
    [...] <-- here we have anything that Team judge to be necessary to have here
    [Add comments]
    [Choose STATUS]
    (Submit)
    Resuming:
    [Bug_ID]
    [Creation_TS] [LastDiffe_TS]
    [Product][Component]
    [Reporter][Assigned_TO]
    [Summary]
    [Description]
    [Dynamical content using iFrames]
    [Add comments]
    [Choose STATUS]
    (Submit)
    That´s what I was trying to show in that picture. Do you understand now? :)
    Thanks in advance,
    Felipe

  • Apex 2.2 - Correct Broken html code displaying ( " /html" )  due to data

    Yes. We are running version 2.2. Apex 4.0 isn't an option right now.
    French characters are causing the broken code "</html" to display at the bottom of the page
    when the data is pulled from the database.
    I have tested the page with non-french characters and the broken code does not appear.
    The region is a sql query updateable report region. The query is a straight forward query, just
    pulling whatever is sitting in the columns.
    The primary language for this page and all pages in the application is English.
    How does one get around this display error?
    Thank You

    This is frequently caused by failing to meet APEX installation and configuration requirements. Ensure the DAD character set is AL32UTF8 and the correct version of the PL/SQL Web Toolkit is used.
    The DAD may be at the location indicated in the documentation link below, or it may be somewhere else depending on the local configuration. The PL/SQL Web Toolkit can be checked using the query <tt>select owa_util.get_version from dual</tt> in the SQL Workshop.
    http://download.oracle.com/docs/cd/B31036_01/doc/install.22/b28552/post_inst.htm#BHADHBBG
    http://download.oracle.com/docs/cd/B31036_01/doc/install.22/b28552/post_inst.htm#BHAJFIGJ

  • DOCUMENTATION BUG: Broken link in APEX 4.0 API Reference

    In the See also section of the <tt>apex_util.remove_preference</tt> method, the *"Managing Session State and User Preferences"* link is dead:
    olink:AEADM110|Managing%20Session%20State%20and%20User%20Preferences

    The broken lin in APEX 4.0 API Reference has been corrected. The latest updated version of this document is now available on the Oracle Technical Network (OTN).
    Thanks for reporting the bug,
    Drue Swadener
    Principal Technical Writer

  • Apex in an iframe - only allow access from specific parent page

    Hi,
    I have a simple, unauthenticated Apex 4 application which lets users enter search terms and return records using a classic report. I wish to publish the application within an iframe, so that my organisation's communications department can maintain control over the rest of the page content. A side effect of this solution is that it will be possible for users to lift the application URL from the page source and reuse it elsewhere. I would prefer to avoid this, since I don't want our main website traffic to be diverted. Is there a way to restrict access to an application based on the parent page of the iframe in which it is embedded?
    Thanks in advance,
    Simon

    Hi,
    I'm sure there might be better way than this and this might have some holes , but anyway
    Create HTML region "After header" without template to page zero
    <script type="text/javascript">
    var u="my_ifarme_url_here";
    if(top.location.href!=u){top.location.href=u;}
    </script>Replace "my_ifarme_url_here" with URL your iFrame is located
    Regards,
    Jari

  • Display apex page inside iframe........

    Hi,
    Im trying to put the apex page(http://apex.oracle.com/pls/apex/f?p=44015:3:2304706657174469:::::) inside a iframe. but i cant achive it. when i run the below code the page cant able to display inside the iframe.
    <html>     
    <head>
    <title>HTML Test</title>
    </head>
    <body>
    <iframe src="http://apex.oracle.com/pls/apex/f?p=44015:3:2304706657174469:::::" width="800" height="400">
    </iframe>
         </body>
    </html>i.e, i want to display a page(google) like below,
    <html>     
    <head>
    <title>HTML Test</title>
    </head>
    <body>
    <iframe src="http://www.google.com" width="800" height="400">
    </iframe>
         </body>
    </html>what's wrong in my code?
    Thanks in advance...

    What kind of error does the page give?
    I see that you have your session info in your url.
    If you put it like this:
    <iframe src="http://apex.oracle.com/pls/apex/f?p=44015:3" width="800" height="400">does that work?
    Robin

  • APEX V3 that comes with 11g -- Fundamentally broken?

    I have two instances of APEX v3 running. One was an upgrade from HTMLDB v2.0 the other is the version that came with 11g. The 11g version seems to be fundamentally broken and buggy. It continually asks me for an XDB login, the applications that I can import into the upgraded v3 version, import into this version missing half of the components. This list of bugs and fixes is becoming endless.
    I have read the notes, this forum, and have an SR on the matter. Most people seem to be aware of the APEX 11g issues and I have been able to fix some of them. I am wondering if I should uninstall the version that came with the database and install the stand-alone version. Thoughts?

    j_70,
    When you installed 11g, did you do a clean database install or did you do an upgrade? I tried doing the upgrade process 5 times and they all had problems, so I finally settled on a clean install (software only), then created a database with all of my tablespaces, then exported and imported all of the data from my 10g database. The upgrade process was (once again) unusable for me.
    If you did a process similar to mine above, when you imported, did you export and import the Apex schemas? That doesn't work at all, and does lead to numerous problems. The Apex schemas need to have the applications exported and the imported back through the Apex interface. That is the only way it works if you are changing versions like going from 10g with Apex 3.0.1.0.7 to 11g with 3.0.1.0.8 (I probably got the Apex versions wrong). Otherwise, you wind up with some of the older Apex 'data' (tables, data, etc.) overwriting the newer version in 11g, and that causes problems. This is exactly like the case of not importing the system (system, sys, sysaux) schemas into a newer version.
    If you're not the DBA, ask your DBA how the 11g install was performed. It could be that they did the 11g install the wrong way. I know this was my most difficult upgrade process yet, and I've been doing this since version 5, about 16 years now.
    Anyway, the point of all of the above is that when done properly, Apex itself doesn't have any problems. Actually, the Oracle database didn't have any 'major' problems either (a few minor ones, but I worked through those finally). But, when done improperly, the data migration from an old version to a new version can cause all kinds of problems. Based on what I experienced when I migrated my system from 10g to 11g, it sounds like this may be what you are experiencing. And none of this has anything to do with Apex.
    I would suggest uninstalling Apex, then install it fresh (so you know you have a working, clean install), then import your applications through the Apex interface. You shouldn't have any problems if you do it this way.
    For the record, I would also trust what Tyler, Joel, Scott Spadafore and Carl say a lot more than Oracle Support, especially when it comes to Apex.
    My last experience with Oracle Support was with a problem I had in 11g with views that use the ANSI join syntax. I used the USING clause, since I was performing the join between three tables that had a common column name (per all of the documentation), but I kept getting a 'unabiguous column' error message. The 'fix' was to change all of my views to use the ON syntax instead. Oracle Support insisted that this is the correct behaviour, even though all the documentation I've seen everywhere states otherwise. In short, Oracle Support is good in that they will eventually get you working again, but they are not experts.
    Send Joel the SR# so he can investigate further. I'm pretty darn sure that he'll discover in this case Oracle Support was wrong (again), and have a solution for you if the above uninstall, import process doesn't fix your problem.
    Bill Ferguson

  • Why do i lose my session  in apex 4.1 when viewing (public) page in iframe?

    Hi,
    When i view another apex page in an iframe from my current page using "0" session or leaving the session blank (new session) , i will lose my session and i am redirected to the login page.
    This doesn't seem right?
    Is there a workaround for this behaviour as this is really messing up the functionality of my application.
    In 4.0 everything was working fine.
    example:
    http://apex.oracle.com/pls/apex/f?p=27227:1
    demo/demo
    thanks

    Hi behteam,
    the only workaround which would come into my mind would be to
    1) put the pages you call in your iFrame into a separate application
    2) Go to shared components > authentication and specify a unique name for the cookie name
    This will make sure that your main application and your lookup application will use different session cookies and will not overwrite each other when a new session is created.
    Question: Why don't you include all the necessary page items into the URL when you call the page in the iframe, so that a refresh will set the correct session state again?
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

Maybe you are looking for

  • Help with starting a new website

    I am using iweb for the first time and trying to publish. I have put all info in on iweb settings and it says that it is working right, but I'm not seeing the website. It can't be found. So I have gone to my ftp server and it is showing it in the pub

  • Just bought iPhone5s how do i transfer my info from iphone4

    just bought iphone5s how do i transfer my info from my iphone4 easily

  • HCM Form displays data from different client

    We are implementing HCM in ECC 6.0 environment with Adobe forms. When we execute Adobe form it shows information from our ER8 206 client but when it displays subsequent client it makes a switch to ER8 102 client. All our iViews are pointing to SAP_R3

  • REM Planning table - Capacity requirements and Levelling.

    Hi i have few queries in REM planning table. In REM planning table MF50 my selection is based on entire plant. Here in total capacity data tab for any particular plant it will show the list of work centers which are maintained in particular plant to

  • Fatal Internal Error : "LinkObj.cpp

    Hi, I currently upgraded the system from labview 8.0 to labview 8.0.1 and did a mass complile. However after doing that I am getting an error message reading "Fatal Internal Error : "LinkObj.cpp", line 587" everytime I close a particular sequence in