1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Javascript window.confirm issue

Discussion in 'JavaScript' started by daniel50096230, Dec 19, 2008.

  1. #1
    Help needed here....I have the following codes.....If the user click "confirm1",then the codes start from "org.tempuri.canceltravelbooking.....until java.lang.string result......"should put after the confirm by the user....May I know how should I put inside the confirm messagebox????

    
    <%-- start web service invocation --%><hr/>
        <%
        try {
            if(request.getParameter("btnCancel")!=null)
                {%>
                <script type="text/javascript">
                 
                 var confirm1 = window.confirm("-------------")
                  if(confirm1)
                      {
    
                      }
                 </script>
    
                   <%}           
            org.tempuri.CancelTravelBooking service = new org.tempuri.CancelTravelBooking();
    	org.tempuri.CancelTravelBookingSoap port = service.getCancelTravelBookingSoap();
    
    	java.lang.String bookingID = c;
    	java.lang.String destination = a;
    	java.lang.String date = b;
    	java.lang.String personAvailable = d;
    	// TODO process result here   
    	java.lang.String result = port.cancelBooking(bookingID, destination, date,   
           personAvailable);                      
        } catch (Exception ex) 
          {
    
          }
        %>
        <%-- end web service invocation --%><hr/>
    
    Code (markup):
     
    daniel50096230, Dec 19, 2008 IP
  2. lp1051

    lp1051 Well-Known Member

    Messages:
    163
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    108
    #2
    Hi, if you mean that after user clicks OK, org.tempuri and java.lang is executed, you can write it directly as :
    if(confirm("-----------------")) {
    //put your code here - user clicked OK
    } else {
    //here user clicked Cancel
    }
    Does it solve the question?
     
    lp1051, Dec 19, 2008 IP
  3. daniel50096230

    daniel50096230 Guest

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks,your solution is prefect to me.....I appreciate your help much.........thanks for your help...............
     
    daniel50096230, Dec 19, 2008 IP