Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Dec 2005
    Posts
    702
    Thanks
    0
    Thanked 0 Times in 0 Posts

    This is a valid javascript function ?

    This is a valid javascript function ? ac=checkbox & days,adults=textboxes &
    euro=result textbox...
    Code:
    function calc() {
     if (document.book.ac.checked == true) {
        ac = 6;
     } else {
        ac = 0; 	
     }
     // document.book.euro.value = 99;
     document.book.euro.value = document.book.days.value * (floor((document.book.adults.value)/3) * (47+ac) + 41 + ac) ;
    }
    How to trigger this function onblur or onchange of days or adults or ac ?

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,898
    Thanks
    203
    Thanked 2,530 Times in 2,508 Posts
    No. Why don't you find out simply by trying it, rather than asking others to do your paid work for you?

    This guy has 576 posts, 0 thanks.

  • #3
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by Philip M View Post
    No. Why don't you find out simply by trying it, rather than asking others to do your paid work for you?

    This guy has 576 posts, 0 thanks.
    yeah, and as far I know all his posts are questions,

    regards

  • Users who have thanked oesxyl for this post:

    Philip M (06-11-2008)

  • #4
    Regular Coder
    Join Date
    Dec 2005
    Posts
    702
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I try it but there's bug (I can NOT find it):
    js Q:
    there's a calculator on booking form at
    http://www.holidayaptsaspasia.com/bookingapt.html
    I do not see to work , can you help ?

    design Q:
    Also menu on top I want it (and I setup it right alignment) why exist some distance ?

    js Q:
    Also do NOT work the onsubmit="return submitForm();" (same page) ? check source...
    the onreset work .

  • #5
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,898
    Thanks
    203
    Thanked 2,530 Times in 2,508 Posts
    This guy ought to win an Olympic Medal for the thickest skin on the planet!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •