/    Sign up×
Community /Pin to ProfileBookmark

estimate form

hi people,
newbie here and to javascrpts.
i have a website “dmsclean.com”which i have an online estimator on. I am trying to customize this “estimator” to offer more precise pricing to visitors( I offer different prices for different types of carpet cleaning) Unfortunately I have not figured out a way. If anyone one can get me in the right direction it would be greatly appreciated.
thank you!

to post a comment
JavaScript

6 Comments(s)

Copy linkTweet thisAlerts:
@KorJul 20.2004 — 
If anyone one can get me in the right direction it would be greatly appreciated
[/quote]


well... The best direction you can choose is... learning Javascript, what else?...?
Copy linkTweet thisAlerts:
@CharlesJul 20.2004 — [i]Originally posted by Kor [/i]

[B]well... The best direction you can choose is... learning Javascript, what else?...? [/B][/QUOTE]
[font=georgia]I would disagree, strongly. Since JavaScript is hit or miss with users, your script should be running server side. Learn Perl.

Once you've done that, then you can add a JavaScript version for those who do use JavaScript. As a bonus, the study of Perl and JavaScript compliment each other very well.[/font]
Copy linkTweet thisAlerts:
@KorJul 20.2004 — 
Learn Perl.
[/quote]

Why not PHP. Or C++, Or...?


Since JavaScript is hit or miss with users
[/quote]

...then put a noscript text or redirect and ask the blody user enable javascript. If he woun't, ca y est. ?
Copy linkTweet thisAlerts:
@CharlesJul 20.2004 — [i]Originally posted by Kor [/i]

[B]Why not PHP. Or C++, Or...? [/B][/quote]

[font=monospace]Because Perl is a wonderful language in its own right and because a study of it improves ones understanding of JavaScript.[/font]
[b]...then put a noscript text or redirect and ask the blody user enable javascript. If he woun't, ca y est. ? [/B][/QUOTE]
[font=georgia]That's a rather cruel and inhuman attitude to take towards those good people who are using Braille browsers that might not support JavaScript. But it's not the worst thing I've seen. I once reviewed a site that used the "alt" attribute to tell the user to turn on the images. [/font]
Copy linkTweet thisAlerts:
@KorJul 20.2004 — 
I once reviewed a site that used the "alt" attribute to tell the user to turn on the images.

[/quote]:D :D :D

That was a heavy one ! ?

Well, I reckon we should keep the pages as "natural" and genuine HTML coded as possible, but a lot, and I mean [b]a lot[/b] of navigational/check/calculate items has to be done rather locally (javascript) than on server mainly to keep speed and protect CPU usage and stuff like that.

As far as i could have notice till now, the disableing javascript habbit helped in no way (or at least in insignificant proportion) client from being virused or hacked, so I dear to say that there is a false preception that if disable java script you increase the navgational security. No, Sir... And, if so, why to disable javascript? To make us, web designer, work twice as hard to build pages to be seen even without javascript? A lot of work and, most of the time, even impossible...
Copy linkTweet thisAlerts:
@CharlesJul 20.2004 — [font=georgia]Some people cannot, because of disability, use JavaScript. Some, like myself, disable JavaScript to defend ourselves from pop-ups, mouse trails and other afflictions. Some, mistakenly, disable JavaScript to protect themselves from the only slightly more malicious attack of some virus. Because of the first you are obligated by human decency to "Ensure that pages are usable when scripts, applets, or other programmatic objects are turned off or not supported." ([i]http://www.w3.org/TR/WCAG10/wai-pageauth.html#tech-scripts[/i])

But, as you have pointed out, client side scripting has some very real advantages for the majority of users. The solution is to do both. As always, start with something that always works - in this case, have the form submit to a server side script. Then add a JavaScript version that is called from the form's "onsubmit" handler. Have the handler return "false" and the form doesn't get submitted to the server side script unless it needs to.[/font]
×

Success!

Help @dmsclean spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.29,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...