Help with modal Skillbuilders Page close button

Hello

I try to use Skillbuilders modal Page (which is an awesome plugin) to bring up a page apex to attach files. This part works fine. but when the user clicks Close button or icon X modal dialog that I want to return a value or change the text to a link on the parent window. I've read other discussions, but I'm not able to find a way to capture that close event and perform the dynamic action on the parent page before closing the window. Could someone through some light on this?

Thanks in advance
PG

Create a dynamic action:

Event: Manual close [SkillBuilders Page modal (2.0.0)]
Selection type: DOM object
DOM object: document
Condition: - none -.
Scope of the event: link

With real action:

Identification
Action: Run the JavaScript Code
Execution options
Fire when the Page loads: not verified
Code:

if(this.data.modalPageCloseValue!=""){
$(this.affectedElements[0]).val(this.data.modalPageCloseValue);
};

Items affected
Selection type: item (s)
Article (s): (select an item. My example js manages only 1 point).

this.data.modalPageCloseValue is the returned value/object by providing the action close modal javascript/a value object.
For example, to create a dynamic action on your modal page

Event: Page load
Condition: - none -.
Scope of the event: link

With real action:

Identification
Action: Run the JavaScript Code
Execution options
Fire when the Page loads: not verified
Code:

$(".modalclose_link").click(function(){
parent.$(parent.document).apex_modal_page('close', "this here is a literal string that will be returned. You can provide a value or object here however.");
});

Items affected
(none)

Note here that '.modalclose_link' is a jquery selector, you will have to customize. However, it is just an example. You could take the actual function code and use it to tell a dynamic action of a button.

If you want to see this 'work', you can modify the JavaScript "Manual Close" and change for it to have the alert back:

if(this.data.modalPageCloseValue!=""){
alert(this.data.modalPageCloseValue);
};

Hope that helps :)

Tags: Database

Similar Questions

  • Problem with a 'child window close button '.

    I made this newsletter for years and in the model of this newsletter, I use a dreamweaver extension "button of the close child window."  I usually just bring up the last months newsletter rename for the coming months and swap out the content and save, publish it on the site.

    This month, for some odd reason the 'Close' buttons do not work.  These same buttons still work during the last months and every other bulletin of the previous months.  There is nothing different in the code that I can see.  I went back to the model and re-inserted the buttons "Close" and re - apply the model with the same result.  Last month the bulletin buttons work well, this month buttons do not work well.  Can someone please tell me what I can do to fi this.

    Here is the URL of the page with the links to the two versions of HTML newsletters.  You will need to click the HTML link in the first two entries for this month and then last month newsletter.  Two close buttons appear on these pages at the top right and in the Middle at the bottom of the page.

    http://www.fulcrumcwi.com/archive_newsletters.html

    This months version HTML: http://www.fulcrumcwi.com/newsletters_html/2011_12.html

    HTML version of the last month: http://www.fulcrumcwi.com/newsletters_html/2011_11.html

    Thank you!!

    Nina

    "I just spoke to a colleague of mine and he told me that the reason for which this page close button does not work and the other is from the page of archive where you select to open the newsletter of this month, I forgot to specify the 'target' in white.  When I made it and uploaded the page to archive and open the December letter, the close button worked!

    It's always something small that all mess up!  Thanks again for your help and I will try the fix that you sent on future pages.

  • Help with the Skillbuilders modal Plugin

    I hope that someone who has used the Skillbuilders modal plugin Page can help me. I watched the tutorial by Dan McGhan, but it is built for 4.0 and 4.1, I use so I can't use exactly the same steps to bind a button to the dialog box modal page.

    I have used page that shows a recording "header" with the name of the employee, etc. Then, I have 5 + smaller reports for addresses and items from the history. They are currently building as a form on a Table with the report, but I would like to change the modal pages. I have re-assigned the "create button" to point to a dynamic action, and I created the dynamic action to point to the page of the form. The modal dialog box opens and becomes just blocked on the icon 'Loading' - never really loading the page.

    I don't know how to solve this. Can someone help me?

    Hi blarman74,

    Please see the following:
    http://www.danielmcghan.us/2011/08/new-browser-security-attributes-in-apex.html

    Kind regards
    Dan

    blog: http://DanielMcghan.us/
    work: http://SkillBuilders.com/APEX/

  • Need help with the actions of the buttons

    Hi, can someone help me please? I would put an invisable button on an image (film) with two actions. 1 reversal will show a title, 2. Press release will get the new URL. I succeed in one or another action, but not the two combined. What can I do? I use the action script 2. Thank you. Sarosa

    Download
    http://www.Notre-Annuaire.com/2009/files/example.fla
    and
    http://www.Notre-Annuaire.com/2009/files/example.swf

    It works!

    ------------------------------

    CAUTION:
    This announcement is not the answer to the original question.

    The real answer is:

    test ._visible = false;
    bt.onRollOver = function() {}
    test ._visible = true;
    };
    bt.onRollOut = function() {}
    test ._visible = false;
    };
    bt.onRelease = function() {}
    getURL ("" http://www.google.com ", _blank");
    };
    Stop();

  • Help with a stubborn page, image definition

    Ive

    have tried everything I can think of to get a picture on the right side of my page, as I do for my work

    . But everything I do Gets the same result as the image just floats to the left in html and

    covers the text. I just can not understand and was hoping I could get some help here.

    Thanks in advance for anyone who can help me

    Charles Attia

    In the code you posted, you have in the img tab

    align = 'right '.

    The align attribute is deprecated, so get to by.  You also have a coupld of

    same thing, do not use it.

    If you change the attribute align = 'right' to the class = "imageright", which is a class that you already, the floats of the right image.  Don't forget that you have 20px right padding in your .contentleft, which is where the image is located.

    Try this.

    Gary

  • Help with master/detail pages

    Ok.. I want users to be able to update their information... Fortunately, someone showed me in the right direction on here to get started, but as I am new on this I am having trouble... I want the user to be able to click on a link change profile that will lead them to an editable form that is filled with current info... and if they change that info in the form it will change it in the comic book... I use MS Access and a single base table DB... This is the beginning of the code I'm trying to do some work:



    < name cfquery = 'list' datasource = "final" >
    SELECT *.
    OF project_table
    < / cfquery >

    < a href = "edit.cfm? ID = #query.ID #... >"


    < cfquery name = "├editer" datasource = "final" >
    SELECT *.
    OF project_table
    WHERE id = #url.ID # <-I don't understand this part. What I put here
    ...
    < / cfquery >


    < form... >
    < Entry... value = "query.aField" > <-if it was something like "list.last_first" or if it is written, and I guess I need an input field for the largest number areas I want to allow the user to update? "
    ...
    < / make >

    * < cfquery >
    * UPDATE...
    * ALL...
    * WHERE id = #form.id #.
    * < / cfquery >

    I reall am having a difficult time wrapping my head around this... Can anyone help?



    SELECT *.
    OF project_table



    SELECT *.
    OF project_table
    WHERE id = #url.ID #.<---I don't="" get="" this="" part.="" what="" am="">
    meant to put it here--->
    ...



    <--Should this="" be="">
    as "list.last_first" or if it is written, and I guess that I need
    an input field for as many of the areas I want to allow the user to
    Update?---><--- yes="" you="" would="" have="" an="" form="" element="" for="" each="" datum="">
    to allow editing--->
    ...


    **
    * UPDATE...
    * ALL...
    * WHERE id = #form.id #.
    **

  • Need help with the Web page please

    Hi have the banner from the top of my Web page that illustrates in Firefox, but does not appear in internet explore. Clues? www.topaffiliatespro.com/wealthy_affiliate_review/

    First of all, your page doesn't have a valid document type declaration (DTD) on the first line.  This means that your page is running in Quirks Mode, which can cause unexpected results in browsers.

    To add a document type for pages in DW, click Modify > Page Properties > title/encoding and select a document type that corresponds to your coding skills.  Recommend HTML transitional.

    Secondly, you have throughout your web page, the links that point to files on your local hard drive.

    background="file:///D%7C/Documents%20and%20Settings/USER/Documenti/templates/template2/images/left_shadow.gif"
    

    These links must be resolved so that they point to files in your local site.  Correctly define a local site folder in DW before you start this project?

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    http://ALT-Web.com/
    http://Twitter.com/ALTWEB
    http://ALT-Web.blogspot.com

  • Close a modal modal Plugin page of the Skillbuilders

    So I have everything works except closing the modal page. I think it's a matter of topic, but I'm not sure where to look for the right tag/solution. Modal page works, supports the values (to write to load/create/save custom process), but it does what it should. I have the direction of the page from 99 (my page close modal Page) and that works. What does not work is the dynamic Action close modal Page. In the tutorial, you had to find the section in the page with the success message and enter the label of the division. I use the Blue Classic theme (13) and it seems to be the same div #success - message that should work. Modal page after you save the new value, I don't see a message. As I had to create processes customized to load/save the values in the table, is there somewhere that I also customized record a success message?

    Hi Blarman74,

    Your success message is identified by a class rather than an ID hash Tags are used to select by ID. For classes, you use a point. The correct selector would be div.t13SuccessMessage

    Kind regards
    Dan

    blog: http://DanielMcghan.us/
    work: http://SkillBuilders.com/APEX/

  • Please HELP: need help with a page after coding button.

    Okay, in detail, I'm trying to code a next page button and can't really understand how and tried to look on the net but could not find the kind of that I'm looking. So ok, the kind of the page button depending on whether I'm looking for is the kind where you as < < 1 2 3 4 5... (Next page button) > > not only a button when I need to hyperlink to the next page url because I like 35 pages to put... so I'm trying to understand it and yet no cigar then someone can please help me with this? Thank you!

    I have seen a lot (on the forums with over 1000 pages on some discussions) is to add a block 'paging' of the code that made:

    1. two or three pages before the current page
    2. two or three pages after the current page
    3. a dropdown menu with all THE listed pages

    The button or the 'next' link is just a copy of the last link in the online list.

    Something like this:

    GoTo page  1, 2, 3 ... 51, 52, 53  Next

  • Request for help with page apex a button popup.

    Apex 3.2/Solaris 10

    I try to open a page of the apex (report) in a pop-up window when a button is pressed after the plethora of examples in the forum.

    I applied what follows in "Edit Page buttons" to one of the 'attributes of button' and 'Target URL' is trying to open my report (page 14) in a pop-up window.

    javascript.popupURL ('f? p = & APP_ID.:14: & SESSION.) ") ;
    JavaScript.popup2 ('f? p = & APP_ID.:14: & SESSION.) ") ;
    Window.Open ('f? p = & APP_ID.:14: & SESSION.) ") ;

    I have also implemented the conditional branch for this button in order to mitigate the error 'page not found - restart the application.

    The window.open variant does not. The javascript 2. variants open the page, but in the same window (no popup).

    also, I read that to fill my pop-up report (it should), a Window.Close (); should be somehow associated with a close button on the popup page. Specifically, where this code is placed?

    Thank you!

    Paul

    Paul:

    Specify the URL as

    JavaScript:popupURL('f?p=&APP_ID.:14:&session.');

    Instead of

    javascript.popupURL('f?p=&APP_ID.:14:&SESSION.');

    CITY

  • If I open show history, I can't close it. There are two gray arrows that do not work but no close button. With the help of el capitan for mac.

    I can't show all close the page of history. I used to be able to before the upgrade to el capitan. Now, there is no close button on the history page. It doesn't go away until I got close FF.

    Feel free to undo changes. You may need to quit Firefox first to release the files currently in use.

    In addition, you should be able to close the dialog box library using Cmd + w (close tab) or Cmd + Shift + w (close window). Or does any of these work for you?

  • Open Skillbuilders modal report pages

    I want to open the modal page Skillbuilders in a report. The first column in a report represents the primary key of the table, the report shows. What is the best way to do it?

    The idea is the following: in the report area, there is a button which opens the modal dialog box by Skillbuilders CREATE. A user can enter data, clicks submit, modal dialog box closes and the report is refreshed. That works now. Now I want to add a link to the first column in the report, which opens the modal dialog, passing the value of the primary key of the row, the user clicks.

    I'm not that experienced with Javascript, I think I'll create a dynamic action with a jquery selector and as an real action, a call from javascript to open the dialog box. Can someone give me a start?

    Thanks in advance!

    You actually do not need as much javascript in this case. Simply design your column as you normally would to create a column of link.


    • The column link: provide a link text

    • Link attributes:

      onclick="return false;" class="show_modal"
      


    • Set the page target and provide all the items you want filled.


    onclick = "return false;" is to prevent the default behavior of the anchor tag: Navigate to the location specified in the href attribute. We want to open the modal page instead.

    Now to open the modal dialog box, create a dynamic action.


    • Event: click on

    • Selection type: jQuery Selector

    • jQuery Selector:

      .show_modal
      


    • Advanced > scope of the event: live (so the links will work after paging)

    The real action, select the SkillBuilders Page modal plugin and make sure these are specified as follows. This will take the location in the columns generated link and open a modal page for this place.
    This would then open your editing page with the correct id (that you define in the link of the column).

  • Location of the URL: attribute of the triggering element

  • Attribute name: href

  • If you have configured like this, you have the convenience of definition link standard column, no need of any javascript onclick = false and no need to fill the page elements will not save and to deal with the submission to the session state.

  • How to superimpose a jQuery UI dialogue on a Page modal Skillbuilders

    I use the Page modal SkillBuilders in my Oracle APEX application, i.e.

    -Action Dynamics Plugin - SkillBuilders modal Page

    to present the user with a tabular presentation, where they can enter specific values via the selection lists.

    The problem I'm having my Page Modal SkillBuilders, I have a validation where I do want to make a call to the jQuery UI dialog, in order to present to the user a message. I have this by calling:

    $('#dialogbox').dialog('open');

    Unfortunately, it is not actually appears on the screen and I think it's something to do with the fact I'm trying to superimpose a modal dialog box on a modal modal page (skillbuilders plugin).

    Anyone have any ideas on how to fix this or perhaps I missed something.

    Thank you.

    Tony.

    Tony,

    This could be due to some problems with the plugin colorbox, but I tested successfully using this statement which will lower the z index of the modal, overlay screen then the dialog box can then be seen and focused.

    $('#colorbox,#cboxOverlay,#cboxWrapper').css (z-index', ' 1000');

    I tried with 4000 as mentioned in this post https://github.com/jackmoore/colorbox/issues/248 but it didn't work. 1000 seems to do the trick, but you can test it with other options.

    I made the calls in the parent page. This could also be a different problem for you.

    Also, in my tests, I had a bit of luck using the dialog appendTo option. For example:

    $('#cboxTitle').dialog({ appendTo: '#colorbox' });

    I hope these suggestions help. Please update this post with everything you find to help others.

    Greg

    [email protected]

  • When I open IE msg said "a problem with this web page caused IE to close and reopen the tab."

    I have a Compaq CQ60-202US about 3 years and all of a sudden, without making any change in the software that I am aware, whenever I try to open Internet Explorer, it gives me this message, "a problem with this web page caused IE to close & reopen the tab."  I can open Google without any problem. I upgraded to IE 9, but that made no difference. I don't really know what it takes to solve this problem.

    Hello

    You can try resetting Internet Explorer as follows: be aware that this will remove bookmarks and saved passwords etc

    Open windows control panel, open Internet Options, click the Advanced tab, and then click the reset button.  Click 'Yes' or 'Ok' for all additional guests needed to complete the process.

    In case of failure to correct the problem and you are using Windows 7, follow these steps.

    Click on the Start Menu and select Control Panel.  Open programs and features, click on "Windows turn features on or off" and remove the check mark next to Internet Explorer 9 click Yes, then OK and then when restart the laptop.

    When Windows has restarted, click the Start Menu and select Control Panel.  Open programs and features, click on "Windows turn features on or off" and re-enter the checkmark next to Internet Explorer 9.  Click Yes and then OK and when it is finished installing, restart the computer again.

    Kind regards

    DP - K

  • create a pop-up with close button

    Hi, I want to create a popup with close button and it's be great if he doesn't minimize and dragable.

    I search on google but I only find a popup with JavaScript code and load URL

    what I want:

    1 - there is more information button

    2-i want when I click, it pops up a window (presentation), I want to load (show) certain content such as: texts, images and clips in my library

    3 - I need a close button that remove (close) from my window

    I try to not use AS3 and use the frame graphic Technics to create the pop up window, but it make me so confused and I think that it is better to use some load and unload the movieclip script or something like that

    can anyone help?  Thank you very much

    as mentioned ned, you did local rectangle to fl_clickToGoToAndPlayFromFrame_2.  to make the rectangle outside of this function call, use:

    var rectangle: MovieClip

    enter_mc.addEventListener (MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_2);

    function fl_ClickToGoToAndPlayFromFrame_2(event:MouseEvent):void

    {

    Rectangle = new my_rectangle();

    addChild (rectangle);

    }

    removebt.addEventListener (MouseEvent.CLICK, sos);

    function sos(event:MouseEvent):void

    {

    removeChild (rectangle);

    }

Maybe you are looking for

  • Satellite Pro L10: Is it extensible wireless?

    I've got a L10 that isn't wireless. I can of course use my wireless card, but it is possible to add a mini pci card instead? If Yes is it easyThank you

  • Laptop turn on but the screen is completely black

    Hi guys,. I was wondering if someone have an idea as to why my laptop (which was working perfectly last night), now has a black screen when I try to turn it on.I read in some other forums who offered to take out the battery and hold the power button,

  • What is the probllem when Windows XP will not update. Receive an update failure message.

    What is the dif when Windows XP will not update. Window security KB2619340, KB2656353, KB2585146, KB2631893 and KB2585542 could not be updated. How can I fix the problem.

  • THE SYSTEM CONFIGURATION SHOWING NOT

    I bought the office base model Inspiron 660 s with DOS operating system dealer. IAM entering service no tag. to check the configuration of the system but the following message is displayed. On clicking: view the original Configuration: Message: There

  • Try to mirror a disk with Windows 7 Professional

    I would like to mirror an external drive with a second external dive.  I can't find documentation on how to accomplish this task.  The main drive is configured as dynamic with a simple partition and it contains data.  I tried different configurations