Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Can I do this with javascript?
Old 10-13-2008, 05:09 PM Can I do this with javascript?
MattCoops's Avatar
Ultra Talker

Posts: 423
Name: Matt Cupan
Location: Charlotte, NC
Trades: 0
I think I can accomplish this with javascript, but not sure.
In all honesty, I really have zero experience with javascript.
But it is about time I started learning the language, as it is a powerful tool.

In short, I want to create a way for our website user to make a series of selections, be able to go back and change selections if needed, and then send those selections to us via email.

In depth:

I want to develop a "granite tile countertop design studio"

1. The user starts at the layout page. There are some grid images of which layout they would like to choose (2 rows of 12", one full 24" tile). Then to the next selection group: "tile"
2. The user chooses which color tile. There are a number of granite tile pictures for them to choose from. They pick which one they want then go to the next page: "grout color"
3. Next, there is an array of grout colors. The tile they selected in the prior choice is displayed and when they click on a grout color it is displayed as a line butting against the tile image. When they have the color they like, they click to the next page: "edge profile"
4. The last selection is the edge profile. They pick which one they like, again from images. And then click to "Submit Design"
5. Finally, the user is brought to a page that has their final design image. This has the tile, in the layout they picked, with the grout color they picked, and edge profile they chose. Underneath is user inputs for name, phone, and email for us to get back to them with a quote. They fill out the fields and submit via email form.

So, can this be achieved through use of javascript?
Can anyone point me in direction of how to accomplish this?

Thank you
__________________
Matt - Tweeting
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

read my
Please login or register to view this content. Registration is FREE

Last edited by MattCoops; 10-13-2008 at 07:48 PM..
MattCoops is offline
Reply With Quote
View Public Profile Visit MattCoops's homepage!
 
 
Register now for full access!
Old 10-13-2008, 10:16 PM Re: Can I do this with javascript?
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
I'd probably use a server side language like php to actually send the email, but everything else sounds mostly like a form split up into different parts.

Instead of all the different questions being on different pages you could use javascript to essentially show and hide the different "pages" while holding onto to all the selected values. Then when the form is submitted you'd send everything to your sever side script to process and email.

Search for things like "dynamic forms" and 'show hide jasvascript" There's a lot of info on how to do this. There's more than one way to set it all up. You could have the form be on different pages, but keeping everything on the same page and simply showing and hiding things is probably a better user experience.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 10-13-2008, 10:20 PM Re: Can I do this with javascript?
MattCoops's Avatar
Ultra Talker

Posts: 423
Name: Matt Cupan
Location: Charlotte, NC
Trades: 0
thanks vangogh,

That sounds more logical, and less prone to error troubleshooting, by keeping it all on one page. I'll definitely use the show/hide aspect.
__________________
Matt - Tweeting
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

read my
Please login or register to view this content. Registration is FREE
MattCoops is offline
Reply With Quote
View Public Profile Visit MattCoops's homepage!
 
Old 10-13-2008, 10:48 PM Re: Can I do this with javascript?
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
It's not that hard to do, but you'll probably want to find a decent tutorial or two to put the whole thing together. And of course feel free to ask questions if something specific trips you up.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 10-13-2008, 11:07 PM Re: Can I do this with javascript?
MattCoops's Avatar
Ultra Talker

Posts: 423
Name: Matt Cupan
Location: Charlotte, NC
Trades: 0
I've downloaded the Google Web Toolkit and Sun Java Standard Edition SDK.

Utilizing these apps, can I accomplish my mission?
__________________
Matt - Tweeting
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

read my
Please login or register to view this content. Registration is FREE
MattCoops is offline
Reply With Quote
View Public Profile Visit MattCoops's homepage!
 
Old 10-14-2008, 03:05 AM Re: Can I do this with javascript?
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Why java ?
If you do this using j2ee or j2se, you will need to have a servelt container installed on your host (not that current).

Just to clear this up, because many peoples are confused by the name, javascript and java are 2 different beasts from 2 different vendors.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 10-14-2008, 03:26 AM Re: Can I do this with javascript?
Brian07002's Avatar
Defies a Status

Posts: 2,162
Name: ...
Location: ...
Trades: 0
Try these:

http://www.javascriptkit.com/script/cut180.shtml
http://www.hotscripts.com/JavaScript...ams/index.html

They should give you a head start on what your after, but it's going to take awhile to code it all together.
__________________
Made2Own

Please login or register to view this content. Registration is FREE
Brian07002 is offline
Reply With Quote
View Public Profile
 
Old 10-14-2008, 09:34 AM Re: Can I do this with javascript?
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Quote:
Originally Posted by MattCoops View Post
I've downloaded the Google Web Toolkit and Sun Java Standard Edition SDK.

Utilizing these apps, can I accomplish my mission?
Other than to acknowledge that what Tripy says is true (you absolutely don't need Java), in order to make a JavaScript to accomplish what you need, all you require is a text-editor, and an FTP program if you wish to publish it to the web.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 10-14-2008, 02:19 PM Re: Can I do this with javascript?
MattCoops's Avatar
Ultra Talker

Posts: 423
Name: Matt Cupan
Location: Charlotte, NC
Trades: 0
thanks for clearing up what tools needed to write the code

Brian, thanks for the links. The "quiz" one teaches me a great deal about how to use the radio buttons.

I'd like to have all the "question" choices hidden except for the first one.
And when the user chooses a radio button, the next "question" is "opened" to view and answer. And so on, right the down the line.
__________________
Matt - Tweeting
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

read my
Please login or register to view this content. Registration is FREE
MattCoops is offline
Reply With Quote
View Public Profile Visit MattCoops's homepage!
 
Old 10-14-2008, 06:08 PM Re: Can I do this with javascript?
MattCoops's Avatar
Ultra Talker

Posts: 423
Name: Matt Cupan
Location: Charlotte, NC
Trades: 0
I got my form elements created in javascript.
Now I need to find best method to submit form to my email address.
It looks good in html markup, but...
I'm sure I got a lot of debugging to do once this thing starts sending.
__________________
Matt - Tweeting
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

read my
Please login or register to view this content. Registration is FREE
MattCoops is offline
Reply With Quote
View Public Profile Visit MattCoops's homepage!
 
Old 10-15-2008, 09:47 AM Re: Can I do this with javascript?
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
To send mail, you should use a server-side code. I do it with PHP, using the mail() function:
PHP Code:
mail($to$subject$message$headers); 
http://us.php.net/function.mail
http://www.w3schools.com/PHP/php_mail.asp
It helps to know something about forms and PHP as well:
http://www.w3schools.com/php/php_forms.asp
If you don't have PHP available to you, or prefer another language (such as ASP), someone else may have to help you. Bring up the subject in one of the other channels.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 10-15-2008, 04:30 PM Re: Can I do this with javascript?
MattCoops's Avatar
Ultra Talker

Posts: 423
Name: Matt Cupan
Location: Charlotte, NC
Trades: 0
thanks

I think I'd rather go with asp than php.

Plus, I know for a fact my host supports asp, not sure about php. They probably do, but in any case asp seems like the better option after researching a bit.
__________________
Matt - Tweeting
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

read my
Please login or register to view this content. Registration is FREE
MattCoops is offline
Reply With Quote
View Public Profile Visit MattCoops's homepage!
 
Old 10-16-2008, 06:31 PM Re: Can I do this with javascript?
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Either php or asp is fine. I use php too so can't help with the asp part, but I assume mailing the form values is pretty simple and that there would be plenty of tutorials online. More than one person here uses asp so maybe someone knows a good tutorial.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Reply     « Reply to Can I do this with javascript?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.27964 seconds with 12 queries