473,408 Members | 1,772 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

date and onchange...

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
5 1824
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Steve Wright | last post by:
I am trying to validate if an entry on a form is a date. I have adapted code I found here http://www.codingforums.com/archive/index.php/t-14325 as below but I can't seem the get the results that I...
1
by: simina | last post by:
Hi... I have an "appointments" page where the user should (or not necessarily) choose a date and time for his appointment, from 6 combo boxes:year, month, day, hour, minute and AM or PM, without...
26
by: sgershon | last post by:
Hi. I know this is should be a simple question. I know server-side web-programming, and never needed to use client-side scripting... until now :) I have done so far a little number of scripts...
6
by: MickG | last post by:
Hi, I am trying to validate these values, this seems to work fine for the phone number and name but I am trying to get the program to fail to submit and set the focus on the date when 2006 is...
2
by: Lyn | last post by:
Hi, I have a text control on a form which is bound to table field StartDate which is in Date format. When updating the table record via the form, any data entered into the StartDate control is...
3
by: Amos0907 | last post by:
Dear All, I am a learner of Javascript. I got an assignment as below. Could anyone give me a suggestion for fixing the function of "onChangeColumn4()". The original requirement of the start date of...
14
by: Steve JORDI | last post by:
Hi, I'm looking for a way to have the user enter a date as 03042007 for April 3rd 2007, and have that turned into 03.04.2007 as you type. Is there an easy way to have "03" automatically turned...
3
by: Bob Sanderson | last post by:
I have a PHP web page which uses a HTML form. I would like to enter dates into the date fields using a JavaScript calendar, similar to the way phpMyAdmin does. Can anyone recommend a JavaScript...
1
by: xtremebass | last post by:
Hello Bytes, i have a calender program which is created by using Javascript. when i execute that program using Internet Explorer,it works properly but when i tried in Mozilla firefox it didnt...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.