vBulletin - Submit articles - Find jobs - Wordpress Theme - 住宅ワークなら内職.jp

PDA

View Full Version : Javascript window.confirm issue


daniel50096230
Dec 19th 2008, 1:05 am
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/>

lp1051
Dec 19th 2008, 5:29 am
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?

daniel50096230
Dec 19th 2008, 6:40 am
thanks,your solution is prefect to me.....I appreciate your help much.........thanks for your help...............