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.

PHP Forum


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



Freelance Jobs

Reply
Dynamic Forms in Dreamweaver
Old 01-09-2009, 05:02 PM Dynamic Forms in Dreamweaver
Junior Talker

Posts: 3
Name: Tom
Trades: 0
Hi,

This might sound weird... but it actually will be quite useful for me to know how to do this little thing that I'm about to ask.

I'm creating a form in Dreamweaver MX, the form asks the user two questions (both in the form of drop-down lists) the second question has different responses depending on the first response. All possible responses to these questions are derived from information in a database. What I'm having an issue with is getting the second set of available responses to load from the database after the user selects their response from the first set.

Thanks in advance for any feedback... and sorry too in advance if I'm not very clear in what I'm asking... I'm heading out the door as I type and am looking for an answer soon. If needed I can go into further detail at a later time.

Once again thanks,
Tom
tsanders is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-10-2009, 02:59 PM Re: Dynamic Forms in Dreamweaver
stoot98's Avatar
Ultra Talker

Posts: 427
Name: Stuart
Location: Glasgow, Scotland
Trades: 0
You will need to populate the second dropdown with an AJAX call to the server to a page that gets the options from the database.
stoot98 is offline
Reply With Quote
View Public Profile
 
Old 01-12-2009, 09:21 AM Re: Dynamic Forms in Dreamweaver
Junior Talker

Posts: 3
Name: Tom
Trades: 0
Forgive my ignorance as I'm not familiar with AJAX... but is that the only way? There's no simple way to just have the values submitted automatically when the user makes their selection from the first menu?
tsanders is offline
Reply With Quote
View Public Profile
 
Old 01-12-2009, 11:37 AM Re: Dynamic Forms in Dreamweaver
stoot98's Avatar
Ultra Talker

Posts: 427
Name: Stuart
Location: Glasgow, Scotland
Trades: 0
Unfortunately thats what AJAX does. It makes a call to the server 'behind the scenes'. without a full page refresh.

You might want to try a JavaScript library like JQuery to make it easier. There are probably examples/plugins you can download and incorporate pretty quickly. Try a google search.
stoot98 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Dynamic Forms in Dreamweaver
 

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 0.13981 seconds with 12 queries