date and onchange...

Discussion in 'Javascript' started by mirza i, Jan 17, 2005.

  1. mirza i

    mirza i Guest


    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'
    <img src="pics/cal.gif"
    document.invdetdet.dat.value);" width="17" height="16" border="0"
    function ksks()

    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()?


    mirza i, Jan 17, 2005
    1. Advertisements

  2. mirza i

    Lee Guest

    mirza i said:
    Lee, Jan 17, 2005
    1. Advertisements

  3. mirza i

    mirza i Guest

    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!

    mirza i, Jan 18, 2005
  4. mirza i

    Lee Guest

    mirza i said:
    Then have the page in the popup execute opener.ksks() when you make the
    Lee, Jan 18, 2005
  5. mirza i

    sancha Guest


    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
    sancha, Jan 18, 2005
  6. mirza i

    mirza i Guest

    many thanks lee & sancha
    mirza i, Jan 18, 2005
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.