Javascript Confirm box dependent on results of query

Hi
I'm using Apex version 3.2.1 and I'm looking for a way to do the following, any help much appreciated:
A javascript confirm box will appear when the user submits a page if the result of a query returns anything, the query would look something like this....
SELECT * FROM LINKEDPROJECTS
WHERE ENV_ID = :P18_ENV_ID
AND COMP_ID = :P18_COMP_ID
AND DATE_FROM <= to_date(:P18_DATE_TO, 'DD-MON-YY')
AND DATE_TO >= to_date(:P18_DATE_FROM, 'DD-MON-YY')
If it doesnt return any data the page will submit as normal, if it does return any data the confirm box will appear, and the message will also be driven by the result of a query.
So the message would be something like....
Project(s) +"Select NAME FROM PROJECTS WHERE ID IN (SELECT PROJ_ID FROM LINKEDPROJECTS WHERE ENV_ID = :P18_ENV_ID+
+AND COMP_ID = :P18_COMP_ID+
+AND DATE_FROM <= to_date(:P18_DATE_TO, 'DD-MON-YY')+
+AND DATE_TO >= to_date(:P18_DATE_FROM, 'DD-MON-YY')"+ have this environment booked on the dates you selected.  Do you want to continue with the booking?
Selecting yes submits the page, selecting no returns them to the page.

In a nutshell (and some pseudo code):
The button URL would look something like "javascript:beforeSubmit()" without quotes and where beforeSubmit is the name of your function.
The function would look something like:
function beforeSubmit() {
  var runQuery = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=RunTheQuery',1);
  var result = runQuery.get();
  if (result = 0) {
    if (!apex.confirm('Submit page?")
      return;
  doSubmit('SUBMIT');
{code}
The application process, called "RunTheQuery" in this example, is a PL/SQL block that runs the query and return the value using the htp.prn function.
There are probably errors in the above as I just did this off the top of my head, and you will probably need to tweak it somewhat.  But hopefully you get the idea.
Mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Button, Javascript Confirm Box and Process

    I have a button on a page. When someone click on the button, depends on the value on a item, if it's not null, then pop up a confirmation box, if the item is null, the call a process directly. If the confimation is true, then call the same process, otherwise page won't be to submitted.
    I' m still on version 1.6.
    Anyone could give me some help?
    million thanks!
    Ran

    Thans for the reply.
    Here is what I did:
    I created another item called itemB. And put a javascript function on the HTML Header. And put a image button and use onclick to trigger the function. Based on the confirm is true or false, the javascript will set the itemB to two different values. And the process will run based on the value of the itemB. It seems to work sometimes, but not always. I don't know if I am missing anything or maybe it's not a right way to do it. Could someone take a look for me. Here is the javascipt.
    <script language="JavaScript" type="text/javascript">
    function checkMissing(formItem,formItem2)
    var t1 = document.getElementById(formItem).value;
    if (t1 != null)
      conmod = confirm("There is/missing parts, Do you wnat to continue to close the seesion?");
      if (conmod == true)
       document.getElementById(formItem2).value = "CLOSE";
       doSubmit();
      else if (conmod == false)
        document.getElementById(formItem2).value = 0;
      else
       document.getElementById(formItem2).value = "CLOSE";
       doSubmit();
    </script>

  • Call a process based on the click of a javascript confirm popup box

    I have created a function to create a javascript confirm popup box which calls an update process called Reactivate_save(), see below:
    function reactivate_save()
    var r=confirm("Do you wish to save pending changes?")
    if (r==true)
    document.getElementById('Reactivate_Save').call();
    I want to make the update process conditional on clicking the 'ok' button inside the popup box.....Is this possible?
    I thought that I could reference it by using:
    value in expression 1 = expression 2
    reactivate_save() = true or 1
    Neither of these worked and wondering if there is something else that I can use?
    Thanks,
    Chris

    Hi,
    Your function is in Javascript while the process is PL/SQL. What you need to do is somewthing like this
    if (r==true)
    document.getElementById('Reactivate_Save').call(); // not sure what this does so left it as it is
    doSubmit('MY_REQUEST');
    }You can now use the 'MY_REQUEST' request, or whatever else you choose to call it, in the process condition using
    1. Request = e condition type by entering MY_REQUEST in the Expression 1
    or
    2. PL/SQL Expression type with :REQUEST = 'MY_REQUEST' in expression 1
    Note : In Apex 3 and below you need to add a semi colon at the end of PL/SQL Expresssions
    Regards,
    PS : Noticed that this is the same as call a process based on the click of a javascript confirm popup box
    Edited by: Prabodh on Sep 28, 2010 9:05 PM

  • CONFIRM BOX NOT WORKING IN FIREFOX

    Hey, can anyone help me: I tried almost everything, the following code runs perfectly in Internet Explorer and the confirem box prompts the user, but when i run it in Firefox i do not get the confirm box, please help.
    This is the code:
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <html>
    <head>
    <title>View Clients Application for Firearm User License!</title>
    <link rel="stylesheet" type="text/css" href="Style.css"/>
    <script type="text/JavaScript">
         function validation(){
                   if (confirm('Are you Sure you want to Continue?')){
                                  var temp2=sampleform.atype.value;
                   var temp1=sampleform.firstinput.value;
                   var licnum=temp2.substring(0,1)+temp2.substring(8,9)+temp1.substring(0,4)+temp1.substring(5,7)+temp1.substring(8,10)+sampleform.enterFname.value.substring(0,1)+sampleform.enterLname.value.substring(0,1);
                   sampleform.hide3.value=licnum;
                   return true;
                   else
                   alert("noop");
                   return false;
         }//ends the validation function
         function tester(){
                   if (((sampleform.hide1.value!="")&&(sampleform.hide2.value!=""))&&((sampleform.hide1.value!="null")&&(sampleform.hide2.value!="null"))){
                        sampleform.process.disabled=false;
              }//ends tester function
    </script>
    </head>
    <body bgcolor="black" background="officer_bg.JPG" onLoad="tester()" bgproperties="fixed">
    <h1 class="heading1" align="center">Client Application Record for ${type}!</h1>
    <table width="100%">
         <tr><td align="left" width="60%">          
    <table width="100%">
    <c:forEach var="ar" items="${thisclient}">
    <form action="genlicense" method="post" onsubmit="return validation()" name="sampleform">
                             <input type="hidden" value="${ar.clientrecnum}" name="cnum"/>
                             <div class="heading1">Clients Information..</div>
                             <hr/>
                             <tr><td class="boldtext">Identification Number:</td><td><input type="text" value="${ar.idnum}" name="enterId" class="noInputbox" readonly/></div></td></tr>
    <tr><td class="boldtext">First Name:</td><td><input type="text" value="${ar.fname}" name="enterFname" class="noInputbox" readonly/></td></tr>
    <tr><td class="boldtext">Last Name:</td><td><input type="text" value="${ar.lname}" name="enterLname" class="noInputbox" readonly/></td></tr>
    <tr><td class="boldtext">Contact Number:</td><td><input type="text" value="${ar.contactnum}" name="enterHphone" class="noInputbox" readonly/></td></tr>
         <tr><td class="boldtext">Address:</td></tr>
    <tr><td align="center" class="boldtext">Street:</td><td><input type="text" value="${ar.street}" name="enterSaddress" class="noInputbox" readonly/></td></tr>
    <tr><td align="center" class="boldtext">City:</td><td><input type="text" value="${ar.city}" name="enterCaddress" class="noInputbox" readonly/></td></tr>
    <tr><td align="center" class="boldtext">Town:</td><td><input type="text" value="${ar.town}" name="enterTaddress" class="noInputbox" readonly/></td></tr>
    <tr><td class="boldtext">Nationality:</td><td><input type="text" value="${ar.nationality}" name="enterNationality" class="noInputbox" readonly/></td></tr>
    <tr><td class="boldtext">Date oF Birth:</td><td><input type="text" value="${ar.dateofbirth}" name="firstinput" class="noInputbox" readonly/></td><td></td></tr>
    <tr><td class="boldtext">Photo:</td><td><input type="text" value="${ar.photo}" name="pto" class="noInputbox" readonly/></td></tr>
    </c:forEach>
    <c:forEach var="ar" items="${thisapp}">
                             <input type="hidden" name="atype" value="${ar.applicensetype}"/>
    <tr><td class="boldtext">License Type:</td><td class="noInputbox"><h2>${ar.applicensetype}</h2></td></tr>
    <tr><td class="boldtext">State the type of Firearm, client wishes to Purchase and Sell:</td><td><input type="text" value="${ar.atypefirearm}" name="ftype" class="noInputbox" readonly/></td></tr>
    <tr><td class="boldtext">State the Ammunitions, client wishes to Purchase and Sell:</td><td><input type="text" value="${ar.afirearmammos}" name="ammotype" class="noInputbox" readonly/></td></tr>
    <tr><td class="boldtext">Firearms Order Total for a Period:</td><td><input type="text" value="${ar.afirearmquantity}" name="famount" class="noInputbox" readonly/></td></tr>
    <tr><td class="boldtext">Ammunitions Order Total for a Period:</td><td><input type="text" value="${ar.aammosquantity}" name="aamount" class="noInputbox" readonly/></td></tr>
    <tr><td class="boldtext">Results of the Application:</td><td><input type="text" value="${ar.appresults}" class="noInputbox" readonly/></td><tr>
    <tr><td colspan="2"><u><b>Address of Business that would be Distributing Firearms and Ammunitions:</td></b></u></tr>
    <tr><td class="boldtext">Street Address:</td><td><input type="text" value="${ar.bsaddress}" name="saddress" class="noInputbox" readonly/></td></tr>
    <tr><td class="boldtext">City Address:</td><td><input type="text" value="${ar.bcaddress}" name="caddress" class="noInputbox" readonly/></td></tr>
    <tr><td class="boldtext">Town Address:</td><td><input type="text" value="${ar.btaddress}" name="taddress" class="noInputbox" readonly/></td></tr>
    <tr><td class="boldtext">Name of the Business:</td><td><input type="text" value="${ar.bname}" name="nbusiness" class="noInputbox" readonly/></td></tr>
    <tr><td class="boldtext">Facts that proves applicant to become a Licensed Dealer:</td><td><textarea name="facts" cols="30" rows="2" value="${ar.proofofapp}" class="noInputbox" readonly>${ar.proofofapp}</textarea></td><tr>
                             <tr><td class="boldtext">Application Date:</td><td><input type="text" value="${ar.dateofapplication}" name="appdate" class="noInputbox" readonly/></td></tr>
    <tr><td class="boldtext">Application Time:</td><td><input type="text" value="${ar.timeofapplication}" name="apptime" class="noInputbox" readonly/></td><tr>
    <tr><td class="boldtext">Results of the Applicattion:</td><td><input type="text" value="${ar.appresults}" name="fresult" class="noInputbox" readonly/>
         </c:forEach>
    <tr><td align="center"><input type="submit" name="process" value="Generate License" class="genlicButton" disabled="disabled"/></td><td align="left"><input type="button" class="genlicButton" value="BACK" onClick="history.back()"/></td></tr>
    <tr><td colspan="2"></td></tr>
    </table>
         </td>
         <td valign="bottom">
              <table width="100%" border="0">
    <tr>
    <td valign="bottom">
              <iframe name="confirm" noresize="" height="200" width="490" src="form2regs.jsp" frameborder="0"></iframe>
              </td>
    </tr>
    </table>
         </td></tr>
    </table>
    <hr/>
         <input type="hidden" name="hide1" value='<%=request.getParameter("pname")%>'/>
              <input type="hidden" name="hide2" value='<%=request.getParameter("choice")%>'/>
              <input type="hidden" name="hide3" value=''/>
              <input type="hidden" name="hide4" value='<%=request.getParameter("pname")%>'/>
    </form>
    </body>
    </html>

    Off the top of my head, confirm is a function of the window object, so you can call it like window.confirm(......whatever....
    I think it should work without explicitly referencing the window object (ie like you have done) but maybe it depends on the firefox version.
    Failing that, some pop-up blockers might block confirm boxes (i know some block alert boxes, anyway) so try disabling any pop up blockers.
    Thirdly, this is really (I reckon) a Javascript issue, so if you don't have any luck on this forum, you might have better luck on a javascript forum (such as sitepoint.com or webdeveloper.com). If you post the HTML output from the server to the browser, then someone there might be able to help.

  • How can I display a confirm box using JSP?

    Dear All,
    I am new to the Java language; please help!
    What I'd like to do is to prompt the user, within a loop, to click OK to continue the loop or CANCEL to exit the loop. I've tried to use JavaScript in conjunction w/ Form submittion to handle the parameter passing ('true'/'false') of the confirm box to a JSP. Yet, every form submission will cause the JSP page to re-load from the top which is the incident I'd like to avoid.
    Is there anyway I can have a confirm box written using JSP? Please help!!
    Thanks,Wing.

    if you do any modifications in the jsp page the whole page will be refreshed to show the latest result after modification.
    if you dont want the whole page to be refreshed
    you can pass the control to another page after the confirm box or you can use frames to your interest.

  • Javascript alert boxes are wrapped in Windows 7 with IE 8

    I can't count the number of JavaScript alert boxes I have throughout my systems and they have always made the transition between IE browsers from 6 to 8 without a hitch.  Without a hitch until I setup my first Windows 7 machine.  It is a 64 system that has both 32 & 64 bit IE browsers.
    It doesn't matter which of the two versions I use, the JavaScript messages that I have so carefully crafted with just the proper layout are now wrapped.  The resultant text in the new W7 popups is almost unintelligible because it is so badly scrambled/wrapped on the new white background.
    Since an alert box is simplicty itself, there is no way that I can think of to change the inherent size of the box.
    Has anyone else notice this phenomena???   If so, do you have a way around it short of redoing all of the text in the effected boxes???
    Len
    XP machine's JavaScript Alert popup in IE 8
    W7 machine's JavaScript Alert popup in IE 8 with wrapped text

    HMM I have the same problem. My researches suggest that the Zone.Identifier ADS is still being used for the internet zone, but not the Intranet zone. I too can get an intranet location out of IE, but not by querying Zone.Identifier eg using Powershell. This
    issue is present in XP as well as Win 7. It appears to extend to trusted zone ids.
    One hypothesis is that this is being stored in hidden form to prevent zone ids that decrease security being applied by malware.
    I had thought that maybe the intranet zone id was only present during download - but your experiment suggests otherwise.

  • Confirm box or alert box need twice click

    I  recently install safari on my Window XP System. I use it to visit a web site,if there is a button can popup a confirm box,I need to click[OK] twice to close it. Then I write a HTML page with javascript to test it.
    when I  write the javascript function confirm() or alert() in the  onload() event,it works well,click once and it's closed.
    but when I write the javascript function confirm() or alert() in a button click event, I need to click twice to close it.
    I think it's a bug, and I have no idea to deal with it.
    By the way,My safari version is 5.0.4
    How to fix it? anybody who can help me?

    Dear Carolyn,thanks for your reply.
    but, our customer don't want to update the safari version recently.
    anybody who is interesting in this problem can run the simple program  just by opening the html file by safari.
    create a file named test1.html
    CODE:
    <html>
    <body onload="confirm('OK?');">
    </body>
    </html>
    test result: It works well,  the confirm box is clicked once  and  closed.
    create a flie named test2.html
    CODE:
    <html>
    <body>
    <input type="button"  value="test" onclick="confirm('ok')" />
    </body>
    </html>
    test result: the confirm box need click twice  to  close.

  • 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.

  • Javascript alert box due to inactivity

    Can anyone give me an example how to use javascript to display an alert box after a certain time of inactivity?

    After drag it is not going to "String name=request.getParameter("fname")".....i
    debugged and confirmed this.
    A similar issue was reported in IE9 also. Please find the link for more details
    https://connect.microsoft.com/IE/feedback/details/793230/javascript-alert-box-duplicated-if-moved-ie-9

  • Javascript  Confirm Based on server time!!

    Hello Everybody,
    I want to raise a javascript confirm dialog box based on the server time. On button click, I want to raise the following code if the time is between 11 am to 24pm.
    E.g.
    IF l_time BETWEEN '11:00' AND '24:00' THEN
    htp.p('<script>');
    htp.p('var r=confir("Do you want to proceed?");
    htp.p('........so on');
    htp.p('</script>');
    ELSE
    -- just submit the page
    END IF;
    Any help will be appreciated!!
    Thanks,
    Parveen

    Hi,
    a.Always mention the Apex version, in every post.
    b. Always enclose your code in a pair of tags to make is more readable.
    Javascript can read the local machine time. If you want to access the server time you will need to use PL/SQL or SQL for that and pass that to the javascript function.
    Any specific reason why you are generating the JS through PL/SQL? Its so much easier to decalre the function in the Page HTML Header rather than doing htp.p.
    Regards,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to redirect the confirmation box without refresh

    hello
    friends i have one problem Am having confirmation box with ok,cancel option,when i clicked ok button i will call the another method and then redirecting same page using struts.Now i used normal javascript its working but page will take more time for refresh the page
    heIp me..i want solution for page refreshing using script or ajax?

    Hi,
    Good day to you.
    Apologize for quoting "Parallel" port. It is a in-built 25pin serial connector placed next to regular 15 pin serial port.
    Just to make a point here, this 25 pin serial connector has an external converter attached with other side having RJ45 jack.
    CAT5 cable connected between switch port to this RJ45 jack.
    I did tested this converter with another machine and could able to access the display on my console server. So it seems to be the connectivity from serial port to switch port works fine.
    Adding to that, this ultra 5 box with the current connectivity set up was working fine until I rebuild this machine. I was very well accessing this box thro my console server. There was no changes done except rebuilding the operating system.
    I think some work needs to be done at the ultra 5 box level to get this 25pin serial connector to act.
    Thanks.

  • Query SQ02 : restriction lines result of query

    Hi everybody,
        I have prb with a query. I have created a query and infoset. I have join tables .. and I would like to add condition of clause 'where' to restrict the result of query depending on the dates. Those dates are not given in the selection screen but depends on the results of a one table included in infoset.
    somebody has idea ?
    Thanks.
    Maya

    Hi,
    In the infoset you can write code to restrict the lines..
    GO to the infoset in change mode..
    click the extras button..
    click the code tab..
    choose the code section.."Records processing"
    In that you will have the table structures available...use the check statement to filter the data..
    Ex..
    CHECK VBAK-ERDAT = SY-DATUM.
    Thanks
    Naren

  • Js-confirm box with request and passing value: incorrect url

    Hi folks!
    Scenario: User clicks on link-column field in tablular form, Confirm box pops up with a confirmation message, with "OK" generates a request and should pass a value from the form into an item for further processing.
    The URL in the column link as of now looks like that:
    javascript: apex.confirm("message goes here...", {request:"EQDONE", set:{"P2100_X": "#EQMID#"}});For some reason just nothing happens. When I omit the "javascript:", I get an unvalid-url error message. But if I change the procedure name, shoudln't I get some error message also?
    Please tell me what's wrong. Thank you! :)

    Hmm... Ok, makes sense... a little.
    The use of (in my case) #EQMID# works, if the target is not URL but "Page in App", and you use the Column Link Dialog fields "Name" and "Value", but maybe because at this point it gets renderes into html and not when called from a javaScript function? Thats how I understand it now.
    However: I have just looked into the html-sourcecode. The java Script call IS actually fully rendered with the corrosponding IDs.
    This is a sample of one table row:
    <tr class="even"><td  align="left" headers="Erfasst">13.08.2012</td><td  align="left" headers="KundenNr">4784668</td><td  align="left"
    headers="Kontrolle">XML-Abrechnung - Abrechnungsart überprüfen bei KundenNr: 4784668</td><td  align="left" headers="Details">TD, STEWEAGSTEG_LF:
    Papier+Archiv (GK)</td><td  align="left" headers="Ausnahme bis">-</td><td  align="left" headers="bearbeitet von">-</td><td  align="center" headers=
    "'ERLEDIGT'"><a href="javascript: apex.confirm("message goes here...", {request:"EQDONE", set:{"P2100_X": "34"}});" ><img src="wwv_flow_file_mgr.get_file?
    p_security_group_id=6519817386341009&p_flow_id=150&p_fname=ausnahmeBtn_check.png" alt="" title="Fehlerhaften Verrechnungstyp im SDK-PS ausbessern
    und Eintrag als erledigt kennzeichnen."></a></td><td  align="center" headers="'AUSNAHMEREGELUNG'"><a href="f?p=150:2100:1212226464451606:EINGAU
    SNAHME:NO::P2100_KUNU_AUSNAHME,P2100_EQMID,P2100_DATEPICK_AUSN:4784668,34," ><img src="wwv_flow_file_mgr.get_file?p_security_group_id=
    6519817386341009&p_flow_id=150&p_fname=ausnahmeBtn.jpg" alt="" title="Diesen Kunden als Ausnahmeregelung bis zu vorgegebenem Datum deklarieren.">
    </a></td></tr>The set statement containe the correct ID in each row! Here 34.
    So, according to http://docs.oracle.com/cd/E17556_01/doc/apirefs.40/e15519/javascript_api.htm#AEAPI274 , it should work.
    Anyway, I will try your suggestion using the fnn array.
    Edited by: tpetri on 16.08.2012 08:34

  • Confirm Box from PL/SQL process

    Hi all,
    I am using Apex 4.1. I have a page from which on cilck of submit button, a process runs. Now this process checks for certain page item values and based on them, a confirmation box is required. Now based on what the user chooses, either a procedure should be called or no action should be taken. I have written the following code but it does not seem to work.
    declare
    v_count number;
    begin
    v_count:=0;
    FOR i IN 1 .. apex_application.g_f07.COUNT
    LOOP
    if (apex_application.g_f07 (i) is not null) then
    v_count := v_count + 1;
    end if;
    end loop;
    if (v_count > 0)
    then
    htp.p('<script type="text/javascript">');
    htp.p('
    var r=confirm("Data entered for Saturday, do you want to proceed?");
    if (r==true)
    PR_TIMESHEET(:P11_PROJ_REF,:P11_RELEASE_ID,:P11_EMP,:P11_DATE,:no_of_rows);
    else
    htp.p('</script>');
    else
    PR_TIMESHEET(:P11_PROJ_REF,:P11_RELEASE_ID,:P11_EMP,:P11_DATE,:no_of_rows);
    end if;
    end;
    I dont know much about Javascript, just got this code through google.....
    Any help would be appreciated.
    Thanks in advance.

    rest_in_peace wrote:
    Hi all,
    I am using Apex 4.1. I have a page from which on cilck of submit button, a process runs. Now this process checks for certain page item values and based on them, a confirmation box is required. Now based on what the user chooses, either a procedure should be called or no action should be taken. I have written the following code but it does not seem to work.
    declare
    v_count number;
    begin
    v_count:=0;
    FOR i IN 1 .. apex_application.g_f07.COUNT
    LOOP
    if (apex_application.g_f07 (i) is not null) then
    v_count := v_count + 1;
    end if;
    end loop;
    if (v_count > 0)
    then
    htp.p('<script type="text/javascript">');
    htp.p('
    var r=confirm("Data entered for Saturday, do you want to proceed?");
    if (r==true)
    PR_TIMESHEET(:P11_PROJ_REF,:P11_RELEASE_ID,:P11_EMP,:P11_DATE,:no_of_rows);
    else
    htp.p('</script>');
    else
    PR_TIMESHEET(:P11_PROJ_REF,:P11_RELEASE_ID,:P11_EMP,:P11_DATE,:no_of_rows);
    end if;
    end;
    I dont know much about Javascript, just got this code through google.....
    Any help would be appreciated.
    Thanks in advance.Does this help? javascript in pl/sql process block

  • How do i stop/disable the confirm box when i want to navigate to a different page?

    every time i try to refresh page, or hit the back button a confirmation box appears, resulting in constantly having to hit the return button, how do i stop this from happening?

    This issue can be caused by gadgets on the Facebook page.<br />
    You will have to check that out by removing each of them until you find the culprit.<br />
    If you added or updated gadgets recently than start with those.

Maybe you are looking for