Javascript a confirm

demo:
<pre><nowiki><!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
<a href="content.php?action=delete&id=546&cid=230&mid=1" onclick="return confirm('false');">x</a>
</body>
</html></nowiki></pre>
1:while i click the link,
2:select the "cancel"
this firefox will to visit the page of "content.php" in back .

&lt;!DOCTYPE html&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;a href=&quot;content.php?action=delete&amp;id=546&amp;cid=230&amp;mid=1&quot; onclick=&quot;return confirm('false');&quot;&gt;x&lt;/a&gt;
&lt;/body&gt;
&lt;/html&gt;

Similar Messages

  • Can I have a conditional javascript:apex.confirm when column is null

    Hi All,
    I am relatively new to the product but am picking up things all the time. I was recently asked to create a confirmation on submit dialog which I did quite easily using javascript:apex.confirm. I was then asked to only display the confirmation message if a comment column was empty. The column is optional but it is preferred if something is added. I am using 4.1.1. Is this possible? Any ideas would be appreciated
    Regards
    Chris

    Hello Chris,
    >
    user4023958 wrote:
    I am relatively new to the product but am picking up things all the time. I was recently asked to create a confirmation on submit dialog which I did quite easily using javascript:apex.confirm. I was then asked to only display the confirmation message if a comment column was empty. The column is optional but it is preferred if something is added. I am using 4.1.1. Is this possible? Any ideas would be appreciated.
    >
    How have you implemented the apex.confirm?
    <ul>
    <li>If you have done it in dynamic action on button click then you have to make the dynamic action conditional by using Item/Column value is not null condition with expression as your comment item say P1_COMMENTS</li>
    <li>If you have done it in Button Action as Redirect to URL then simply you can write a javascript function in your page header as :
    <script type="text/javascript">
    function f_showConfirm () {
      if ($x('P1_COMMENTS').value == '') {
        apex.confirm('Do you want to submit this page?', 'SUBMIT');
      } else {
        apex.submit('SUBMIT');
    </script>and call this javascript function in Button Action - Redirect to URL with URL Target set as:
    javascript:f_showConfirm();</li>
    </ul>
    In order to get accurate/appropriate response you should include relevant details from following information with your question:
    <ul>
    <li>Full APEX version</li>
    <li>Full Database version</li>
    <li>APEX Web server architecture (EPG, OHS or APEX listener)</li>
    <li>Browser(s) and version(s) used</li>
    <li>Operating system with version, architecture(32/64)</li>
    <li>Theme</li>
    <li>Template(s)</li>
    <li>Region/item type(s)</li>
    </ul>
    The above information will help the forum members to ascertain the problem context and post most relevant response.
    Please read the [url https://wikis.oracle.com/display/Forums/Forums+FAQ]FAQ and [url https://forums.oracle.com/forums/ann.jspa?annID=1324]forum instructions for more information on using OTN forums effectively.
    Please update your forum profile with a real handle instead of user4023958.
    Hope it helps!
    Regards,
    Kiran

  • Using Javascript to Confirm A Transaction

    I created a form for a user to update/delete the rows in a table, when the user click the "delete" button, I'd like to add a piece of
    Javascript to confirm with the user whether he was sure to delete. It looks like this:
    confirm("Are you sure you want to delete?");
    I assume that when the dialog box pops up, if the user click "OK" then the delete transaction will proceed; if the user click "CANCEL" then the transaction will not proceed. But actually, no matter whether the user choose "OK" or "CANCEL",the delete transaction always proceeds. Could you tell me how to solve this problem?

    What was submitted by James is quite fine..
    Here is a similar snippet from one of my forms :
    The below javascript should be put in the begining of the HTML code before the <HTML> tag
    function deleteForm(in_paramter_1) {
    If (window.confirm("Are you sure you want to Delete this record ?")){
    location.href="package_name.procedure_name?parameter_1="+in_paramter_1"
    document.form_name.submit()
    In the HTML code do the follwoing :
    1. Insert the <FORM> tag before all the records are selected/displayed.
    <FORM ACTION="package_name.procedure_name" METHOD="POST" NAME="form_name">
    Note: package_name.procedure_name - is the procedure containing the delete script.
    2. Insert the follwoing javascript call for the 'Delete' link/button :
    <TR><TD WIDTH="100%" ALIGN="CENTER">
    <A HREF="javascript:deleteForm(239,16548)">Delete</A></TD></TR>
    Note : where in_paramter_1 value = 239
    This parameter is used to pass the value of the record id pertaining to the record to be deleted.
    3. Now close the form.
    </FORM>
    Avinas

  • Problem with javascript confirm() in a JSP

    I'm trying to use a confirm() box in a jsp. I've looked at tons of examples and I still have the same problem. If I just add this to my page the prompt will pop up as expected: (of course it doesn't really do anything.)<SCRIPT LANGUAGE="JavaScript">
    confirm( "Are you sure you want to delete?" )
    </SCRIPT>As soon as I add an if clause around it it doesn't even pop up anymore, such as:if (confirm("Are you sure you want to delete?")){
    <%
         Do some jsp stuff
    %>
    else {
    <%
         Do some jsp stuff
    %>
    }I can include more of the code if needed. This code is for deleting some files, so I want to add an "are you sure prompt?". If they hit ok it will delete, otherwise cancel the operation.
    I assume that the "if confirm( "Are you sure you want to delete?" ) " should wait for a reponse before continuing. Any help is appreciated.
    Thanks,
    James

    You can use Javascript to confirm a delete, and delete an object in the following manner.
    //link to delete an object..
    <a href="thisPage.jsp?delete=<%= itemID %>"
       onClick="return confirm('Are you sure you wish to delete this item?');">delete</a>Then, at the top of the JSP pageif(request.getParameter("delete") != null)
       //do whatever to delete, then load the page as normal
    }Now, your item will be deleted, and the page will be refreshed to show the changes.

  • Value from backing bean in javascript confirm in 10.1.3

    Hallo,
    Please help
    I have 2 problems:
    Page with 1 record, where 8 items are updatable.
    In entity I 've a method where I set a value in bean. (BotId1 is one of these 8 updatebale items)
    What I expect: when I change a value in BotId1 the value of botId in ValiderenBotBean will be also changed
    public void setBotId1(Number value) {
    setAttributeInternal(BOTID1, value);
    EL.set("#{ValiderenBotBean.botId}",BotId.toString());
    My bean (session scope):
    package viewcontroller.pagedefs.produceren.backing;
    import org.apache.commons.logging.Log;
    import org.apache.commons.logging.LogFactory;
    public class ValiderenBotBean
    private static Log log = LogFactory.getLog(ValiderenBotBean.class);
    private String botId;
    public ValiderenBotBean() {
    // accessors
    public void setBotId(String botId) {
    log.debug("setBotId : " + botId);
    this.botId = botId;
    public String getBotId() {
    log.debug("getBotId : " + this.botId);
    return this.botId;
    Op my generaten page I have the button:
    <af:commandButton actionListener="#{bindings.Commit.execute}"
    action="Commit" onclick="if (validateForm('dataForm')){return(confirm(#{ValiderenBotBean.botId} + 'la')}"
    rendered="#{(((jhsUserRoles['JDMR_PRD03']) or (jhsUserRoles['JDMR_PRD03'])) or (jhsUserRoles['JDMR_PRD03'])) or (jhsUserRoles['JDMR_PRD03'])}" textAndAccessKey="#{nls['SAVE_BUTTON_LABEL_KOPPELENPRODUCTIEGEGEVENS']}"
    id="KoppelenProductiegegevensSaveButton">
    <af:resetActionListener/>
    </af:commandButton>
    I get the following error:
    Foutdetails webpagina
    Gebruikersagent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.1; AskTB5.6)
    Tijdstempel: Thu, 17 Feb 2011 13:54:46 UTC
    Bericht: Syntaxisfout
    Regel: 3744
    Teken: 1
    Code: 0
    URI: http://172.16.6.108:8988/demeter/adf/jsLibs/Common10_1_3_2_0.js
    The code from Common:
    3732 function _callChained(
    3733 a0,
    3734 a1,
    3735 a2
    3736 )
    3737 {
    3738 if(a0&&(a0.length>0))
    3739 {
    3740 if(a2==(void 0))
    3741 {
    3742 a2=a1.window.event;
    3743 }
    3744 var a3=new Function("event",a0);
    3745 a1._tempFunc=a3;
    3746 var a4=a1._tempFunc(a2);
    3747 a1._tempFunc=(void 0);
    3748 return!(a4==false);
    3749 }
    3750 else
    3751 {
    3752 return true;
    3753 }
    3754 }
    Problem nr.1:
    When I call the button I do not see any logging that indicate that the value is set in backing bean
    Workaround: I made item on my page depending on item where I put my code.
    Result: I have to press 2 times on my button to execute the button code. First time to make the validation and the second time the button code itself.
    Not nice. The validation is also slow.
    But ok:
    Problem 2:
    I still get the same error, I see logging of execution of my validation.
    There is also the difference between loggings is 2 cases:
    If I use
    onclick="if (validateForm('dataForm')){return((#{ValiderenBotBean.botId} + 'la')}"
    what I really want instead of
    onclick="if (validateForm('dataForm')){return'la')}"
    I get:
    17-feb 14:28:40 DEBUG (ValiderenBotBean) -getBotId : -1
    17-feb 14:28:40 DEBUG (ValiderenBotBean) -getBotId : -1
    It means that value is obtained correctly.
    But still the same error.
    If I put for test purpose
    the following code into my bean:
    public String getBotId() {
    log.debug("getBotId : " + this.botId);
    botId = "23";
    return this.botId;
    I do not get any error.
    Any ideas?
    Please help

    Thanks, Amit,
    I will try it tomorrow.
    Some remarkes:
    1. I need javascript for confirmation
    2. I really do not PPR. It takes so long. The user use the scanner to put the value into input items in order speed up the process. And now PPR...
    3. My transient attribute will depend on 8 items. Even more waiting process.
    What I really want is to execute my db function only 1 time "onclick" or "oncommit" and according to outcome of db-function ask user for confirmation of commit.
    I tried already to implement dialog from ADF with launchDialog function.
    But ReturnListener did not function while I launch the Dialog manually.
    Anna

  • How to Add A Javascript Confirm() on an Apex button for a form?

    Hi, how can I add a Javascript confirm() to a button in Apex for a form? Thanks.

    Hello:
    You could do the following
    1)In the 'Option URL Redirect' section of the Edit Button page set 'Target is a ' to 'URL'
    2)For URL Target enter javascript:{if (confirm('Your Question here')) doSubmit('<button name>');}Varad
    Edited by: varad acharya on Jul 15, 2009 3:47 PM

  • Confirmation pop-ups - only via javascript?

    I want to have a confirmation box pop-up when I have changed a field in a form and pressed the submit button.
    Looking through this forum, all I've found is confirming deletions with javascript via a URL target:
    javascript:confirmDelete('Are you sure you want to change the password?');
    This gives me a deletion error:
    ORA-20001: Invalid action DELETE on this object. (U)
    Error Unable to process row of table USERS.
    OK
    presumably because I'm not deleting anything - I just want to confirm my change.
    Do we always need to use javascript for confirmation pop-ups?
    If not, how else can we achieve this?
    How do we make the pop-up dependent upon at least one field value being changed?
    How do I get the pop-up to ask for a Yes/No response instead of Cancel/Yes options?
    Any help on this would be greatly appreciated.

    "Looking through this forum, all I've found is confirming deletions with javascript via a URL target:
    javascript:confirmDelete('Are you sure you want to change the password?');
    This gives me a deletion error... presumably because I'm not deleting anything - I just want to confirm my change."
    The definition of the javascript function is: function confirmDelete(msg,req). It takes an optional second parameter called req. This specifies the REQUEST value that should be set when the user clicks OK on the confirm pop-up. If you omit this second parameter in your call to the javascript function a request value of 'Delete' is set. This is why you are receiving your error. You should set the second parameter to be some custom REQUEST value.
    "Do we always need to use javascript for confirmation pop-ups?"
    For popups of this sort the answer, in short, is "yes". There are no other client-side languages that work cross-browser like javascript. You could avoid javascript (and popups) altogether if you wanted by just having an intermediary Apex page with buttons representing whatever actions you want the user to be able to perform, e.g. "Yes", "No" and "Cancel".
    "How do I get the pop-up to ask for a Yes/No response instead of Cancel/Yes options?"
    See this thread for a discussion on this topic: Re: Javascript Yes & No buttons
    Andy

  • Javascript Confirm popup Yes, No button instead of OK and Cancel?

    Hi,
    I wrote javascript for confirm popup like below:
    var answer = confirm ("Are you sure you want to delete this item ?");
    It is showing OK Cancel button popup , but I want to display Yes No buttons on popup insted of OK Cancel buttons...
    Appreciate if anyone give proper solution.
    Thank you.
    Still I could not get proper solution.... Please any one help me solve this... need js solution not jquery..

    Hi Praveen
    There is not direct option in JavaScript to get Yes/No buttons in a Confirm dialog.
    But, we can create a customized dialog box with our own HTML tags, controls and scripts and show it as a confirmation dialog using
    window.showModalDialog() function
    Here is the sample HTML to demonstrate how to create a customized confirmation dialog.
    Dialog.HTML (This contains the UI for the confirmation dialog. Message, Yes No buttons etc)
    <!DOCTYPE>
    <html>
    <head>
    <title>Confirmation Message</title>
    <script language="javascript" type="text/javascript">
    window.onload = function()
    var messageDiv = document.getElementById('dlgMessage');
    if ( messageDiv != null && typeof(messageDiv) != "undefined" )
    messageDiv.innerHTML = window.dialogArguments;
    function confirmClick(args)
    window.returnValue = args;
    window.close();
    </script>
    </head>
    <body>
    <div id="dlgMessage">
    </div>
    <input type="button" value="Yes" id="btnYes" onclick="javascript:confirmClick('yes')"/>
    <input type="button" value="No" id="btnNo" onclick="javascript:confirmClick('no');"/>
    </body>
    </html>
    MainPage.HTML (From where the confirmation dialog will be shown. In your case, u can use the script in this html and customize it according to ur needs)
    <!DOCTYPE>
    <html>
    <head>
    <title>Main Page</title>
    <script language="javascript" type="text/javascript">
    function showConfirmDlg(message)
    var returnValue = window.showModalDialog("dialog.html",message,"dialogHeight:150px;dialogWidth:200px");
    if ( returnValue == 'yes' )
    alert('Yes button is clicked in the dialog');
    else
    alert('No button is clicked in the dialog');
    </script>
    </head>
    <body>
    <input id="btnConfirm" type="button" value="Confirm" onclick="javascript:showConfirmDlg('Do you want to continue?');" />
    </body>
    </html>
    Hope this helps.
    See this MSDN Link for more information on how to use and customize the showModalDialog() function
    http://msdn.microsoft.com/en-us/library/ie/ms536759(v=vs.85).aspx

  • Html db confirmation button with javascript:

    Hello,
    First, I have a button with a URL javascript:confirmAction(document.forms[ wwv_flow ].elements[ P181_MESSAGE_CANCEL ].value, Cancel);
    In this moment, by pressing on "CANCEL" button, a pop-up with the message of field (P181_MESSAGE_CANCEL) appears and there is a connection towards the same current page with the starting values. I want to make a validation, because if no field were modified, then I do not want whom the message posts by pressing on the "CANCEL" button but that the connection is carried out normally.
    Second, I would like that if one modifies a field in a page and that while pressing on a mitre to move on another page, that it is a message in pop-up there "Want you to really change page without recording your modifications? "
    Thank you very much!

    Do you mean a close button in HTMLDB or the browser window's close button? [HTMLDB cannot help much with the latter!]
    For buttons you created, just add a URL target as
    javascript:if(confirm("Are you sure?")) doSubmit('CLOSE');
    That will popup the box and if OK is clicked submit the page with REQUEST set to CLOSE

  • Delete button control: Javascript confirm & redirect?

    Hello all,
    I have a contract details page that has the following buttons: Save, Cancel, Delete. The Cancel button has a general redirect assigned to it, since no processing is necessary. As for the Save button, the page submits to itself, so the screen just reloads quickly, with a note to show the record was updated. As for the delete button, I don't want the user to remain on a details page for a contract they just deleted, so I wish to redirect the user to my contract search page after the record is deleted. I also want to have the button confirm the deletion before proceeding.
    My current page setup is as follows:
    SAVE button (template based)
    Optional URL Redirect - No Target
    DELETE button (template based)
    Optional URL Redirect - Page 3 (contract search)
    "Request" and other fields here are empty
    CANCEL button (template based)
    Optional URL Redirect - Page 3 (contract search)
    "Request" and other fields here are empty
    BRANCHES Information:
    Before Validation:
    DELETE:
    Target type - page in application (3 - contract search)
    Request - DELETE
    When Button Pressed - BTN_DELETE
    After Processing:
    Target type - page in application (2 - contract details)
    When Button Pressed - BTN_SAVE
    Here's my dilemma...under the setup listed above, clicking Delete redirects me to the search page, but the record is not deleted (I do have a DML process set up for Insert/Update/Delete, set up for After Submit). I've tried changing both the button and/or branch properties to set up URL processing, entering javascript to confirm the deletion. No matter the combination I use, either the contract will not get deleted, or the deletion is a success, but I get an error message that there is no branch page set up for that. If anyone has suggestions as to how I can get validation to play nicely with deleting records, it would be much appreciated.
    Thanks,
    Brian

    Mike,
    Is it possible that you have more than 1 branch to the target page? yes I do, before I had the Unconditional branch on top. Now I moved the conditional branch to the top. Redirect is working fine but no luck with passing values. After some research I found that it passes the request value when I send it as a string but not as value of the item on page. This may have something to do with in-built Delete procedure.
    I am very new to Apex/Oracle and I don't know how to create a oracle workspace and post my App on line. So, I am giving a detailed description of what I am trying to achieve. please bear with this while I try to figure out how to post it on line.
    This is exactly what I am trying to do.
    On the first page I have multiple regions to show different reports based the user selection. User clicks a button to make a selection. I am toggling between the regions depending on the request value from the button click.
    If the user decides to modify a record he is directed to a form. After modifying I want the user to come back to the first page and be in the same region where he was initially.
    To achieve this
    --- I am passing the request value from the first page to the form and saving it in a hidden variable. In the unconditional branch I am passing that value back and it is working fine.
    --- Only for the Delete operation I have problems. I still want to have the Alert so I am using the javascript:confirmDelete(htmldb_delete_message,'DELETE'); in the Delete button URL.
    I created a conditional branch which has lower sequence than the unconditional one.
    I have set the condition as Request = Expression 1(DELETE) not the button click.
    In the Action part, i have the following
    Target type Page in this Application
    Page: 21
    Request: &P21_Old_Request.
    Clear Cache
    Set these items P21_Item1
    With these values &P22_Item1.
    I have seen that page redirect is working fine.( I tried to redirect to other pages it works fine). Only the values are not passed. I tried to pass these values as Application level items even then it doesn't do anything. But if u pass the string directly it would pass the string. But I want to be able to pass the value as an Item from the form.
    As I mentioned before it may be to do something with in-built Delete procedure.
    Is there way to see the SQL of that procedure?
    Do u have any suggestions for me?
    Thanks in Advance.
    Nimmi

  • UIX Tip - maybe of use to somebody - confirm Delete operation with Javascript popup

    It was easier than I thought it would be to convert my Javascript Delete Confirmation message that I had developed for my JSP over to UIX:
    By default UIX would generally do something along the lines of:
    <submitButton text="Delete" ctrl:event="delete" />
    which generates the following html:
    <a href="# onclick="submitForm('viewForm',1,{'event':'delete');return false">
    If you want to popup a Javascript window asking the user to confirm the operation you can do:
    <submitButton text="Delete" ctrl:event="delete">
    <boundAttribute name="onClick">
    <fixed javaType="string">javascript:if (confirm("WARNING: You will not be able to revert this operation. This operation will also fail if there are dependant objects!")){return true;}else{return false;}</fixed>
    </boundAttribute>
    </submitButton>
    this will generate the following html:
    <a href="#" onclick="return _chain('javascript:if (confirm(&quot;WARNING: You will not be able to revert this operation.  This operation will also fail if there are dependant objects!&quot;)){return true;}else{return false;}','submitForm(\'viewForm\',1,{\'event\':\'delete\'});return false',this,event,true)">
    Matt.

    This is a totally supported technique, and a good one.
    To pick at nits, you don't need to start "onClick" handlers with "javascript:". Save yourself a whopping
    11 bytes by trimming that off. With a bit of slyness, you could boil this down to:
    <boundAttribute name="onClick">
       <fixed javaType="string">return confirm("WARNING: You will not be able to revert this operation.  This
    operation will also fail if there are dependant objects!");</fixed>
    </boundAttribute>... or, just extract that into a script, like:
      <script><contents>function makeSure()
      return confirm("WARNING: You will not be able to revert this operation.  This operation will also fail
    if there are dependant objects!");
    }</contents></script>
      <submit text="Delete" ctrl:event="delete" onClick="return makeSure()"/>

  • How to add a javascript object to a library

    hi, the only way i manage is to create a subform, add the script object and adding this subform to a custom library. Then this can be used for other people by putting it in the master page and drag the script object to the variables. I wonder if there is another way to do it without using fragments because we use acrobat 7.0. Thanx in advance!

    Hello:
    You could do the following
    1)In the 'Option URL Redirect' section of the Edit Button page set 'Target is a ' to 'URL'
    2)For URL Target enter javascript:{if (confirm('Your Question here')) doSubmit('<button name>');}Varad
    Edited by: varad acharya on Jul 15, 2009 3:47 PM

  • What is the best way to call a pageflow action from JavaScript?

    What is the best way to call a pageflow action from JavaScript?
    Thanks,
    John

    John,
    How would I do this from a grid??? Unfortunately there are no JavaScript attributes
    on any of the grid tags that I can see.
    Thanks,
    John
    "John H" <[email protected]> wrote:
    >
    Thanks John!
    "John Rohrlich" <[email protected]> wrote:
    John,
    If you want to put up a confirm dialog before calling an action from
    an
    anchor it is done as follows.
    Here is an example from code of mine that deletes a customer order,if
    the
    user confirms the delete. I pass the order id as a parameter.
    - john
    Here is the JavaScript -
    function confirmDelete() {
    if(confirm('Continue with order delete?'))
    return true;
    else
    return false;
    Here is a sample anchor tag -
    <netui:anchor action="requestToDeleteOrder" onClick="return
    confirmDelete(); return false;">
    Delete
    <netui:parameter name="orderId" value="{container.item.orderId}"/>
    </netui:anchor>
    "John H" <[email protected]> wrote in message
    news:402138f5$[email protected]..
    Thanks for the replies. I figured it was going to require buildingmy own
    url
    to call the action. I had hoped there was an easier way to do it.Rich,
    the
    reason I want to do this is because I want to call the JavaScript
    function
    confirm()
    when a user clicks on a link (in a repeater/grid) to drop a record,I only
    want
    to call the drop action if the user confirms the drop. Maybe thereis a
    better
    way to do what I am trying to do??? I really appreciate any help
    you
    guys
    can
    give me on this, I am pretty new to this sort of stuff.
    Thanks,
    John
    "Rich Kucera" <[email protected]> wrote:
    "John H" <[email protected]> wrote:
    What is the best way to call a pageflow action from JavaScript?
    Thanks,
    JohnTry figuring out the URL to the pageflow action, create a hidden
    form
    in the
    page, then use JS to submit the form. Why would you want to though,
    isn't
    the server going to want to send you to the next page?

  • Overriding a javascript delivered function but then calling the original

    I have a tabular form (updateable report) and am on Apex 3.2.
    On this particular form, I have the updateable report set to "partial page refresh = yes". When doing so, it appears to want to call a javascript function called $a_report to paginate from one set of rows to another. I have my pagination set to select-list with row ranges.
    Before repagination continues, I would like to do some validation (specifically, see if the user selected any of the checkbox row selectors) and warn them via Javascript's "confirm" box that continuing will make them lose their selections.
    I have no issue so far in determining if at least one checkbox is checked and no problem popping up the confirmation box. However, the real issue is that I want to pop up the confirm box and then continue only if the user says they want to continue.
    Apex generates this report with the select-list and links to paginate by calling a function in Javascript called "$a_report". Since this is in the library, I cannot really get to it; it's a "black box" to me at runtime. So ideally what I'd like to do is create a local (on my page) javascript function of the same name (since I can't change what the select-list for pagination calls) accepting the same four parameters, do my checkbox validation and warning, and then effectively call the $a_report in the library to do the pagination if the user wants to continue.
    As it is right now I got a copy of the code for the function and put it local on my page and then added in my own logic, but of course this means that if $a_report changes in future versions, my local copy might break and would have to be updated. Ideally, I would like to somehow create a locally-named function called $a_report, do my validation and ask for confirmation, and if the user chooses "OK" to continue, call the library one in sort of a "super" or "parent" way to do the pagination.
    Is this possible with javascript to create some sort of OOP-like inheritance or some sort of sense of scope so that I can have a local copy and then call the one in the library?
    Thanks!

    Hi Kramis,
    Let's start with a simple example
    class OriginalClass
      public void doSomething( )
      System.out.println("This is the Original class's doSomething( ) ");
    class InheritedClass extends OriginalClass
      public void doSomething( )
      super.doSonething( );//Watch here you are calling the original method that was declared in OriginalClass
      //Now you are adding some codes of your choice
      System.out.println("This is Inherited class's doSomething( ) ");
    Explanation :
    When you create an object of type InheritedClass and you call the method doSomething( ) then the original method gets executed first and later the rest of the code written in the InheritedClass 's doSomething( ) method gets executed.I hope this works for you. If you do not want the original to be executed just remove the super.doSomething( ) call.

  • Use of javascript in branch

    Hi,
    I have a branch using the following javascript:
    javascript:{if (confirm('U heeft uw gegevens niet opgeslagen! Deze zullen verloren gaan. Doorgaan?')) redirect('f?p=&APP_ID.:1:&APP_SESSION.');}
    I can use this javacode in the branch of the button itself, but I want to use it in the page-branch, so I can make the branche conditional. How can I make my javascript work on the page-branch?
    Thanks.

    Hello,
    >> When the user presses the "cancel" button, I want to again put the values of the form in (another) APEX collection and compare the two.
    Well, you can only do that with AJAX. The following Blog entry, by Joel, will give you the basics - http://joelkallman.blogspot.com/2008/03/preserving-checked-checkboxes-in-report.html. This is not the same situation as you are describing, but all you need in order to create your own solution is there.
    Having said that, maybe you should consider a simpler solution (provided tracking changes is all you need). For example, attaching an onchange event to your updatable columns that will set a hidden item on the page. When the user presses the cancel button, you can check the value of this item. If it was set, you can issue a proper alert.
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Author of Oracle Application Express 3.2 – The Essentials and More

Maybe you are looking for

  • Error message while installing JDK on RED HAT  - linux interprise 5

    Hello! I have got an error message while installing JDK on RED HAT - linux interprise 5: [user@localhost Desktop]$ cd jdk-6u22-linux-i586-rpm.bin ./jdk-6u22-linux-i586-rpm.bin bash: cd: jdk-6u22-linux-i586-rpm.bin: Not a directory [user@localhost Des

  • Need Help Choosing a good Inventory App for my iP4

    Hi, I have a lot of photographic/computer and electronic equipment I want to catalogue along with photos of each item. I need to store receipt info, serials, model type etc.. Thus far I have tried: 1.hinventory: I didnt like it as its hopelessly slow

  • Unable to register PDK sample provider

    Hi there, I having a problem registering the provider for the new pdk samples. I followed the recommended steps and got the test page. But when I try to register the provider I get the following: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> An une

  • Error 15401: Windows NT user or group not found. Check the name again

    when adding a windows login on SQL SERVER 2008 R2 below error is throwing Windows NT user or group 'domain\user' not found. Check the name again. I have gone through the link http://support.microsoft.com/kb/324321/en-us & http://support.microsoft.com

  • Model 8830 v4.5 Bluetooth doesn't work with mobile handsfree Parrot systems

    Just updated my 8830 to new software and love the upgrade but my Parrot 3200's installed in all my cars are now not working properly.  When the Blackberry tries to pair-up the Parrot shows a call in progress and disengages the radio.  I have to call