Scale popup according to the content

Hi,
I am generating a popup thru actionscipt:
myTW = mx.managers.PopUpManager.createPopUp(_root,
mx.containers.Window, false, {closeButton: true, title:
_root.reqmessage1, _width: 610, _height: 232, _x: 120, _y: 240,
color:
16711680,contentPath:radioButtonArray[_loc2].object.bkimage});
where,
bkimage represents any img/swf which comes from an xml file.
Now, i have already specified the width& height in the
properties. But, when the image is bigger or smaller, i would like
to have the popup scale itself accordingly. What changes do i make
to the script? pls help.

Hi wilhelm,
You can do the following.
1) Create your popup as desired in jsf fragment with a dialog box .
2) Bind the popup with the backing bean.
3) Now on valueChangeEvent of selectOneChoice you can write a method in the backing bean.
4) Check the newValue in valueChangeEvent and according to value, call the appropriate popup that you need to show.
For example , code in jsff+
*<af:popup id="p2"*
*binding="#{backingBeanScope.referenceDataBean.startDatePopUp}">*+
+*<af:dialog id="d2" type="yesNo"*+
+*title="#{nl_svb_view_referencedataBundle.CONFIRM}"*+
+*dialogListener="#{backingBeanScope.referenceDataBean.goToConfirmDialogListener}">*+
+*<af:outputText value="#{nl_svb_view_referencedataBundle.Expansion_service}"*+
+*id="ot2"/>*+
+*</af:dialog>*+
+*</af:popup>*+
+_Code inside valueChangeEvent_+
*RichPopup.PopupHints ph = new RichPopup.PopupHints();*
*startDatePopUp.show(ph);*
Hope this answers your question.
Regards,
Tarun

Similar Messages

  • Make iframe automatically adjust height according to the contents without using scrollbar?

    Hello, 
    I am developing the site (www.meninasreais.com.br) and have a doubt. I created the base html - menu, header - in Adobe Muse. I'm trying to insert an iframe that automatically adjust the height according to the content of the blog.
    I tried with various codes, the frame is installed on the same domain as the site and none of them worked. What can I be doing wrong? Thank you.
    The code that was inserted below:
    <script language="JavaScript">
    <!--
    function autoResize(id){
        var newheight;
        var newwidth;
        if(document.getElementById){
            newheight=document.getElementById(id).contentWindow.document .body.scrollHeight;
            newwidth=document.getElementById(id).contentWindow.document .body.scrollWidth;
        document.getElementById(id).height= (newheight) + "px";
        document.getElementById(id).width= (newwidth) + "px";
    //-->
    </script>
    <IFRAME SRC="www.meninasreais.com.br" width="600px" height="200px" id="iframe1" marginheight="0" frameborder="0"onLoad="autoResize('iframe1');"></iframe>

    Hi, i've successully done this for my blogging engine.
    I've uses jquery.autoheight.js
    In my page property :
    <script type="text/javascript" src="http://www.solutionsip.ca/lib/js/jquery.js"></script>
    <script type="text/javascript" src="http://www.solutionsip.ca/lib/js/jquery.autoheight.js"></script>
    In my html box :
    <iframe id="myframe" name="myframe" class="autoHeight" width="100%" scrolling="no" marginheight="0" frameborder="0" src="http://www.solutionsip.ca/blog"></iframe>
    This work in Adobe muse. My iframe adjust it self with my blog content.
    Exemple : http://www.solutionsip.ca/blog.html

  • Make iframe Webcenter 11.1.1.5 automatically adjust height according to the content

    Hi All,
    Anyone can help me how to make Iframe (application page template) webcenter portal automatically adjust height according to the content?
    Thanks in advance..

    Hi, i've successully done this for my blogging engine.
    I've uses jquery.autoheight.js
    In my page property :
    <script type="text/javascript" src="http://www.solutionsip.ca/lib/js/jquery.js"></script>
    <script type="text/javascript" src="http://www.solutionsip.ca/lib/js/jquery.autoheight.js"></script>
    In my html box :
    <iframe id="myframe" name="myframe" class="autoHeight" width="100%" scrolling="no" marginheight="0" frameborder="0" src="http://www.solutionsip.ca/blog"></iframe>
    This work in Adobe muse. My iframe adjust it self with my blog content.
    Exemple : http://www.solutionsip.ca/blog.html

  • Assign to item a list of value according to the contents of other fields...

    Let me explain, I have two items in my page, the first is not required, if it is null the second field is a value list based on selection A (select from A. .. A. .. where . A..) but if the field is not null then the list of values of the second field is based on the selection B (Select B from B where B. ..).
    I create a dynamic action on the event "change" of my first field,  on the "true action" I tried this:
    declare
      vva_ternum Varchar2 (3): = null;
    Begin
      APEX_ITEM.SELECT_LIST_FROM_LOV (2, : P26_TERNUM, 'LOV_RSPRODUIT_TERRITOIRE');
    End;
    But it does not work!!
    do you have a suggestion?

    Him this is my LOV :
    IF Trim(:P26_TERNUM) IS NOT NULL THEN
    RETURN
       'SELECT Initcap(Trim(P.PRODSC)) || '' -  ''|| Trim(P.PRONUM) AS dv , ' ||
       'T.PRONUM '  ||
       'FROM RSETABL_PRODUIT T ' ||
       'INNER JOIN RSPRODUIT P ON T.PRONUM = P.PRONUM ' ||
       'WHERE T.TERNUM = :P26_TERNUM ' ||
       'ORDER BY 1'; 
    ELSE
      RETURN
       'SELECT Initcap(Trim(PRODSC)) || '' - '' || Trim(PRONUM) AS dv , ' ||
       'PRONUM '  ||
       'FROM RSPRODUIT' ;
    END IF;
    This is my properties of my second field
    List of Values
    Named LOV
       TEST_PRODUIT
    Display Extra Values
      No
    Display Null Value
      No
    Cascading LOV Parent Item(s)
    P26_TERNUM
    Page Items to Submit
    Optimize Refresh
      Yes
    Editor Setting: Textarea - HTML/XML - Javascript - PL/SQL 
    List of values definition
    IF Trim(:P26_TERNUM) IS NOT NULL THEN
    RETURN
       'SELECT Initcap(Trim(P.PRODSC)) || '' - ''|| Trim(P.PRONUM) AS dv , ' ||
       'T.PRONUM '  ||
       'FROM RSETABL_PRODUIT T ' ||
       'INNER JOIN RSPRODUIT P ON T.PRONUM = P.PRONUM ' ||
       'WHERE T.TERNUM = :P26_TERNUM ' ||
       'ORDER BY 1';
    ELSE
      RETURN
       'SELECT Initcap(Trim(PRODSC)) || '' - '' || Trim(PRONUM) AS dv , ' ||
       'PRONUM '  ||
       'FROM RSPRODUIT' ;
    END IF;
    Create or edit static List of ValuesCreate Dynamic List of Values

  • How to scale the content along with child elements?

    By default I need my application size to be compatible with 1280x800 resolution; and if the application is viewed at a bigger resolution, only the background needs to be stretched, therefore I have to hardcode canvas size and set background in percentage. Till now it is alright, but when the application is viewed at a smaller resolution or with window size scaled down, the application content should also scale along.
    So, any clues on scaling down the content [along with child contents]? mind you, it has background images so must be scaled with proper aspect ratio.
    Thanks for any help.
    Siraj Khan
    [email protected]

    Thank you for the tip... this solves my problem partially. Now I am working on to scale the inner content of canvas --- on resize. Since there are elements like buttons and images, i can not define them in percentage, so i need to first check what exactly is the percentage of reduced canvas, and then accordingly i'll have to apply that percent on the inner elements. Any other better idea? as i see this only as a work around, not a proper solution.
    Anyway thanks again for the help.
    -Siraj

  • How to get the button scale/position according to background?

    Hi
    My problem is that when I scale the browser window bigger the "facebok" button scales correctly according to background, but when I make the browser window smaller the button just stays in place...
    You can see it here: www.tihemetsamoto.ee just scale the browser window
    What should I do with the button?
    Best wishes
    Kristina

    Hey Elaine
    Thanks for your response I did a facebook button myself so it would fit with background (it's an image, which I made into a button) It right on the left side of the motorcycle on the ground on the main page
    Kristina

  • Script logic : determine the content of a variable according to a IF test

    Hello experts,
    I have the following need in a script logic
    determine the content of a variable according to a IF test
    For example I tried :
    *WHEN %ENTITY%
    *IS "CH20","CH30","ES10"
    *SELECT(%ENTITYPBPD%, "[ID]", "ENTITYCC", "[ID] = '%ENTITYCC_SET%_PBPD'")
    *ENDWHEN
    Syntax is correct but I get a query execution error (Error in WHEN/ENDWHEN structure)
    I guess it's because this when don't have any REC instructions.
    In other words, if the user selection at the package prompt step are CH20, CH30 or ES10
    the variable has to be selection_PBPD
    if another member is selected
    the variable has to take other value
    Hope I've made my need clear, and thanks in advance.
    G.

    Hi G,
    Will the *TEST_WHEN() statement work for this case?
    The way that it works is that if the condition evaluates to TRUE, then the subsequent WHEN...ENDWHEN is processed, else it is not.
    Have a look at Page 66 of "How To Use BPC Scripting Logic, Version 1.00, April 21, 2006" (It's a bit old but I use it a lot on our MS7.0 SP9 installation).
    Hope this helps.
    Regards
    Nick

  • Sort the content in KM folder according to date modified

    Hi,
    I have a KM folder which has around 80 documents. The content order is all jumbled. I tried both Manual Ordering and Disabled Manual Ordering. I want to sort it according to the Modified Date. Is this possible?
    If so, could you please let me know.
    Thanks,
    Ajay

    Hi,
    I have listed the info you have asked for:
    In System Admin -> System Config -> KM -> CM -> UI -> Settings -> Layout Set:
    Layout Set Name: JupPoliciesAndProcedures
    Show write-protect notice: Unchecked
    Description: Layout set for the consumer standard explorer
    Enabled for presentation settings: checked
    Screen Reader enabled: checked
    Fallback Layout Set for Screen Reader: Not set
    Layout Controller: SimpletLayoutController
    Collection Renderer: JupDocuments_And_Forms_NODATE
    Resource Renderer: ConsumerResourceRenderer
    Commands for the details menu: DetailsGroup
    In System Admin -> System Config -> KM -> CM -> UI -> Settings -> Collection Renderer Settings:
    Name: JupDocuments_And_Forms_NODATE
    Description: The consumer collection renderer
    Flavor: Not set
    Components: left blank...
    Base Settings: Not set
    Breadcrumb Style: horizontal
    Width Adjustment Mode: stretch
    Height Adjustment Mode: left blank...
    Mass Actions Style: off
    Style for Info Used in Empty Collection: message
    Mass Command Group: DetailsGroup
    Bundle File for Empty Collection: left blank...
    Key for Info Used in Empty Collection: left blank...
    Collection Renderer: JupSubmissions
    Breadcrumb Visibility Style: left blank...
    Collection Command Group: Not set
    Command Style for Root: off
    Show Folder Name: No
    Displayed Properties: rnd:icon,rnd:displayname(contentLink),rnd:description,jup:DetailsColumn Header Coloring: Table Title Color
    Number of Rows: 30
    Row Spacing: 2 px
    Row Spacing Mode: standard
    Row Background Style: ALTERNATING
    Number of Columns: 1
    Column Spacing: left blank...
    Column Spacing Mode: standard
    Resource List Filter: Not set
    Extensions to be Filtered: left blank...
    Mime Types to be Filtered : left blank...
    Resource Types to be Filtered: left blank...
    Show Hidden Resources: No
    Folders Selection: all
    Files Selection: all
    Links Selection: all
    Property for Sorting: rnd:displayname
    Sorting Mode: ascending
    Item Selection Mode: off
    Background Image Path: left blank...
    Background Image Style: left blank...
    Max. Links for Page Browser: left blank...
    Sort Enabled: checked
    Column Ordering Mode: left blank...
    In System Admin -> System Config -> KM -> CM -> UI -> Settings -> Resource Renderer Settings:
    Name: ConsumerResourceRenderer
    Description: The consumer resource renderer
    Flavor: Not set
    Base Settings: Not set
    Resource Renderer: ResourceRenderer
    Icon Width: left blank...
    Icon Height: left blank...
    Icon Setting: left blank...
    Image Width: left blank...
    Image Height: left blank...
    Image Setting: left blank...
    Entry Height: left blank...
    Entry Width: left blank...
    Folder Image Path: left blank...
    File Image Path: left blank...
    Link Image Path: left blank...
    Primary Text Style: left blank...
    Secondary Text Style: left blank...
    Highlighted Text Style: left blank...
    Tooltip Setting: left blank...
    Show Resource Properties: left blank...
    Child Folders' Style: off
    Max Number of Child Folders: left blank...
    Child Folder Delimiter: left blank...
    Mode for Child Count: left blank...
    Visible Properties: rnd:iconrnd:displayname(contentLink)rnd:action,rnd:description
    Target Window Type: left blank...
    Target Window Name: left blank...
    Command Display: hover
    Resource Command Group: DefaultResourceCommandGroup
    Folder Command Group: DefaultResourceCommandGroup
    Link Command Group: DefaultResourceCommandGroup
    Please do let me know if you need any other details.
    Thanks,
    Ajay

  • Is it possible to scale a text box by % but also transform the contents?

    Is it possible to scale a text box by % but also transform the contents?
    Object > Transform > Scale only transforms the box.
    Grabbing and dragging a corner while holding shift/ctrl is not accurate enough.
    Thanks

    Object > Transform > Scale only transforms the box.
    Object -> Transform -> Scale of 200% when applied to a text frame full of text works here: frame doubles in size, text doubles in font size.  (CS5.5. and CS6 on Win7)  It works on images, too.
    In fact, I almost can't reproduce the behavior you report at all. The exception is this: If in CS5.5. I fill a frame with text, and then select the frame with the Direct Select tool (the white arrow) and use Object -> Transform -> Scale, then just the frame changes in size, and the text doesn't change. When you select the frame, which selection tool are you using?

  • My sons Iphone5 is not eligible for content filter according to the website. Can I do something to make it "eligible"?

    My sons Iphone5 is not eligible for content filter according to the website. Can I do something to make it "eligible"?

        We certainly know how important it is to manage content filtering on wireless devices deckhand. I'm happy to advise that the iPhone has built in restriction options. On the device, simply go to Settings > General > Restrictions. Here you can enable restrictions on certain device function. I hope this helps.
    Thank you…
    ArnettH_VZW
    Follow us on Twitter @VZWSupport

  • How can i make the popup window have scroll bar when the content is long?

    Hi,
    My page have a button, when click it, it will show a popup window, and invoke a taskflow.
    <af:commandToolbarButton text="edit"
                                             icon="#{sdk_EmImageMap.toolbar.editCommand.icon[true]}"
                                             disabledIcon="#{sdk_EmImageMap.toolbar.editCommand.icon[false]}"
                                             id="edit"
                                             binding="#{pageFlowScope.procBean.editBtn}"
                                             action="dialog:edit" immediate="true"
                                             partialSubmit="true" useWindow="true"
                                             windowEmbedStyle="inlineDocument"
                                             windowHeight="400" windowWidth="750">
    And the page in the taskflow is :
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:c="http://java.sun.com/jsp/jstl/core"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
       <jsp:directive.page contentType="text/html;charset=UTF-8"/>
       <f:view>
          <af:document title="#{pageFlowScope.procStepEditor.pageTitle}"
                       id="document">
             <af:form id="f1">
                <af:panelStretchLayout id="pgl1" topHeight="10%">
                   <f:facet name="top"/>
                   <f:facet name="center">
                      <af:panelStretchLayout id="psl1">
                         <f:facet name="center">
                            <af:panelGridLayout id="pgl3">
                               <af:gridRow marginTop="5px" height="auto" id="gr1">
                                  <af:gridCell marginStart="5px" marginEnd="5px"
                                               width="100%" halign="stretch"
                                               valign="stretch" id="gc1">
                                     <af:panelBox text="panel 1"
                                                  id="pb1"
                                     </af:panelBox>
                                  </af:gridCell>
                               </af:gridRow>
                               <af:gridRow marginTop="5px" height="auto" id="gr2">
                                  <af:gridCell marginStart="5px" marginEnd="5px"
                                               width="100%" halign="stretch"
                                               valign="stretch" id="gc2">
                                     <af:panelBox text="panel 2"
                                                  id="pb2">
                                     </af:panelBox>
                                  </af:gridCell>
                               </af:gridRow>
                               <af:gridRow marginTop="5px" height="auto" id="gr3">
                                  <af:gridCell marginStart="5px" marginEnd="5px"
                                               width="100%" halign="stretch"
                                               valign="stretch" id="gc4">
                                     <af:panelBox text="panel 3"
                                                  id="pb3">
                                     </af:panelBox>
                                  </af:gridCell>
                               </af:gridRow>
                            </af:panelGridLayout>
                         </f:facet>
                         <f:facet name="bottom">
                         </f:facet>
                      </af:panelStretchLayout>
                   </f:facet>
                </af:panelStretchLayout>
             </af:form>
          </af:document>
       </f:view>
    </jsp:root>
    And in panel 2, the content is added dynamically, so it cannot control the width. Once it is very long, then the UI will not show all the data in panel2, and panel 3 also cannot display.
    So i want to the window have a scroll bar. How can i do this?
    Thanks.

    Hi Timo.
    Thanks for your replies.
    I change the panel 2 like this:
    <af:gridRow marginTop="5px" height="auto" id="gr2">
                                  <af:gridCell marginStart="5px" marginEnd="5px"
                                               width="100%" halign="stretch"
                                               valign="stretch" id="gc2">
                                     <af:panelBox text="panel 2"
                                                  id="pb2">
    <af:panelGroupLayout id="pgl4" layout="scroll>
    </af:panelGroupLayout>
                                     </af:panelBox>
                                  </af:gridCell>
                               </af:gridRow>
    But it still cannot display a scroll bar for the panel 2.
    Thanks.

  • On XP Machine dedicated to Lookout 6.5. The Hypertrends are not moving at proper pace according to the scale at the bottom of the trend graph. After 60 seconds it is 40 seconds behind, so the trace makes up the time with a straight line an repeats.

    On XP Machine dedicated to Lookout 6.5.  The Hypertrends are not moving at proper pace according to the scale at the bottom of the trend graph.  After 60 seconds it is 40 seconds behind, so the trace makes up the time with a straight line and then repeats.  Even without any traces on the graph, it does the same thing.
    I've uninstalled and reinstalled the 6.5 software.  Nothing else runs on this machine.  It is dedicated to Lookout.  I've installed a gauge object, with the same datapoint that the hypertrend is trying to graph, that updates very rapidly with no problem, so doesn't appear to be a network problem.
    I'm only tracking one datapoint, at this time, until this issue is solved.  Help please?

    Here is the screen shot.
    Definitions for this post:
     - "streaming data" = Data coming in over ethernet from datapoint that is being polled.
     - "1 scale-second" = 1 second of time based on the scale on the bottom of the graph
    Remember that data continues to trace.  However, according to the scale at the bottom of the graph, the graph traces 60 seconds of streaming data in @10 scale-seconds, then displays .01 second of streaming data over 50 scale-seconds.  The .01 second of data is the long straight lines that you see between the rapid data traces that appear to be 50 scale-seconds.
    Even without any datapoints being traced, the graph clicks forward 1 scale-second every 6 real-time seconds.  It does this for @10 seconds then clicks forward  @50 scale seconds, instantly.  Then repeats, as you can see in the graph.
    The gauge that is on the same control panel, that you see in the screen shot, is tracking the same data point as the graph.  It is polling the data point at real time and never stops updating, so I know that the network is streaming just fine.
    513.850.9509 - if I can help clear things up.
    Attachments:
    LookoutFunkyGraph.jpg ‏347 KB

  • I want to scale the font size programmatically according to the screen resolution

    I have done scaling the front panel and front panel objects by programmatically. but the text (font) size is still remain same. It’s shows very bad. So I want to scale the font size programmatically according to the screen resolution. Can u suggest some idea to implement?
    Vijayakumar.M
    Bangalore.
    India

    This is a duplicate post. See the original post for an answer:
    http://forums.ni.com/t5/LabVIEW/i-want-to-scale-the-font-size-programmatically-according-to-the/m-p/...
    Eric S.
    Applications Engineer
    National Instruments
    E. Sulzer
    Applications Engineer
    National Instruments

  • How to make flash content which resize according to the broswer window

    Hi gus,
    I am doing a presentation now...but the problem i am facing
    is cos of the size of the content....what i need is when the users
    resizes the brower window, the flash content should also resize to
    fit in the window without using scrollbars....u can take a look at
    the URL to see a sample of how it is done.........
    http://www.adobe.com/products/robohelp/productinfo/features/brz_tour/
    Can somebody please help me with this./..thanks in
    advance.....

    Go to File -> Publish Settings.
    Check the 'HTML' box in the Formats tab.
    Go to the HTML tab and choose 'Percent' from the Dimensions
    dropdown.
    Set Width and Height to 100.
    Export your movie and the HTML file will contain the correct
    embedding code.

  • Unable to access the content of a Window (PopUp)

    Hi,
    I am trying to access the contents of a MovieClip I placed
    inside a PopUpWindow component, but can't figure how to do that. I
    have created the window with something like this:
    var SAedit_win:MovieClip =
    mx.managers.PopUpManager.createPopUp(_root, Window, true,
    {closeButton:true, title:"Arterias Sistemicas",
    contentPath:"contentSA"});
    With this code, the window IS correctly created and the
    "contentSA" MovieClip (which is in the library) is correctly shown.
    However, I wanted to access objects inside "contentSA", but I can't
    find a way to do that. I have already tried:
    - SAedit_win.content (which is read-only...)
    - SAedit_win.contentsPath (which obviously didn't work)
    - SAedit_win.target
    - SAedit_win.contentSA
    Can anybody please help me with that?
    Tanks in advance
    JLonardoni

    I believe I was not very clear in my post... What I want is
    to address a MovieClip inside a Window component I created. I used
    the PopWindow Manager to create the Window instance, and attached
    the MovieClip using the contentPath variable. The problem is that
    now I have no reference to my MovieClip, and thus, I can't access
    objects inside it.
    Is there any other way to create a window using the Window
    component, so that I could have access to my MovieClip?
    Thanks again!

Maybe you are looking for

  • Templates in release 2

    I am trying to make the translation from templates in R1 to R2. In R1 you applied a template to a page (giving it the same look and feel) and then made other changes to the page (add portlets etc.). In R2, the doc says that once a template is created

  • MDG BP(role=Customer) vs MDG Customer

    Hi All,          As I understand,using the Supplier MDG,it can  create a BP either as a Vendor or a Customer depending on the Supplier role chosen. When EHP6 MDG comes with a Customer object,what will be the overlap between MDG-Supplier(role=Customer

  • How can I get accurately the execution time of a method?

    My first idea is: long start =System.currentTimeMillis(); method call long end =System.currentTimeMillis(); long executionTime= end-start; I know this is a very trivial wat, I have not always the same accuracy with execution of the same method. Do yo

  • Issue in Sub-interface traffic on cisco 7609-s router

    Hello please support, I configured sub-interfaces and it is working properly, but some time sub-interface show traffic more then physical interface . Like  int gi 3/32              0.13 Mbps  12:00 PM int gi 3/32.11       855 Mbps   12:00 PM as per m

  • Tracking the custom table changes

    Hai, plz let me know how to track the changes in custom table? thankyou. Moderator message: please search for available information before asking. locked by: Thomas Zloch on Sep 17, 2010 12:55 PM