Iframe page refreshing main page

Hi,
I have a form on page one, and also an iframe containing a form on page 2. I'd like to be able to edit the data on the form inside the iframe, and then upon submitting it, have the main page refreshed. Some of the data displayed on the form on the main page is affected by entering data on the iframe page, so this is the reason for it. One possibility I thought of was branch on the iframe page to the main page, and then having some way that the main page could detect that it was loaded in a frame and "break out" of the frame automagically. I hope this makes sense.
Thanks,
Mike

Hello,
Yes the function should be on your main page.
As for content it depends what you want to do the easiest would probably be just to force a a whole page refresh which is as easy as just callling parent.doSubmit(); from the iframe page and making sure the parent page has an uncodtional branch to itself.
A more complicated example is something more along the line of this example.
http://apex.oracle.com/pls/otn/f?p=11933:17
Click the show detail link which opens an iframe then click the RowCallBack() button which calls this javascript.
function RowCallBack(){
var lRow =parent.g_LastRowOpened;
var lCells = parent.g_LastRowOpened.cells;
for (var i=0;i<lCells.length;i++){lCells[i].style.background = '#CCCCCC'}
Carl

Similar Messages

  • Sandboxed iframe page re-load

    Hi,
    My Air application uses a sandboxed iframe and its source htm
    page is loaded from a location other than application directory. I
    have included a init.js file in the htm page of iframe.
    Now, on basis of some user input I periodically update the
    init.js (I 'write' the file- it contains object and variable
    instantiation,etc) file. To visually show changes I have tried to
    reload the htm page of iframe through several methods however the
    htm page keeps 'showing' contents according to 'previous' version
    of init.js file even though init.js has changed.
    The methods that I have used to 'reload'/'refresh' the iframe
    htm page are:
    > load a 'empty.htm' page in iframe and then cause it to
    ask parent sandbox bridge to set iframe source back to orignal htm
    page for iframe.
    > set iframe src to empty i.e. iframeEl.src = '';
    > use reload function .i.e
    iframeEl.contentWindow.location.reload(true);
    > include the following tags in the htm page to be loaded
    in the iframe:
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <meta http-Equiv="pragma" Content="no-cache" />
    <meta http-equiv='cache-control'
    content='no-cache,no-store,must-revalidate,proxy-revalidate' />
    > set iframe src with dynamic query string e.g.
    iframeEl.src = 'my.htm?' + timeObj.getMilliseconds().toString();
    Can anyone please shed light on how to 'refresh' iframe page
    so that it starts 'including' updated js file ?
    Thanks a lot for any/all help.

    The file is not stored in application directory.
    As far as js file is concerned my boss solved this stumbling
    block by suggesting that i use 'document.createElement("script")'
    to include the js file to head of my htm page ( that opens in the
    iframe). Now the htm file finds the newer version of js thanks to
    dynamically created script tag with a uniques query string.

  • Passing values to iframed page with flash chart.

    Hi,
    I'm trying to dynamically generate a series of charts within a sql report.
    In my report i make several calls to a page with a (flash) chart and i pass some values to this page/chart by setting page items through the source url of the iframe.
    The problem is that all the iframed instances of the page in my report display the same data although each iframe sets specific page item values through its source url.
    (only the page item values that were set by the last call to the page are being used by all the other chart instances)
    So why does this happen?
    Are the iframed charts rendered to slow?
    Is this a flash problem?
    Should i call each iframe within a seperate session?
    And does anyone know how to correctly pass values to the iframed page / chart so each instance of the page/chart displays the correct data?
    Thanks
    Niels

    Solved my problem by leaving the SESSION part blank in the src url of the iframe.
    Apex creates a new session for every iframe now, the page items values are not overwritten and the data is displayed correctly.

  • IFRAME Page being redirected to iFrame SRC url instead.

    I am having a problem in getting iFRAME code to work in iWeb 08.
    I have a link on page A which takes me to page B where I have pasted following code within a Html Snippet :
    +<IFRAME SRC="http://www. google.com" WIDTH=1000 HEIGHT=500>+
    +Not working but here is a link to it :+
    +link+
    </IFRAME>
    When I click on link in page A, instead of going to 'http://web.me.com/........page_B.html' and staying there, it parks there (http://web.me.com/........page_B.html) for a second and then is redirected to :
    'https://www.google.com/accounts/ServiceLogin?service=mail&passive=true&rm=false &continue=http%3A%2F%2Fmail.google.com%2Fmail%2F%3Fui%3Dhtml%26zy%3Dl&bsv=zpwhty gjntrz&scc=1&ltmpl=default&ltmplcache=2'.
    Can anyone please help me with this.
    many thanks.
    Message was edited by: mnaseersj

    Whatever it is you try to accomplish, it's a great mess.
    This is what's in the HTML Snippets (I had to kill the loading of the pages):
    widget0
    <IFRAME SRC="http://www.googlemail.com" WIDTH=1000 HEIGHT=500>
    Not working but here is a link to it :
    <A HREF="http://www.googlemail.com">link</A>
    </IFRAME>
    widget1
    <IFRAME SRC="http://www.apple.com" WIDTH=1000 HEIGHT=500>
    Not working but here is a link to it :
    <A HREF="http://www.googlemail.com">link</A>
    </IFRAME>
    widget2
    <IFRAME SRC="http://www.googlemail.com" WIDTH=1000 HEIGHT=500>
    Not working but here is a link to it :
    <A HREF="http://www.googlemail.com">link</A>
    </IFRAME>
    What are the links to google and apple doing there?
    The correct code for a <iframe> is :
    <iframe src="url.to.page.html" width="500" height="500" scrolling="no" frameborder="0"></iframe>
    Perhaps getting acquainted with HTML is in order : [IFRAME - Inline Frame|http://htmlhelp.com/reference/html40/special/iframe.html]

  • Iframe page doesn't display

    I have inserted code that works on another page of my site:
    <iframe src ="program/Directory/directory.html" width="590px" height="400px" frameborder="0" scrolling="yes">
      <p>Your browser does not support iframes.</p>
    </iframe>
    I inserted the same code, modified the path to a different page, and it does not work on the new page. Is there additional code that needs to be added?
    thanks

    You don't need an iframe for this.  To make a scrolling division or table cell, all you need is a CSS height value and the overflow property.
    CSS:
    #YourDivName {
    width: 150px;
    height: 300px; /**height in pixels**/
    overflow: auto;
    HTML:
    <div id="YourDivName">
    content goes here
    </div>
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • Flash navigation and frames / iframes page

    For the past few months I've been trying to have a flash file
    open a certain html page or php page in either a framepage or an
    iframe. In the past I've had no problems with this. I've done it
    several times before without any errors. But somwhere along the
    launch of internet explorer 7 and or Flash Pro 8. I've not had such
    luck.
    If you look at the following site:
    http://www.teamafp.com
    you will notice that the flash menu system works just fine.
    The flash buttons opens the correct pages in the correct windows.
    This site was made a few years ago and even with the development of
    IE7 and FireFox it still functions the way it should.
    Now when making a new site using the EXACT SAME CODE and the
    EXACT SAME HTML / PHP CODE (for the frames / iframes) this does not
    work
    I've mad a quick example of this located at this url:
    http://67.59.38.170/FlashIframe/window.html
    Any one who can figure out why this is would be greatly
    appriciated!!!!

    ....... It's moments like this that make us programmers feel
    really dumb. I can't believe that I've been forgetting the ""
    around the window property. That seemed to have done the trick.
    Thank you.

  • How to increase height of IFRAME without refreshing its contents.

    Hi,
    I want to increase height of an IFRAME inserted in HTML,
    presently i am doing this by specifying
    var frameSrc = myFrame.src;
    myFrame.height = newHeight;
    myFrame.src = frameSrc;
    but as this refreshes the IFRAME i can see the time lag in the loading of page specified as src of IFRAME.
    Is there any better way to resize the IFRAME without reloading its contents.
    Thanks in advance.

    Why don't you add width and height where you had IFRAME tag?
    <iframe id="hiddenFrame" name="hiddenFrame" src="/myWeb/blank.html" style="width: 100; height: 300; visibility: hidden"></iframe>

  • Iframe, jsp & refresh/reload issues

    Good Morning,
    I have a problem with iframe, this is what happend:
    I'm using a code like this one
    ...some html code...
    <iframe src="myPage.jsp"></iframe>
    ...some code here too...myPage.jsp has a form, I sumbit the form and then if something will happen I redirect to newPage.jsp.
    Well, now, if I'm on newPage.jsp, if i try to reload this page using F5 or the browser button the page that will be reloaded is myPage.jsp and not the page I was seeing.
    Does anyone know why?
    Thanx a lot,
    Omar

    You are actually refreshing the outer page that contains the iframe, which will send a new request to myPage.jsp in order to fill in the iframe. If you need the functionality of refreshing outer page does not reset the inner page to the default, you will have to store the page that is supposed to be displayed in the iframe as a variable in the user's session. Have it default to myPage.jsp.
    //In the page that contains the iframe...
    <%
      String iframePage = (String)session.getAttribute("iframePage");
      if (iframePage == null) {
        iframePage = "myPage.jsp";
        session.setAttribute("iframePage", iframePage);
      iframePage = response.encodeURL(iframePage);
    %>
      <iframe src="<%=iframePage%>"></iframe>Then when something happens that makes it go to myPage.jsp, change the variable in session to newPage.jsp.
    //someplace where the myPage.jsp form is processed ...
      String iframePage = "newPage.jsp";
      session.setAttribute("iframePage", iframePage);
      iframePage = response.encodeURL(iframePage);
      response.sendRedirect(iframePage);You will have to know when to remove the variable from the session, or reset it back to the default value...

  • Dialog updates database... refresh Main panel?

    ref: JDev 3.1
    Given an application that has a Master/Detail Form with details in a gridcontrol, and a button that kicks up a dialog panel that allows the user to edit extensively a row that appears in the said gridcontrol...
    How does one force a refresh of the underlaying rowset in the original panel ( and force a redisplay into the grid control to reflect the updated data )?
    I'm trying to avoid instantiating the rowset as a passed parameter to the dialog and then manually pushing everything back on the main panel...
    Or am I ( again ) conceptually missing some significant approach to solving this task?
    TIA

    OK... here's some (working) sample code for an application based on Brian's help to Ali's session question, that also answers my question. Probably obvious to many, it may be helpful to newbies like me who are very confused reading the postings and trying to figure this stuff out.
    It shares a rowset between a frame and a dialog box. The data is kept in synch (automagically) as things change in the dialog box.
    Steps:
    1. Build a database connection class
    2. Put it in the application before opening the base frame.
    3. Build the frame/dialog. DO NOT specify a sessioninfo/rowsetinfo using the infoproducer drag/drops.
    4. Manually hardcode the sessioninfo/rowset stuff manually as noted.
    Note also that session info is not passed nor published except once.
    This seems to work. Please advise if you know of any glaring flaws. I wouldn't be surprised. Obviously, this is easier to actually do when you see the sample code than what it sounds like reading the postings! TIA.
    public class Application1
    public Application1()
    /** call the generic database connections **/
    /** Note that this is a simple class that used the IDE **/
    /** to define a sessioninfo and rowset using drag and drop **/
    /** in the DESIGN mode to the Structure pane... then edit the attributes **/
    dbConnections x = new dbConnections();
    /** THEN open the frame **/
    Frame1 frame = new Frame1();
    frame.show();
    public static void main(String[] args)
    new Application1();
    package package2;
    import oracle.dacf.dataset.*;
    import oracle.dacf.dataset.connections.*;
    public class dbConnections extends Object
    SessionInfo sessionInfo3 = new SessionInfo();
    RowSetInfo rowSetInfo3 = new RowSetInfo();
    AttributeInfo ACTION_CODErowSetInfo3 = new AttributeInfo(java.sql.Types.VARCHAR);
    AttributeInfo ACTION_TEXTrowSetInfo3 = new AttributeInfo(java.sql.Types.VARCHAR);
    public dbConnections()
    try
    jbInit();
    sessionInfo3.publishSession();
    catch (Exception e)
    e.printStackTrace();
    private void jbInit() throws Exception
    ACTION_TEXTrowSetInfo3.setName("ACTION_TEXT");
    ACTION_CODErowSetInfo3.setName("ACTION_CODE");
    rowSetInfo3.setAttributeInfo( new AttributeInfo[] {
    ACTION_CODErowSetInfo3,
    ACTION_TEXTrowSetInfo3} );
    sessionInfo3.setAppModuleInfo(new PackageInfo("", "MyProject3"));
    sessionInfo3.setConnectionInfo(new LocalConnection("qms"));
    sessionInfo3.setName("sessionInfo3");
    rowSetInfo3.setQueryInfo(new QueryInfo(
    "rowSetInfo3ViewUsage",
    "package2.ActionCodes",
    "action_code, action_text",
    "action_codes",
    null,
    null
    rowSetInfo3.setSession(sessionInfo3);
    rowSetInfo3.setName("rowSetInfo3");
    package package2;
    import javax.swing.*;
    import java.awt.*;
    import oracle.dacf.control.swing.*;
    import oracle.jdeveloper.layout.*;
    import oracle.dacf.dataset.*;
    import java.awt.event.*;
    public class Frame1 extends JFrame
    JPanel jPanel1 = new JPanel();
    GridControl gridControl1 = new GridControl();
    XYLayout xYLayout1 = new XYLayout();
    XYLayout xYLayout2 = new XYLayout();
    JButton jButton1 = new JButton();
    public Frame1()
    super();
    try
    jbInit();
    catch (Exception e)
    e.printStackTrace();
    private void jbInit() throws Exception
    this.getContentPane().setLayout(xYLayout2);
    this.setSize(new Dimension(517, 549));
    jButton1.setText("Detail");
    jButton1.addActionListener(new java.awt.event.ActionListener()
    public void actionPerformed(ActionEvent e)
    jButton1_actionPerformed(e);
    gridControl1.setLayout(xYLayout1);
    this.getContentPane().add(jPanel1, new XYConstraints(0, 0, 508, 284));
    jPanel1.add(gridControl1, null);
    this.getContentPane().add(jButton1, new XYConstraints(219, 268, -1, -1));
    /** manually typed this in **/
    gridControl1.setDataItemName("infobus:/oracle/sessionInfo3/rowSetInfo3");
    void jButton1_actionPerformed(ActionEvent e)
    Dialog1 myDialog = new Dialog1();
    myDialog.show();
    package package2;
    import javax.swing.*;
    import java.awt.Frame;
    import java.awt.BorderLayout;
    import oracle.jdeveloper.layout.*;
    import oracle.dacf.control.swing.*;
    import oracle.dacf.dataset.*;
    public class Dialog1 extends JDialog
    JPanel jPanel1 = new JPanel();
    XYLayout xYLayout1 = new XYLayout();
    TextFieldControl textFieldControl1 = new TextFieldControl();
    NavigationBar navigationBar1 = new NavigationBar();
    TextFieldControl textFieldControl2 = new TextFieldControl();
    public Dialog1(Frame parent, String title, boolean modal)
    super(parent, title, modal);
    try
    jbInit();
    pack();
    catch (Exception e)
    e.printStackTrace();
    public Dialog1()
    this(null, "", false);
    private void jbInit() throws Exception
    jPanel1.setLayout(xYLayout1);
    getContentPane().add(jPanel1);
    jPanel1.add(textFieldControl1, new XYConstraints(89, 125, 234, -1));
    jPanel1.add(navigationBar1, new XYConstraints(99, 314, -1, -1));
    jPanel1.add(textFieldControl2, new XYConstraints(89, 158, 236, -1));
    /** Manually typed the following in **/
    textFieldControl1.setDataItemName("infobus:/oracle/sessionInfo3/rowSetInfo3/ACTION_CODE");
    textFieldControl2.setDataItemName("infobus:/oracle/sessionInfo3/rowSetInfo3/ACTION_TEXT");
    navigationBar1.setDataItemName("infobus:/oracle/sessionInfo3/rowSetInfo3");
    null

  • How to update/refresh main panel's image displays inside subvi?

    Hi everyone,
    I have a image display control located in my main panel,  and I have a subvi which do some process works inside it.
    but what I have done inside the subvi can not be seen in the main panel.
    I used image session controls as the input/outpout nodes for subvi.
    If I use image display control as input node for subvi,
    I can see the realtime displays in the subvi's panel,
    but this is not waht I wanted.
    anyone have good idea?
    Solved!
    Go to Solution.

    Reall sorry, i have attached 8.6 version.
    Also, I think the answer of Andrey_Dmitriev is what you are looking for. I think I understand your problem now. My example updates the image only after subVI is executed.
    Regards,
    https://decibel.ni.com/content/blogs/kl3m3n
    "Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
    Attachments:
    mainVI_1.vi ‏36 KB
    mainVI_2.vi ‏36 KB
    subVI_sobel.vi ‏9 KB

  • Report Row With Detail (IFRAME) - How to reload Main Page within iFrame

    Hi,
    Based on Carl's example - Report Row With Detail (IFRAME), i.e:
    http://htmldb.oracle.com/pls/otn/f?p=11933:17
    Within my scenario, I have a button within the iframe section of my report that calls a pl/sql process that performs some database processing.
    What I basically need is a means of performing a page refresh of the main page, when this button within the iframe is pressed. In Carl's example, that would be page 17.
    As mentioned, I call a PL/SQL process within the iframe, but unsure how to then refresh the main page - parent page.
    Any help would be appreciated.
    Thanks.
    Tony.

    Tony,
    you could insert the following script to the region footer of a region located on your "iframe"-page.
    <script>
    parent.location.reload();
    </script>
    But this is dangerous because everytime the parent is being reloaded, the iframe is loaded, too. Risk of loop...
    A possible solution is to conditionally display a html region (with the script) on your iframe-page basing on a request. You could post the request as a result after your plsql processing in a branch.
    Regards,
    Jens

  • Tick removed from ticked box refreshes page?

    I have a ticked box in a form which is in an iframe and would
    like to know how i can get the iframe page to refresh when the tick
    is removed.
    it is possible?
    what i am trying to do is allow visitors to turn off the
    music which is playing in the iframe.
    i am using <object> tag to play the sound.
    thank you in advance for your help

    no thats not right is it....
    if i refresh it will still play!
    i need a mute button.
    gonna look around, if anyone has a suggestion let us know,
    thanks

  • Impossible to create a transparent background page to insert into an iframe

    Hi,
    I am trying to insert a page created in Muse inside another page by using an iframe in an HTML inclussion. I want it to be transparent so the background of the container page shows thru. The problem is Muse always gives a background color to any page it does, so the iframed page background is no transparent.
    My iframe code is:
    <iframe src="biografia2.html" width="630" height="566" seamless frameborder="0"></iframe>
    And the biografia2 page loads its corresponding CSS file that begins with:
    html
        background: #D9D9D9;
    If after exporting the site I remove these lines in the CSS file, the iframe appears transparent.
    This lines are generated because in the Muse editor, when nothing is selected, so you have the page properties in the toolbar, the last control is the colour of the background of the browser, but you can't set this colour to null, so the page always has a colour. I think this is a bug in Muse that should be corrected.
    Until then, the only solutions I can see are removing the mentioned lines manually after exporting the HTML or creating the iframed page without using Muse.

    Hello,
    In order to achieve this, you need to open your page biografia2.html in Muse and then Right Click and go to the Page properties.
    There in HTML for head section you need to insert the code :
    <style>
    body{
    background:transparent !important;
    </style>
    It will override the styling and the Background will be transparent for that page.
    Hope this helps.
    Regards,
    Sachin

  • IFrame jQuery slideshow causing page reformatting

    Due to the inadquacies of the Muse widgets I've been forced to purchase third party slideshow jQuery plugins from www.codecanyon.net and call them into Muse as iFrame pages via the Arbitrary HTML function.
    http://codecanyon.net/item/jquery-homepage-banner-slideshow-product-viewer/624759
    I have two iFrames calling this plugin on the page, one in the header as a general purpose slideshow and one further down the page as a product viewer.
    The problem is that I can have one or the other but not both. As soon as I try both the rest of the page content gets dramatically reconfigured (paragraph text and images where they are not supposed to be by quite a long distance) and only one of them shows up on the page.
    The iFrame pages are separate files, the iFrames have different names, and I've even assigned different div names to the containers in the iFrame HTML without luck. I would have thought that using iFrames would have insulated Muse from this sort of problem. What's going on?
    Sorry, I can't post the site link on a public forum but will happily share it with any Muse devs that want to try and solve this problem. If it can't be fixed I'm out a couple of grand from time already spent on this site and a lost client.

    Please send your .muse file, a link to your site, and a link to this thread to [email protected] and we'll see if we can sort it out. We might not be able to, as it could be the third party code that is causing problems. If your file is greater than 20MB you can use a service like Adobe SendNow or SendThisFile to send it. Thanks!

  • Error Script 5009 "Object" undefined in a Page with an iFrame IE9

    in some pages of my application (apex 4.0) i use an iframe to a google map.
    i use iframes because i want to use complex functionality in multiple pages of my apex app.
    this works finr in most browsers except ie9: the iFram page is not shown correct, in the console the error script 5009 object undefined in jquery-1.4.2.min.js, Line 21 Character 105
    is reported.
    mr google says that this is an known problem when loading jquery multiple times in one page for example if u use an iframe.
    my first idea was to disable the loading of the jqurey.js by removing the appropriate lines in the page template.
    but it seems to me, that lot of code is not part of the template, but is genereted by the apex engine for expample these lines can not be found in the page templates
    {<script type="text/javascript">var apex_img_dir = "/i/", htmldb_Img_Dir = apex_img_dir;</script>
    <script src="/i/libraries/jquery/1.4.2/jquery-1.4.2.min.js" type="text/javascript"></script>
    <script src="/i/javascript/apex_4_0.js" type="text/javascript"></script>
    <script src="/i/javascript/apex_legacy_4_0.js" type="text/javascript"></script>
    <script src="/i/javascript/apex_widget_4_0.js" type="text/javascript"></script>
    <script src="/i/javascript/apex_dynamic_actions_4_0.js" type="text/javascript"></script>
    any ideas how i can overcome the problem, except using another browser?
    merry xmas
    peter                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    push

Maybe you are looking for

  • Connecting Fax - PC

    Hello to the community! I want to get a fax machine that will keep the faxes at its memory and will then be able to send them to my PC. Is this possible? I'm thinking of some model like HP Officejet Pro 8600 e-All-in-One Printer - N911a. I tried to f

  • Differences between AIX and Windows for SAP

    Dear All, I have a problem regarding SAP Software.We want to change our company software .First we order SAP On Windows with Oracle10g But Now We want SAP on AIX with Oracle10g. SAP delivered us software on Windows platform. Please Suggest me for thi

  • Changing EPT Name

    If you change the name to an existing EPT does that impact any of the projects that were created using that EPT under its original name? Can it affect anything else on the system?

  • Bonjour broken on one of my machines

    One of my machines, bonjour sometimes has problems - ie. I cannot see other bonjour devices on the local network. If I check on another machine, I can see the bonjour devices. The problem always appears on one machine. Bonjour will work for about a w

  • Can i fill in and save downloaded fillable pdf files???

    Does anyone know if I can fill in and save pdf forms that were downloaded from the internet without owning Adobe Acrobat 7.0??? I used to have Acrobat 5.0 on my Windows based system - however on the MAC system I have not installed the Acrobat softwar