That's exactly what my question is ....
See the problem that i'm facing is that .. the onKlick code is on the image which is hyper linked .. and what actually happens in the program is that when i click on the image the calendar appears .... i.e. the iframe code ...through which the calendar appears ....
NOW is there a way i can attach a java script code on the click of the iframe ..(please see the code above) coz i tried to attach a refresh java script code on the onclick of the iframe ... but it didn't work ... ! Does the iframe have any onclick thing ..!???
Could u plz help me on just one thing:
-------------------------------------
In my code the onChange event doesnot get triggered ... even though the text box data is getting changed ... i'm posting my code below ... plz do let me know where i am going wrong...
Only when i select the text box and write something into it and then press the tab key then the onChange event gets triggered .....
Plz could u rectify my code such that when ever any thing is selected into the text box ..a event should be fired saying that the text box data changed..!
Plz note that the event is to be on the text changed of the text box and not on combo selection
ur help will be really apprecaited
Thanxs
code.......
<HTML>
<HEAD>
<script language = "javascript">
function check(pass)
{
var db=pass;
return db;
}
</script>
<script language = "javascript">
function check1()
{
document.forms[0].submit();
}
</script>
<script language = "javascript">
function check2()
{
alert('changed');
}
</script>
<TITLE>Hello World!</TITLE>
</HEAD>
<FORM name="demoform">
<body>
<%String
test = "";
String test2 = "default";
if(request.getParameter("D1")!=null)
{
test = request.getParameter("D1");
}
test2 = test;
%>
Date Field:
<input name="dc" onChange = "check2();" size="11" value = <%=test%> >
<select size="1" name="D1" onChange = "check1();">
<option selected>Select Time wanted</option>
<option>dasdas</option>
<option>22</option>
<option>44</option>
</select><p> </p>
<p> </p>
<p> </p>
<p>
</form>
</BODY>
</HTML>