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 5 1824
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()"
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()"
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.
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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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...
|
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,...
|
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...
|
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,...
|
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...
| |