Code for radio button is not working plz help
checkboxes are working fine but when i put radio code submit button does nothing
plz help
thanks in advance
<%@ page language="java" contentType ="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" import= "java.sql.*,java.io.*,com.anaghan.MyBeans.CmsConnection"%>
<jsp:useBean id="obj" scope="request" class="com.anaghan.MyBeans.DepartmentBean"/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<script language="javascript" >
function cmdOnSelect()
var deptcode=document.DepartmentPage.cmdSelect.value;
DepartmentPage.method="post";
DepartmentPage.action="./vsnlemployee_calldatasheetcallhistory.jsp?flag=select&cmdSelect="+deptcode;
DepartmentPage.submit();
function validate()
var user_etime = document.DepartmentPage.etime.value;
var etime_length = document.DepartmentPage.etime.value.length;
var user_edate = document.DepartmentPage.edate.value;
var edate_length = document.DepartmentPage.edate.value.length;
var user_calltype = document.DepartmentPage.calltype.value;
var calltype_length = document.DepartmentPage.calltype.value.length;
var user_callstatus = document.DepartmentPage.callstatus.value;
var callstatus_length = document.DepartmentPage.callstatus.value.length;
if( edate_length==0 )
alert("Please enter the call date");
return false;
else if( calltype_length==0 )
alert("Please enter the call type");
return false;
else if( callstatus_length==0 )
alert("Please enter the call status");
return false;
else if( etime_length==0 )
alert("Please enter the call timing");
return false;
else if(etime_length!=0 && etime_length!=4)
alert("Entered timing is invalid");
return false;
else if (etime_length!=0)
for (var i = 0; i < etime_length; i++)
valid_characters = new RegExp ("[0-9]", "g");
var part_user_etime = user_etime.charAt (i);
if (!valid_characters.test (part_user_etime))
alert("Special characters like '" + part_user_etime + "' are not allowed in timing" );
return false;
valid_characters = null;
return true;
else
return true;
function cmdOnClick()
if (validate())
DepartmentPage.method="post";
DepartmentPage.action="/anaghan/CallSheet?flag=call";
DepartmentPage.submit()
</script>
<script language="javascript" src="calendar1.js">
</script>
</head>
<body>
<%
String uname=(String)session.getAttribute("employeeName");
if(uname==null)
response.sendRedirect("/Error.jsp?login=Login Session Problem");
%>
<%
String date1="";
String date2="";
%>
<%!
ResultSet rs=null;
Connection con =null;
String conStr="sun.jdbc.odbc.JdbcOdbcDriver";
String tableStr="jdbc:odbc:Anaghan";
%>
<%
String companycode=request.getParameter("cmdSelect");
HttpSession hs = request.getSession();
hs.setAttribute("companycode",companycode);
System.out.println("CALLLLL="+companycode);
%>
<%
String flag="";
String deptcode="";
String commissioningdate="";
String closuredate="";
%>
<%
String a2="";String a1="";
%>
<form name="DepartmentPage" >
<TABLE cellSpacing=0 cellPadding=0 width="100%" border="0" >
<TR>
<TD align=CENTER>
<h2> CALL DATA SHEET </h2>
</TD>
</TR>
<TR>
<div>
<FONT face="Arial " color=#000000 size=2>
<TD valign="top">
<TABLE cellSpacing=15 cellPadding=0 width="100%" border="0">
<TD width="50%" vAlign="top" align=CENTER height=24 bgcolor=#F8F8F8 >
<tr>
<TD align=RIGHT>Select Company - </TD>
<td><SELECT name="cmdSelect" size="1" onChange="cmdOnSelect();">
<OPTION SELECTED></OPTION>
<%
deptcode=request.getParameter("cmdSelect");
response.setContentType("text/html");
ResultSet rs = obj.onSelect();
while(rs.next())
String tempName=rs.getString(2);
%>
<OPTION id= "a<%=tempName %>" value= "<%=tempName%>"> <%=tempName %></OPTION>
<%}%>
</SELECT></td>
</TR>
</TD>
</TABLE>
<TABLE cellSpacing=15 cellPadding=0 width="100%" border="0">
<TR>
<TD>
<table align="center" width="90%" cellspacing="2" cellpadding="2">
<tr>
<td align="center"><h2>Contact Person</h2></td>
</tr>
</table>
<table align="center" width="90%" border="1" cellspacing="2" cellpadding="2">
<tr><th>Name</th><th>Landline</th><th>Mobile</th><th>Fax</th><th>E-mail</th></tr>
<%!
ResultSet result=null;
%>
<%
response.setContentType("text/html");
try{
Connection con = DriverManager.getConnection("jdbc:odbc:Anaghan");
Statement stmt=con.createStatement();
result =stmt.executeQuery("select * from enquiry_details where companycode='"+deptcode+"' ");
while(result.next())
%>
<tr>
<OL><td align ="center"><%=result.getString(9) %></td>
<td align ="center"><%=result.getString(10) %></td>
<td align ="center"><%=result.getString(11) %></td>
<td align ="center"><%=result.getString(12) %></td>
<td align ="center"><%=result.getString(13) %></td></OL>
<tr>
<OL><td align ="center"><%=result.getString(14) %></td>
<td align ="center"><%=result.getString(15) %></td>
<td align ="center"><%=result.getString(16) %></td>
<td align ="center"><%=result.getString(17) %></td>
<td align ="center"><%=result.getString(18) %></td></OL>
<%}
catch(Exception e)
e.printStackTrace();
}%>
</tr></table>
</TD>
</TR>
<TR>
<TD>
<table align="center" width="90%" cellspacing="2" cellpadding="2">
<tr>
<td align="center"><h2>Call History</h2></td>
</tr>
</table>
<table align="center" width="90%" border="1" cellspacing="2" cellpadding="2">
<tr><th>Call Type</th><th>Call Status</th><th>Service Type</th><th>Feedback</th><th>Next Visit</th><th>Call Date</th></tr>
<%!
ResultSet result1=null;
%>
<%
response.setContentType("text/html");
try{
result1=obj.onSelectCallHistory(deptcode);
while(result1.next())
%>
<tr>
<OL><td align ="center"><%=result1.getString(3) %></td>
<td align ="center"><%=result1.getString(4) %></td>
<td align ="center"><%=result1.getString(6) %></td>
<td align ="center"><%=result1.getString(7) %></td>
<td align ="center"><%=result1.getString(9) %></td>
<td align ="center"><%=result1.getString(8) %></td>
</OL>
<%}}
catch(Exception e)
e.printStackTrace();
}%>
</tr></table>
</TD>
</TR>
<TABLE cellSpacing=15 cellPadding=0 width="100%" border="0">
<TD width="50%" vAlign="top" align=CENTER height=24 bgcolor=#F8F8F8 >
<TR>
<TD></TD>
</TR>
<TR></TR>
<TR>
<TD align=RIGHT>
Type of Call - </TD>
<td>
<input type = radio name=calltype value=personal/>personal
<input type = radio name=calltype value=email/>Email</td>
<!-- <TD><SELECT name="calltype" size="1" >
<OPTION SELECTED></OPTION>
<OPTION id= "s" value= "personal"> Personal </OPTION>
<OPTION id= "s" value= "telephonic"> Telephonic </OPTION>
<OPTION id= "s" value= "email"> E-mail </OPTION>
<OPTION id= "s" value= "meeting"> Meeting </OPTION>
</SELECT>
</TD>-->
</TR>
<TR>
<TD align=RIGHT>
Status of Call - </TD>
<TD>
<SELECT name="callstatus" size="1" >
<OPTION SELECTED></OPTION>
<OPTION id= "s" value= "cold"> Cold </OPTION>
<OPTION id= "s" value= "warm"> Warm </OPTION>
<OPTION id= "s" value= "hot"> Hot </OPTION>
<OPTION id= "s" value= "closed"> Connection Executed </OPTION>
<OPTION id= "s" value= "upgrade"> Upgrade </OPTION>
<OPTION id= "s" value= "downgrade"> Downgrade </OPTION>
<OPTION id= "s" value= "shiftingoflocation"> Shifting of Location </OPTION>
<OPTION id= "s" value= "connectionterminated"> Connection Terminated </OPTION>
</SELECT>
</TD>
</TR>
<TR>
<TD align=RIGHT>Date - </TD>
<TD><input type="text" readonly name="edate" id="edate" size="10" value="<%=date1 %>">
<img src="./cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date">
</TD>
</TR>
<TR>
<TD align=RIGHT>
Time - </TD>
<TD><input type="text" size="4" name="etime" maxlength="4"></TD>
</TR>
<TR>
<TD align=RIGHT>
</TD>
<TD>(Write timing in 0000 - 2400 in this format only)</TD>
</TR>
<TR><TD align=CENTER> INFRASTRUCTURE DETAILS
</TD></TR>
<TR></TR>
<TR>
<TD align=RIGHT bgcolor=#00CCFF>
<font color="#CC6600" size=4>Details of service </font></TD>
<TD></TD>
</TR>
<TR>
<TD align=RIGHT>
Circuit Specification - </TD>
<TD><SELECT name="servicetype" size="1" >
<OPTION SELECTED>---Services---</OPTION>
<OPTION id= "s" value= "IPLC"> IPLC </OPTION>
<OPTION id= "s" value= "VPN"> VPN </OPTION>
<OPTION id= "s" value= "ILL"> ILL </OPTION>
<OPTION id= "s" value= "VoIP"> VoIP </OPTION>
<OPTION id= "s" value= "ISDN"> ISDN </OPTION>
<OPTION id= "s" value= "IDC"> IDC </OPTION>
<OPTION id= "s" value= "V-IPLC"> V-IPLC </OPTION>
<OPTION id= "s" value= "contactcenter"> Contact Center </OPTION>
</SELECT>
</TD>
</TR>
<TR>
<TD align=RIGHT vAlign=TOP>
Feedback Details - </TD>
<TD><TEXTAREA wrap="virtual" name="feedback" rows=5 cols=30 MAXLENGTH=100></TEXTAREA></TD>
</TR>
<TR>
<TD align=RIGHT>Next Visit Scheduled - </TD>
<TD><input type="text" readonly name="nextvisit" id="nextvisit" size="10" value="<%=date2 %>">
<img src="./cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date">
</TD>
</TR>
<TR></TR>
<TR>
<TD></TD>
<TD>
<input type="button" name="bill" value="SUBMIT" onClick="cmdOnClick();">
<input type="reset" name="reset" value="RESET" >
</TD>
</TR>
</FONT>
</div>
</TD>
</TR>
</TABLE>
</TD>
<TD vAlign=TOP bgcolor=#FFFFFF>
</TD>
</TR></TABLE>
</form>
<script language="JavaScript">
var cal1 = new calendar1(document.forms['DepartmentPage'].elements['edate']);
var cal2 = new calendar1(document.forms['DepartmentPage'].elements['nextvisit']);
</script>
<script language="javascript">
document.getElementById('a<%=request.getParameter("cmdSelect")%>').selected=true;
</script>
<BR><BR>
<jsp:include page="index-end.jsp"/>
</body>
</html>
If the reset doesn't work, you have to force iPad into Recovery Mode
1. Turn off iPad
2. Turn on computer and launch iTunes (make sure you have the latest version of iTune)
3. Plug USB cable into computer's USB port
4. Hold Home button down and plug the other end of cable into docking port.
DO NOT RELEASE BUTTON until you see picture of iTunes and plug
5. Release Home button.
ON COMPUTER
6. iTunes has detected iPad in recovery mode. You must restore this iPad before it can be used with iTunes.
7. Select "Restore iPad"...
Note:
1. Data will be lost if you do not have backup
2. You must follow step 1 to step 4 VERY CLOSELY.
3. Repeat the process if necessary.
Similar Messages
-
Func- Code for Radio-button in Module-pool Prg.
Hi Friend's.
I have define 2 Radio button
on Module-pool screen.
I am not been able to triger the Radio button in
Pai .
How can i assign the function code for
radio-button in module-pool.
pls can any one help meHi,
For radion buttons, what ever the name you will give that name only will hold that value ( Either selected or not ). But this variable should be declared as global variable in main program.
Still if you want to assign function code, you can assign one like other fields on the screen. -
My vibraton not work plz help me
my vibraton not work plz help me
Well you do one thing!
Download the latest version of iTunes and install it! Here's the link : http://www.apple.com/itunes/download/
After you download iTunes, you connect your iPhone to the computer and sync it once. After that right click on the iPhone under the devices in the sidebar on the left and hit backup. After it's done. Hit the restore button. It will download the latest version of iOS and it's gonna take a while to download it. After download is completed, it will start restoring your iPhone with the latest iOS, it will take few minutes, and you're done installing the latest iOS in your iPhone.
This should solve your problem anyhow -
I have unabled 5 fingure gesture now not able to perform any task,also my power button is not working,please help me in removing this gesture,using I phone 4
I have unabled 5 fingure gesture now not able to perform any task,also my power button is not working,please help me in removing this gesture,using I phone 4
-
IN Clause with Ampersand(Lexical Parameters) not working plz help
hi
I m writing the following query but it is not working. plz help how can i apply ampersend(lexical parameter) with IN clause.
select * from emp where to_number(empno) IN (&p_1);
thnxHi,
Try to change the query as
SELECT <field_list> FROM EMP &P_1and in the AFTER PARAMETER FORM trigger write the WHERE condition including the WHERE clause, Column_Name etc.
Hope this helps.
Regards,
Manu. -
My ipad has a black screen and the power button is not working. Help!
This is the second time my ipad screen has gone black. The power button is not working. I reset the ipad about two weeks ago when this happened. However, this time I am not able to get itunes to recognize the device. It keeps asking to respond from the ipad (obviously with a black screen that isn't going to happen). Im not sure what to try next...thoughts?
Have you tried to give it a reset?
Reset
Hold down the sleep and home keys for about 20 seconds. When you see the silver apple, let go and let it reboot. No data will be lost. -
Plz help my ipad mini is just bringing the apple logo again and again and it is not working plz help
plz help my ipad mini is just bringing the apple logo again and again and it is not working plz help
If the reset doesn't work, you have to force iPad into Recovery Mode
1. Turn off iPad
2. Turn on computer and launch iTunes (make sure you have the latest version of iTune)
3. Plug USB cable into computer's USB port
4. Hold Home button down and plug the other end of cable into docking port.
DO NOT RELEASE BUTTON until you see picture of iTunes and plug
5. Release Home button.
ON COMPUTER
6. iTunes has detected iPad in recovery mode. You must restore this iPad before it can be used with iTunes.
7. Select "Restore iPad"...
Note:
1. Data will be lost if you do not have backup
2. You must follow step 1 to step 4 VERY CLOSELY.
3. Repeat the process if necessary. -
My i phone4 camera not work plz help
my i phone4 camera not work plz help
Reset your phone by holding the power/lock button at the top and your home button at the bottom until you see the Apple logo on the screen.
Once phone is fully rebooted try again. -
hi i installed wrong iousbfamily on osx and now my login screen is frozen, keyboard and mouse not working plz help
How and why did you install that? What steps did you take in that process. I can then help with some steps to undo them.
-
My iphone's setting menu is not working.plz help me
When i enter into the setting tab all the menu is not working i cant eneter to any item there or even i cant scroll down.plz help me
Try hard resetting the phone.
Hold down the sleep/wake button and the home button at the same time until the apple appears and let the phone reset itself.
Let me know if you've already tried this or if it works. -
Code for send button. I need your help, guys!
I would appreciate a Java code for a "send" button or a "send page" link that would send a complete web page to my email address. I have some forms for my users to fill out online and send them to me, and so the problem I am having is that when I use FrontPage forms (text boxes, check boxes, radio buttons, etc.,)for them to use, I am getting the input from those form only. What I NEED to get is the complete page, exactly what the users see on the screen with all the text in the forms. The need for this is that these forms (reports) will later be printed out, so they MUST look exactly as on the screen.
So I am thinking a bit of Java code could help me out. Would you give me a hand guys? Thanks!Do some JNI and take a snapshot of the screen, it is the ONLY way I know to ensure EXACTLY what you ask for: even the HTML from the page may look different than what the users sees when filling out the form when that HTML is displayed on a different machine and system.
Otherwise your agument seems a little trivial and you could just replicate the form on your local machine and insert the data you captured with a normal post operation into the local copy of the HTML form. -
Formula not working, Plz help
Hi all i have one scenario for formula$
I am calculatingYTD value in period dim and one more dime CATGORY and INDICATOR
scenario is wen indicator member is ID3 we have to calculate ytd values and we have to displaythe values for ytd crossing(which is in cat dim)
Structure$
TIME
2009
YTD09
CATOGORy
....Mtd
....;;YtD(formula)
......y_tech
indicator
Id12
....ID121
....ID123
..........1231
..........1232
ID3
....ID31(+)
....ID123(/)(sheredmember)
iam using formula
iif([INDICATOR].currentmember=[ID-3],[Ytd09],[y_tech]) , its validating
but its not working , I am new to mdx formulas , plz can any one help on this
can any one give the link for mdx formulas syntax and sample formulas
Thanks
Edited by: user8815661 on 26 mars 2010 06:19
Edited by: user8815661 on 26 mars 2010 06:33I am not sure what your complete formula looks like,
But in your IIF = condition, use OR instead of commas - pretty basic, dont know for sure if it will work.
post your formula if you need more help -
I used to use this Java Scrip before updating my FireFox
now its not working, the script is as under
javascript:%20void%200
this script open more then 50 pages in sequence as per the http addresses given on few web pages.
please helpAll I am trying to do is enable "one click" functions for downloading gifts on Farmtown. I am on Windows Vista; have upgraded to Firefox5; updated Java today. When I try to download stuff from www.farmtown-links.com, a tab appears with "javascript:%20void%200" I have NO IDEA what this all means...I need an easy fix, PLEASE. I know a lot of FT people are going to this site. I have also added this addon: http://www.grizzlyape.com/addons/multilinks/. Still no luck. Even though some claim Chrome works better, I am still a happy camper w/Firefox and hardly ever use IE.
-
Need code for the following chess game..plz help me out
Hi,
Problem:Move the chess piece "KNIGHT" from any location on a "3 x 3" Chess Board and make it go to the far right hand bottom corner.Chess Board in the problem is not the usual Chess Board of 8 x 8.KNIGHT starting position may be any position on board.Program should exit when knight moves to 3 x 3 corner.Here is how my Chess board looks.
|.... |.... |.... |
|.... |.... |.... |
|.... |.... |Queen |<<--The Queen should reach this position
Remember: KNIGHT moves in specific way such as 2 steps in one direction and 1 step left/right.If the KNIGHT starts are position (2,2) then it cannot move further and you have to throw exception with some error message.
Run command: "java <some class> x y", where x is x-coordinate and y is y-coordinate(starting position of Knight) on the chess board. For this problem x & y could be 1(min) and 3(max) values and any value(2) in between.
Deliver : 1) Send me the java code for above problem.
2) Java code should compile and run.
3) I will be interested in "Object Oriented Design" thaught process.
4) Your coding style
5) Javadoc
6) Makefile
I would be more interested in your class design, interface design and error handling.
please mail the solution to [email protected]
thanks n regards
ChinuHi, Here Knight moves like horse. Queen doesn't
exist. If knight moves to (3,3). Game will be over.
I am facing problem to move knight from one point
to another point. And also i have some confussion on
selecting interfaces and classes.<font size="10000">do your own homework</font> -
My iphone 5 has just stopped giving any sound no ringtones, no key clicking or button sounds nothing at all. And the home button has stopped working. Has anyone heard of software 6.1.4 being corrupt Im just updating software at the moment to 7.1. If anyone can offer a pieace of advise would be much appreciated.
MANY THANKS
JAYThe iPhone warranty is not international and as you purchased in
Malaysia the warranty is only valid in Malaysia
You could try taking to an iPhone Authorised service provider
in India but there have been many similar posts to yours
and I am not aware of them assisting with an iPhone from
outside India
Maybe you are looking for
-
Customer Master Text data label display in BEx query
Hi, In my query output i have the customer number and its text displayed. The data comes from customer master infoobject. But the label is displayed only for customer number. But I need the label for text also needs to be displayed. Kindly let me kno
-
Need help with an error message: Can't repair volume.
Hi, folks. While checking my HD with Disk Utility, I found a message error. It says that I have to repair the disk but the button "Repair Disk" is not available. The message is copied below... if anyone can read it and help me, I'd appreciate. Verify
-
Why does copy and paste not work here? I'll type again: update to 7.1.1 says it's 22.2 MB. Why does it require 1.0 GB to install? I have just 613 MB free.
-
I am not able to use "read out loud" for a pdf book file. I get this error "Read out loud cannot be activated for this document because it's permissions do not allow for content copying for accessibility." I checked under document restrictions and t
-
Itunes 6.0.3 won't launch
I just upgraded my itunes to 6.0.3 and now my itunes won't even open. it launches for a second and then quits. i'm not getting a message or anything saying there was an error. how can i fix this so i can get into my itunes?