By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,576 Members | 1,399 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,576 IT Pros & Developers. It's quick & easy.

date and onchange...

P: n/a
hi,

i got an interesting problem,

i got this javascript that calls a calendar, date is selected and result
date is insert into a txt field...

<td valign="middle" align="center" bgcolor="<%=bcolc%>">
<input type="text" name="dat" value='10/10/2005'
onchange="ksks()">
<img src="pics/cal.gif"
onclick="show_calendar('document.invdetdet.dat',
document.invdetdet.dat.value);" width="17" height="16" border="0"
alt="Date">
</td>
....
function ksks()
{
alert("alert")
}

the calendar part works. it calls a page, i select a date and it is insert
into dat, but ksks() is never executed as the value property of dat is set
by javascript...

is there a way i can execute ksks()?

regards

mi
Jul 23 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Lee
mirza i said:

hi,

i got an interesting problem,

i got this javascript that calls a calendar, date is selected and result
date is insert into a txt field...

<td valign="middle" align="center" bgcolor="<%=bcolc%>">
<input type="text" name="dat" value='10/10/2005'
onchange="ksks()">
<img src="pics/cal.gif"
onclick="show_calendar('document.invdetdet.dat' ,
document.invdetdet.dat.value);" width="17" height="16" border="0"
alt="Date">
</td>
...
function ksks()
{
alert("alert")
}

the calendar part works. it calls a page, i select a date and it is insert
into dat, but ksks() is never executed as the value property of dat is set
by javascript...

is there a way i can execute ksks()?


onclick="show_calendar('document.invdetdet.dat',
document.invdetdet.dat.value);ksks()"

Jul 23 '05 #2

P: n/a
hi lee,

sure, that is what i thought at first...

but, what happens is the following:
1. small calendar opens ok.
2. i get the alert, i click ok, and the box dissapears. (the calendar
dissapears behind the web app.)
3. i select a date, calendar closes automatically...

so that is not good

what is required is 1 - 3 - 2 sequence.

thanks for your effort nevertheless!

mi

"Lee" <RE**************@cox.net> wrote in message
news:cs*********@drn.newsguy.com...
mirza i said:

hi,

i got an interesting problem,

i got this javascript that calls a calendar, date is selected and result
date is insert into a txt field...

<td valign="middle" align="center" bgcolor="<%=bcolc%>">
<input type="text" name="dat" value='10/10/2005'
onchange="ksks()">
<img src="pics/cal.gif"
onclick="show_calendar('document.invdetdet.dat ',
document.invdetdet.dat.value);" width="17" height="16" border="0"
alt="Date">
</td>
...
function ksks()
{
alert("alert")
}

the calendar part works. it calls a page, i select a date and it is insert
into dat, but ksks() is never executed as the value property of dat is set
by javascript...

is there a way i can execute ksks()?


onclick="show_calendar('document.invdetdet.dat',
document.invdetdet.dat.value);ksks()"

Jul 23 '05 #3

P: n/a
Lee
mirza i said:

hi lee,

sure, that is what i thought at first...

but, what happens is the following:
1. small calendar opens ok.
2. i get the alert, i click ok, and the box dissapears. (the calendar
dissapears behind the web app.)
3. i select a date, calendar closes automatically...

so that is not good

what is required is 1 - 3 - 2 sequence.

thanks for your effort nevertheless!


Then have the page in the popup execute opener.ksks() when you make the
selection.

Jul 23 '05 #4

P: n/a
window.close;opener.ksks();

this works on both IE as well as FireFox

if we change the order then FireFox is unable to reach the second
statement and the window remains open

Jul 23 '05 #5

P: n/a
many thanks lee & sancha
"sancha" <ch**************@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
window.close;opener.ksks();

this works on both IE as well as FireFox

if we change the order then FireFox is unable to reach the second
statement and the window remains open

Jul 23 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.