Iframes show and hide

Hi All,
I have the Requirement like :
I have two iframes side by side in a page, and two buttons show and hide,
once i click hide button second iframe should disappear and first one should be increase in size to fit whole window. and once i click show first and second should be 50/50 in the page
for this i followed below steps
1) created page.
2) created two report region (No Template)
3) In one region source i called iframe like
TABLE>
<TR>
<td>
<IFRAME SRC="http://Localhost:7777/pls/apex/f?p=&APP_ID.:&P104_INTERFACE.:&SESSION." WIDTH=&P104_WIDTH. HEIGHT=540 scrolling="auto" frameborder="1"></IFRAME>
</td>
</tr>
</table>
4) in second region
TABLE>
<TR>
<td>
<IFRAME SRC="www.google.com ; HEIGHT=540 scrolling="auto" frameborder="1"></IFRAME>
</td>
</tr>
</table>
6)conditionally showing the region with the help of SHOW and HIDE BUTTON
7)and also on Show and hide button i am setting the value of P104_WIDTH . So the size will vary with conditional display?
NOW MY QUESTION IS:
once i click hide button THE CONTENTS(item VALUES) OF THE FIRST FRAME ARE REFRESHED, DUE THAT ALL ENTERED DATA WIL DISAPPEAR SO HOW TO AVOID IT , without refreshing the frist frame i need to set the P104_width value so it interm width will set in the iframe region??????
Thanks & Regards
Nagaraj B K

I had another idea that I am pursuing. I am looking into extending the current renderer CommandNavigationRenderer and will render another goLink just after the current goLink that will execute a close action. I was able to re-direct the rendering by added an override render-kit block in my current faces-config.xml file.
<render-kit>
<renderer>
<component-family>org.apache.myfaces.trinidad.Command</component-family>
<renderer-type>oracle.adf.rich.NavigationItem</renderer-type>
<renderer-class>com.riscs.ui.backing.jsp.components.ClosableCommandNavigationItemRenderer</renderer-class>
</renderer>
</render-kit>
If this works I am planning on extending the commandNavigationItem by creating a ClosableCommandNavigation tag and add a "closeAction" tag that will determine if a close item should render.
Preliminary work looks promising. I will update if I make progress...please let me know if I am crazy.
Thanks.

Similar Messages

  • Show and hide columns.

    I have a rather large JTable with a lot of columns that are updated once in a while.
    Is there an easy way to show and hide columns, so that I don't have to keep track on which a shown and hide when I use setValueAt()...?

    JTable does the conversion between the column indexes of the view and the model.
    You should be able to add remove columns using addColumn and removeColumn methods. and in the TableColumn class you can specify the coulmn in the model that the TableColumn refers to.

  • Show and hide Lov icons and Date Picker image on conditional?

    How to show and hide Lov icons and Date Picker image on conditional?

    Why do you just want to make the icons conditional? Shouldn't the field also be conditional?
    Patrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

  • Error in my show and hide button prg

    Hello Frnds,
    With this link tutorial iam doing now but error raised , and tried my best plz check the tutorial and solve my prb
    Method ONACTIONSHOW_HIDE
    *THIS IS CODE FOR SHOW AND HIDE THE INPUT FIED BUT GETTING ERROR IS
    **set_attribute_property doesnot exit similar ly get_attribute_property and set attribute is there like that getting error for this code
    . DATA lo_nd_radio_node1 TYPE REF TO if_wd_context_node.
    DATA lo_el_radio_node1 TYPE REF TO if_wd_context_element.
    DATA lw_index TYPE I.
    DATA lo_el_radio_node1_1 TYPE ref to if_wd_context_element.
    navigate from <CONTEXT> to <RADIO_NODE1> via lead selection
    lo_nd_radio_node1 = wd_context->get_child_node( name = wd_this->wdctx_radio_node1 ).* call method get lead selection index to get index
    CALL METHOD lo_nd_radio_node1->get_lead_selection_index
    receiving
    index = lw_index. lo_el_radio_node1_1 = wd_context->get_element( ). If lw_index = 1. * call method set attribute property and pass value as 'X' to show
    call method lo_el_radio_node1_1->set_attribute_property
    exporting
    attribute_name = 'FIRST_NAME_1'
    property = 1
    value = 'X'.
    call method set attribute property and pass value as 'X' to show
    call method lo_el_radio_node1_1->set_attribute_property
    exporting
    attribute_name = 'LAST_NAME_1'
    property = 1
    value = 'X'. Else. call method set attribute property and pass value as SPACE to HIDE*
    call method lo_el_radio_node1_1->set_attribute_property
    exporting
    attribute_name = 'FIRST_NAME_1'
    property = 1
    value = space.* call method set attribute property and pass value as SPACE to HIDE
    call method lo_el_radio_node1_1->set_attribute_property
    exporting
    attribute_name = 'LAST_NAME_1'
    property = 1
    value = space. Endif

    Hi Ananth,
    I tried the same code from that tutorial,its working fine.
    once again check the name of the nodes and the elements.
    you can try another way also to show and hide input fields.
    create one attibute of type WDY_BOOLEAN and bind this attribute to the visible property of the input fields.
    for example
    attibute name = 'visible ' : type = wdy_boolean :default value = X
    onaction of the radio button place the following code.it really works
      DATA lo_el_context TYPE REF TO if_wd_context_element.
      DATA ls_context TYPE wd_this->element_context.
      DATA lv_visible TYPE wd_this->element_context-visible.
      DATA lo_nd_radio_node1   TYPE REF TO if_wd_context_node.
      DATA lo_el_radio_node1   TYPE REF TO if_wd_context_element.
      DATA lw_index            TYPE i.
      DATA lo_el_radio_node1_1 TYPE REF TO if_wd_context_element.
      lo_nd_radio_node1 = wd_context->get_child_node( name = wd_this->wdctx_radio_node1 ).
      lo_el_context = wd_context->get_element( ).
      CALL METHOD lo_nd_radio_node1->get_lead_selection_index
        RECEIVING
          index = lw_index.
      lo_el_radio_node1_1 = wd_context->get_element(  ).
      IF lw_index = 1.
        lo_el_context->set_attribute(
      name =  `VISIBLE`
      value = 'X' ).
      ELSE.
        lo_el_context->set_attribute(
      name =  `VISIBLE`
      value = ' ' ).
      ENDIF.
    Thanks,
    krishna

  • SetVisible against show and hide

    Hello, making some practises I have observed that setVisible method doesn't just makes visible or not, it affects me when I change location of components I have played with setVisible, but when I use deprecated methods hide and show I haven't that problem.
    What else makes setVisible than make visible or not?

    Hello, the way I see it, setVisible is just a nicer way of setting visibility than show() and hide(). Anyway, the way setVisible is implemented in the Component class is :
    public void setVisible(boolean b) {
          show(b);
    }So I don't believe you should be experiencing any difference between show() and setVisible(). As to the change in positions of components, you might find the actual implementation useful:
        public void show(boolean b) {
            if (b) {
                show();
            } else {
                hide();
        public void show() {
            if (!visible) {
                synchronized (getTreeLock()) {
                    visible = true;
                    ComponentPeer peer = this.peer;
                    if (peer != null) {
                        peer.show();
                        createHierarchyEvents(HierarchyEvent.HIERARCHY_CHANGED,
                                              this, parent,
                                              HierarchyEvent.SHOWING_CHANGED,
                                              Toolkit.enabledOnToolkit(AWTEvent.HIERARCHY_EVENT_MASK));
                        if (peer instanceof LightweightPeer) {
                            repaint();
                        updateCursorImmediately();
                    if (componentListener != null ||
                        (eventMask & AWTEvent.COMPONENT_EVENT_MASK) != 0 ||
                        Toolkit.enabledOnToolkit(AWTEvent.COMPONENT_EVENT_MASK)) {
                        ComponentEvent e = new ComponentEvent(this,
                                                              ComponentEvent.COMPONENT_SHOWN);
                        Toolkit.getEventQueue().postEvent(e);
                Container parent = this.parent;
                if (parent != null) {
                    parent.invalidate();
        }I left out the hide() code, since it is quite similar. Anyway, if you are interested in this code you can always look it up - it's avaliable.
    Hope this helped, laginimaineb.

  • Show and Hide Actions Not Working

    I'm working on a project that involves showing and hiding objects.  I inserted a button and in the Action block for the object, I selected 'Show', then selected the object I wanted to be shown on click. When I preview that screen in the project and select the button to show the object, it shows the object, but then advances the project to the next screen. The only way I've found to combat this apparent flaw is to use an advanced action for what should be a really simple interaction. Also, I have the timing set for all objects on the screen in question to Display for the rest of the slide. Is anyone else experiencing this issue?

    Have a look at: Why choose Standard over Simple action? - Captivate blog
    As Rick points out, Captivate has always worked that way. And since you are talking about Hide/Show, very often you'll want to hide a group before showing one object. If  you are using Captivate 7/8 I recommend to create a shared action for that purpose that you can use over and over again in that project and in other projects.
    Dare to Share - part 1 - Captivate blog
    Reuse Shared Actions in other Projects - Captivate 7 vs. 8 - Captivate blog

  • JFileChooser show and hide

    I am using a jFileChooser to save a file in a selected location and then I use a check if the file exist to prompt an overwrite option dialog box. I do this like so....
    fileChooser.showSaveDialog(jPanel1);      
    File file = new File(fileChooser.getCurrentDirectory()+"/"+fileChooser.getName(fileChooser.getSelectedFile()) + ".jpg");
    filename = file.getPath();
    if (new File(filename).exists()) {   
            int n = JOptionPane.showConfirmDialog(this,
            "Do you want to overwrite?", "File Overwrite",
            JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE);
            if (n == JOptionPane.NO_OPTION)
                    showme(flag);          
    }The question I have is, Upon entering a filename and location in the file chooser and clicking the save button the filechooser goes away, if that file already exist the JOptionPane shows and a choice can be made, I want the JOptionPane to prompt over top of the file chooser. Right now when clicking save the fileChooser goes away, then an overwrite option can be made, if it is no the savedialog reappears, Does anyone know how to keep the filechooser shown until a file save of a non-existing file is chosen or a no overwrite option i sshown.
    BASICALLY: Does anyone know how to keep the filechooser component shown even when a optionPane component is shown? I don't want it to show and reshow.

    Why do you just want to make the icons conditional? Shouldn't the field also be conditional?
    Patrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

  • Xcode-Show and Hide windows with checkbox?

    I am making an applescript/cocoa application in Xcode 4.6. I in my Main Window, I have two windows that are hidden at launch ("Preferances", and "Advanced") and one window ("Simple") that is visible at launch. In the preferances window, I have a checkbox. I would like that box, when checked to display the "Simple" window, and Hide the "Advanced" window, and even when closed and relaunched, will remain how the preferances are, and not have to check the box everytime on startup of the app. Anyone know how to do this? Thanks!

    Ok something isn't quit right
    I in my Main Window, I have two windows that are hidden at launch ("Preferances", and "Advanced") and one window ("Simple") that is visible at launch. In the preferances window, I have a checkbox. I would like that box, when checked to display the "Simple" window, and Hide the "Advanced" window,
    What do you mean by in the main window are two windows?  Also if the checkbox is in the preferences window and that is hidden at launch how do you get to it to check/uncheck it?
    This checkbox basically toggles between the two windows? selected it displays the 'simple' window, when unchecked it displays the "Advanced" window?
    This script
    script AppDelegate
      property parent : class "NSObject"
        property ppw : missing value
        property isShowing : 0
              on applicationWillFinishLaunching_(aNotification)
      -- Insert code here to initialize your application before any files are opened
              end applicationWillFinishLaunching_
              on applicationShouldTerminate_(sender)
      -- Insert code here to do any housekeeping before your application quits
                        return current application's NSTerminateNow
              end applicationShouldTerminate_
        on displayButton_(sender)
            if (isShowing = 0) then
                ppw's orderFront_(sender)
                set isShowing to 1
            else
                ppw's orderOut_(sender)
                set isShowing to 0
            end
        end
    end script
    will toggle a second window from a button on the firsst window.
    This is what the nib file looks like
    ppw is attached to the panel.
    This should get you started. Post back if you have more questions.

  • Show and hide events in a dashboard widget

    These two functions never seem to fire off. If the widget is hidden the hide function doesnt run and the show function only runs on the insitial load.
    My problem here is that i am running a setinterval to perform a task every 30 seconds while visible and when the dashboard closes and the widget is hidden the timer still runs. I'd like it to stop and only start again when the widget shows, any ideas?

    I would use visible and includeInLayout properties
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • Dynamically show and hide detail columns according to master column value

    i want to create a page where 2 level master detail.
    that is main master region with search option for query (query region)
    2nd detail with table
    and 3rd detail. (1-2-3)
    Here in 3rd detail region, some fields should be shown and some fields hide according to the value of one filed in 2nd detail table(for the current selected row).
    please advice
    or
    please point me to any similar posts

    Zam,
    show/hide is only beneficial if its optioanl for user to hide or show the fields at your detail region.If it is not , you will have to use PPR and transient VO approach.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to make a button show AND hide a field?

    In an interactive form (with Adobe Acrobat X Pro), how can I purpose one button to:
    1.) Show a field when clicked the first time
    2.) Hide a field when clicked a second time
    I seem to only be able to make a button do one or the other, but not both with the same button. Maybe an easier way to say this is I want to be able to have one button turn a field "on" and "off".
    Any help would be GREATLY appreciated. Thanks! 

    Use this code:
    var f = this.getField("OtherFieldName");
    if (f.display==display.visible) f.display = display.hidden;
    else f.display=display.visible;

  • How to show and hide plots which are stacked and plotted on the one graph?

    I am currently designing a Logic Analyser with 8 channels. These are plotted on a graph, stacked on top of each other. The user is able to select which plots he/she wishes to examine (i.e 1,4,6). I need to figure out how to hide the plots not required and show the plots needed.

    Hi,
    Did u say stacked?? then you must be using a chart not a graph
    Nevertheless, as Unclebump has suggested, here is a Vi to give you an idea on how to use active plot and visible property nodes
    Build on it to hide/show plots
    Regards
    Dev
    Message Edited by devchander on 01-24-2006 06:09 AM
    Attachments:
    plot.vi ‏176 KB

  • DYNAMICALLY SHOW AND HIDE OF PORTLETS

    I am developing some application using Portal application(forms,reports,menu).
    I have 3 portlets in a Page. Each portet has a Form,Report.
    The requirement is I wanted to hide and show a Portlet
    dynamically based on session parameter.
    For example : I have a form on top of the page and report output below it,
    that report contains a link for every row.
    By clicking on the link a stored procedure is invoeked
    that gets the rowid as IN parameter. This stored
    procedure should do a database operation and set some
    session parameters based on the rowid it retrieved and
    redirect to the same page.
    Something like:
    l_sess_store := portal30.wwsto_api_session.load_session(
    p_domain => 'PORTAL30',
    p_sub_domain => 'TEST'
    l_sess_store.set_attribute(
    p_name => 'l_rowid',
    p_value => l_rowid
    l_sess_store.save_session;
    portal30.wwv_redirect.url('http://host:port/servlet/page?_pageid=123&_dad=portal&_schema=PORTAL')
    Now this page has to show an additional portlet when the
    session parameter set by the stored procedure contains a
    certain value.
    How can I achieve this?
    Thanks, tobi

    Hi
    Question 1: Go to edit the tab and use the conditional display settings.
    Question 2: Go to the page template that you are using and edit Standard Tab Attributes.
    Cheers
    Ben

  • Mail and Smart Folders losing column show and hide settings - a fix?

    Lately I switched my mail to be hosted by google and so in order for my in and out boxes to contain my current and older messages, I have each set as Smart Folders. It's this difference that I think might be making this bug worse.
    Previous to this change I'd noticed Mail forgets which columns I have shown and what order they're in between quitting and relaunching.. but now with the smart folders, the column settings will be lost when I'm merely not paying attention to Mail (when it's hidden or in the background).
    This is particularly irritating since I always use Mail with two view windows, one showing my inbox and the other showing my sent messages. What seems to be happening most is that if I have my inbox showing From and To, that setting will bleed over to the sent window.. showing me that all my sent messages are, of course, From me. I hide that column and later on it comes back by itself. Either that, or I hide the From column in Sent and later on I lose the From column in the Inbox.

    Hobyx,
    Wow this thread really is a little stale. Sorry about that. What it sounds like to me is the preferences file is going bad, you could try removing com.apple.mail.plist. Found in Macintosh HD -> Users -> YOUR USERS -> Library -> Preferences. Please note that you will have to add your Gmail account back in. But any emails/smart folders on your Mac wont be removed by deleting that plist.
    Also On the Gmail side you will get significant better results if you select the corresponding folder in your gmail account 'Found in the sidebar' and select Mailbox -> Use this Mailbox for -> and select what your using for. Whilst using the imap setup.
    Hope that helps,
    Weston

  • How can I show and hide an image or a decoration on the front panel during execution of the vi?

    Hello,
    I've made a user interface with a little grafic description.
    That description should change depending on user actions, e.g. if the user switches a button, some lines should disappear and some other lines should appear.
    I thought some decorations could be shown and hidden via something like a property node, but that is not possible. Images can also not be hidden during execution of the program.
    Is there any posibility to change a grafic user interface?
    Johannes
    LV 7.1
    Greetings Johannes
    Using LabVIEW 7.1 and 2009 recently
    Attachments:
    LV_Grafic.JPG ‏21 KB

    Thanks to Tim for drawing what I suggested as option while I had some real work to do.
    There is a trick of overcoming the index problem that was presented/devloped in the forum in the last month's: 
    You can place the decoration inside a cluster, so you can use the lable of the cluster to adress the decoration you want. The data type of the cluster doesn't mather for this, so you will hide the control/indicator. And you colour the cluster transparent (hint: right click with the coloring tool and use space to toggle). 
    Felix 
    www.aescusoft.de
    My latest community nugget on producer/consumer design
    My current blog: A journey through uml

Maybe you are looking for

  • Why does the light iphone cable say it ain't certified when it is

    i just been using the iphone 5s. All of the sudden the my phone says ' this cable or accessory insn't certified with this phone' with it's original charger. I tried to olug the same cable into my ipad and it works. I tried pluggin the ipad cable into

  • How can I cancel a query?

    If a query run too long time,I need to cancel it.However, even if I force user logout,the query is still runing.How can I do?

  • Using Runtime.Exec() on a JSP page

    I need to run a command on a JSP page. The source code is: <%@ page contentType="text/html;charset=WINDOWS-1252"%> <%!class StreamGobbler extends Thread InputStream is; String type; StreamGobbler(InputStream is, String type) this.is = is; this.type =

  • Sorting songs order in a playlist

    Hi I can't drag and drop songs to set the order of the tracks inside the playlist Shuffle button is turned of Thanks

  • Variable Substituition throwing an error for empty payload

    Hi All, I am using variable substituition in the receiver file adapter... Everything is working fine and the variable substituion is working and creating a file whenever the payload in the mapping has the filenode field for variable substituition. No