By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,709 Members | 2,155 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,709 IT Pros & Developers. It's quick & easy.

javascript feature that add's info from a different page to a form

P: 4
I am building a modeling agency website that will have a list of my models on there. I also have a form on my website that a client can fill out about their event. I want to be able to have a "book now" button on each model's page that the client can select that would then add that model's name ID # or name to that form. The form would be e-mailed to me.

It would kind of be like a "add to favorites" or "add to list" feature. I hope that makes sense.

What's the best way to accomplish this?

Thanks
Jan 22 '08 #1
Share this Question
Share on Google+
6 Replies


gits
Expert Mod 5K+
P: 5,327
hi ...

welcome to TSDN ...

do you have some code to post? even the html would be good ... in case all pages you use are from your own domain it is very easy to fill a form with data from them ... but we should see the structure (frames, pages etc.) of your current construction :)

kind regards
Jan 22 '08 #2

P: 4
hi ...

welcome to TSDN ...

do you have some code to post? even the html would be good ... in case all pages you use it is very easy to fill a form with data from them ... but we should see the structure (frames, pages etc.) of your current construction :)

kind regards
I will essentially be using joomla to create the site

I have no started building the site yet but for most my websites I use CSS (so no tables or frames) to build the template and customize from that

this site will have a home, models page (with 5 male model profiles 5 female model profiles), talent page, booking, and contact

I would simply want a "select model" button that would add that models name to the form.

Originally I thought about just having the models listed on the form..but once the model list gets much bigger this route won't be very efficient...

thanks!
Jan 23 '08 #3

gits
Expert Mod 5K+
P: 5,327
should the form be able to submit more then on models-id (name)? so you have one page that is designed with css ... and you may have a select model button or checkbox ... when selecting a model how should the name appear in the form? a textbox with added name?

kind regards
Jan 23 '08 #4

P: 4
should the form be able to submit more then on models-id (name)? so you have one page that is designed with css ... and you may have a select model button or checkbox ... when selecting a model how should the name appear in the form? a textbox with added name?

kind regards
Yes, multiple models, because the client may need more than one model. So as they browse through the site, they either click the "book now" button or "select model" checkbox and continue browsing through the rest of the pages.

Once finished, they can go to the "form" page and see their selections and add the required info such as event details time place etc..

On the form, the models can appear either in a textbox with the added name of the model or maybe as just text. I'm not sure which route would be easier...

Thanks!!
Jan 23 '08 #5

gits
Expert Mod 5K+
P: 5,327
wait a moment please ... now its getting confusing a little bit ... you said you have one page ... no frames etc. ... so you should definitly know what the design should be now ... since javascript is able to 'live' in a document only ... when you have pageS that replace a the current page we have to store the current changes somewhere (may be a cookie or pass them with all further interactions) ... so you see ... without knowing more about your 'app-construction' there are too much possibilities and we will not come to e particular conclusion :)

kind regards
Jan 23 '08 #6

P: 4
wait a moment please ... now its getting confusing a little bit ... you said you have one page ... no frames etc. ... so you should definitly know what the design should be now ... since javascript is able to 'live' in a document only ... when you have pageS that replace a the current page we have to store the current changes somewhere (may be a cookie or pass them with all further interactions) ... so you see ... without knowing more about your 'app-construction' there are too much possibilities and we will not come to e particular conclusion :)

kind regards
Hmm..now I'm confused too =( Maybe this will help?

http://www.elementmodelmgmt.com
I know this is just an image but I hope it shows what the homepage looks like and the site navigation.

Navigation: Models / Talent / About / Contact

Clicking on the models tab would open up a new page with thumbnails of each model, then clicking on the thumbnail would take the client to the model's profile, (Home>Models>Amy) where I would want the "select model" button/check box to be. Then client can navigate back to the thumbnail page and click on another model's picture and go to that profile, and select another model (Home>Models>Katie). When finished, client would click on contact (Home>Contact) and see those selections in the form, and continue to fill out the rest of the information and submit it.

So yes, there would be a need to store the "selection" somewhere and that's where I'd like to maybe use a script or code. Don't know how to do this. Also I don't know how to feed that information to the form.

Hope that helps...
Jan 23 '08 #7

Post your reply

Sign in to post your reply or Sign up for a free account.