...

View Full Version : This is a valid javascript function ?



lse123
06-11-2008, 05:43 AM
This is a valid javascript function ? ac=checkbox & days,adults=textboxes &
euro=result textbox...

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 ?

Philip M
06-11-2008, 08:29 AM
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.

oesxyl
06-11-2008, 06:48 PM
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

lse123
06-13-2008, 10:56 AM
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 .

Philip M
06-13-2008, 12:32 PM
This guy ought to win an Olympic Medal for the thickest skin on the planet!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum