Question

Frontpage Feedback Form

Asked by: RavingNun

Hi,

I have created a simple feedback form in frontpage with radio buttons, checkboxes, textboxes and comboboxes. I have a series of questions and it works perfectly. But what i want to do is to be able to change the next question depending on the answer chosen in the combobox or dropdown box. For example question 4 is a drop down box asking if they wanted Music or Art and the user chooses Music. Then I want question 5 to a music question, etc. I dont mind doing this in javascript but I would like the form to be kept to HTML and formrslt.htm.

Thanks in Advanced

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2006-02-27 at 00:33:20ID21752691
Tags

frontpage

,

feedback

,

form

Topic

Miscellaneous Web Development

Participating Experts
1
Points
500
Comments
32

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Feedback component like FrontPage
    Hi, I am now use Interdev to make my web. I want create a feedback page which is like using the Feedback component of FrontPage. where can i find the feedback compontent / asp file. Thanks for any help. Y.C.
  2. Send Data To A Frontpage Feedback Form
    I'm trying to use VB6 to send data such as registartion codes, from my app to a Frontpage FeedbackForm, without having the user type them in the Feedback Form. Can anyone help? mathprof

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: joejenkinsjaxPosted on 2006-02-27 at 05:03:38ID: 16054662

RavingNum,

I used FrontPage many years ago to design a site for someone who wanted to administer the site themselves.   What's you're asking for is out of the scope of FrontPage.  You're going to need to go to Javascript for this functionality.  

Car sites are great examples of this working.  Here's a basic car example that will even grey out the second box until a selection is made:

<form name="twoboxmenu">
      <select name="make" onchange="redirect(this.options.selectedIndex)">
           <option value="0">Select</option>
      </select>
           <select name="model" disabled="disabled">
                  <option value="0">Model:</option>
           </select>
     </form>

<Script language=javascript>
var makes = new Array();
var models = new Array();

makes[0] = "Acura";
makes[1] = "Alfa Romeo";
makes[2] = "AMC";
makes[3] = "Ford";

for (i=0;i<makes.length;i++)
models[i] = new Array();

models[0][0] = "CL";
models[0][1] = "EL";
models[0][2] = "Integra";
models[1][0] = "145";
models[1][1] = "146";
models[1][2] = "147";
models[2][0] = "Alliance";
models[2][1] = "Ambassador";
models[2][2] = "AMX";
models[2][3] = "Classic";
models[3][0] = "F-150";
models[3][1] = "Taurus";



var temp=document.twoboxmenu.model

/*initialize the drop down Makes box */
for(j=0;j<makes.length;j++){
document.twoboxmenu.make.options[j+1] = new Option(makes[j], makes[j]);
document.twoboxmenu.make.options[0].selected=true;

/*initialize the drop down Models box */
temp.options[0] = new Option("All models", "all_models")

}

function redirect(x){

/* clear out the models drop down */
for (m=temp.options.length-1;m>0;m--)
temp.options[m]=null

temp.options[0] = new Option("All models", "all_models")

/* if the user has selected the "Make" option, disable the drop down boxes */
if(x==0){
temp.disabled = true;
return;
}

for (i=1;i<models[x-1].length+1;i++){
temp.options[i]=new Option(models[x-1][i-1],models[x-1][i-1])
}

temp.options[0].selected=true
temp.disabled = false

appendurl(models[x-1].length);
}

function appendurl(x)
{
      if(document.twoboxmenu.model.value!="all_models" || x==0)
      {
            document.twoboxmenu.action += "/search_results.cgi";
      }
}

</script>

I hope that helps you.

Joe Jenkins

 

by: RavingNunPosted on 2006-02-27 at 05:28:24ID: 16054826

Could I do this with radio buttons? Like I wont like the question to appear or be selectable after the user has choose an answer in the combo box

1. ComboBox -> Music

2. Music Question -> Selectable

3. Art Question -> Grayed Out

 

by: joejenkinsjaxPosted on 2006-03-06 at 07:45:14ID: 16115234

Sure, I don't see why you couldn't do it with Radio Buttons.  It's a matter of the flag being set.  If you look up in the actual form section, you'll see this:

<form name="twoboxmenu">
      <select name="make" onchange="redirect(this.options.selectedIndex)">
           <option value="0">Select</option>
      </select>
           <select name="model" disabled="disabled">
                  <option value="0">Model:</option>
      </select>
</form>

The keypoint there being this partL     <select name="model" disabled="disabled">

You would then have to add new arrays for the new indexes you're creating (how I did with makes and models).

Does this help any?

 

by: RavingNunPosted on 2006-03-07 at 00:02:21ID: 16121841

Dont really get it. Can you just do the code for me?

 

by: joejenkinsjaxPosted on 2006-03-07 at 06:01:12ID: 16123319

Post the code that you have for your form right now and I'll see what I can do.

 

by: RavingNunPosted on 2006-03-08 at 02:30:01ID: 16131599

<HTML>
<HEAD>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
<meta http-equiv="Content-Language" content="en-us">
<TITLE>Make Space Questionnaire - William Wong</TITLE>
<meta name="keywords" content="KGV,Questionnaire,Survey,William,Wong,10S">
</HEAD>
<BODY bgcolor="#FFFFCC">
<H1><img border="0" src="banner.jpg" width="500" height="150"></H1>
<HR>
<P>
This is a survey that will help us design a Make Space activity for the
'activity space'. The information will be kept entirely private and used solely
for research.</P>
<P>
<b>Start by answering the questions below:</b></P>
<FORM METHOD="POST" ACTION="../_vti_bin/shtml.exe/survey/index.htm" webbot-action="--WEBBOT-SELF--">
<!--WEBBOT BOT=SaveResults
    U-File="../_private/formrslt.htm"
    S-Format="HTML/DL"
    B-Label-Fields="TRUE" startspan
--><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--webbot bot="SaveResults" i-checksum="43374" endspan -->
      <p><strong>What is your Gender?</strong></p>
      <dl>
            <dd><input type="radio" name="Gender" value="Male">Male
            <input type="radio" name="Gender" value="Female">Female</dl>
      <p><strong>What is your age?</strong></p>
      <dl>
            <dd><input type="radio" name="Age" value="10-12">10-12
            <input type="radio" name="Age" value="13-15">13-15
            <input type="radio" name="Age" value="16-18">16-18
            <input type="radio" name="Age" value="18+">18+</dd>
            <dt>&nbsp;</dt>
            <dt><b>Which activities do you already take part in?</b></dt>
            <dd>&nbsp;</dd>
      <table border="0" width="100%" id="table1" cellspacing="0" cellpadding="0">
            <tr>
                  <td><input type="checkbox" name="ActivitiesAlready" value="Soccer"> Soccer </td>
                  <td width="25%">
                  <input type="checkbox" name="ActivitiesAlready" value="Basketball">
                  Basketball</td>
                  <td width="25%">
                  <input type="checkbox" name="ActivitiesAlready" value="Rugby"> Rugby
                  </td>
                  <td width="25%">
                  <input type="checkbox" name="ActivitiesAlready" value="Cricket">
                  Cricket</td>
            </tr>
            <tr>
                  <td width="25%">
                  <input type="checkbox" name="ActivitiesAlready" value="DramaClub"> Drama
                  Club</td>
                  <td width="87">
                  <input type="checkbox" name="ActivitiesAlready" value="Cooking"> Cooking</td>
                  <td>
                  <input type="checkbox" name="ActivitiesAlready" value="Textiles"> Textiles</td>
                  <td><input type="checkbox" name="ActivitiesAlready" value="Art"> Art</td>
            </tr>
            <tr>
                  <td><input type="checkbox" name="ActivitiesAlready" value="Music"> Music</td>
                  <td width="87">
                  <input type="checkbox" name="ActivitiesAlready" value="Dance"> Dance</td>
                  <td>
                  <input type="checkbox" name="ActivitiesAlready" value="Gardening"> Gardening</td>
                  <td><input type="checkbox" name="ActivitiesAlready" value="Reading"> Reading</td>
            </tr>
      </table>
      
      </dl>
      <dl>
            <dt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <input type="checkbox" name="ActivitiesAlreadyOther" value="ActivitiesAlreadyOther">Other
            Please Specify:
            <input type="text" size="26" maxlength="256" name="ActivitiesAlreadyOther"></dt>
            <dd>&nbsp;</dd>
            <dt><b>W</b><strong>hich activity would you prefer to do?</strong></dt>
            <dd>&nbsp;</dd>
            <dd><select name="Activities" size="1">
            <option>Sports</option>
            <option>Board Games</option>
            <option>Movies</option>
            <option>(Other)</option>
            </select> Other:
            <input type="text" size="26" maxlength="256" name="ActivityOther"></dd>
      </dl>
      <dl>
            <dt><b>Would you prefer the activities to be done privately or with a
            group?</b></dt>
            <dd>&nbsp;</dd>
            <dd><input type="radio" name="PrivateGroup" value="Group">Group
            <input type="radio" name="PrivateGroup" value="Private">Private
            <input type="radio" name="PrivateGroup" value="Dont Mind">Don't Mind</dd>
            <dt>&nbsp;</dt>
            <dt><font face="Tahoma" size="2"><b>How far are you prepared to travel?
            (Minutes)</b></font></dt>
            <dd>&nbsp;</dd>
            <dd><input type="radio" name="TravelTime" value="&lt;10">&lt;10
            <input type="radio" name="TravelTime" value="10-">10-20
            <input type="radio" name="TravelTime" value="20-">20-30
            <input type="radio" name="TravelTime" value="30-">30-40
            <input type="radio" name="TravelTime" value="40+">40+ </dd>
            <dt>&nbsp;</dt>
            <dt>Skip this question if you didn't choose 'Sports'.</dt>
            <dt>&nbsp;</dt>
            <dt><strong>Which Sport do you prefer to do?</strong></dt>
            <dd>&nbsp;</dd>
            <dd><input type="radio" name="ActPrefer" value="Basketball">Basketball
            <input type="radio" name="ActPrefer" value="Soccer">Soccer
            <input type="radio" name="ActPrefer" value="Rugby">Rugby
            <input type="radio" name="ActPrefer" value="Hockey">Hockey
            <input type="radio" name="ActPrefer" value="SportOther">Other Please
            Specify:
            <input type="text" size="26" maxlength="256" name="SportOther"></dd>
            <dt>&nbsp;</dt>
            <dt>Skip this question if you didn't choose 'Board Games'.</dt>
            <dd>&nbsp;</dd>
            <dt><strong>Which Board Game do you prefer the most?</strong></dt>
            <dd>&nbsp;</dd>
            <dd><input type="radio" name="ActPrefer" value="Twister">Twister
            <input type="radio" name="ActPrefer" value="UNO">UNO
            <input type="radio" name="ActPrefer" value="Monopoly">Monopoly
            <input type="radio" name="ActPrefer" value="Snakes and Ladders">Snakes
            and Ladders
            <input type="radio" name="ActPrefer" value="BoardGameOther">Other Please
            Specify:
            <input type="text" size="26" maxlength="256" name="BoardGameOther"></dd>
            <dt>&nbsp;</dt>
            <dt>Skip this question if you didn't choose 'Movies'.</dt>
            <dt>&nbsp;</dt>
            <dt><strong>What type of Movie would you prefer to watch?</strong></dt>
            <dd>&nbsp;</dd>
            <dd><input type="radio" name="ActPrefer" value="Action">Action
            <input type="radio" name="ActPrefer" value="Comedy">Comedy
            <input type="radio" name="ActPrefer" value="Romance">Romance
            <input type="radio" name="ActPrefer" value="Thriller">Thriller
            <input type="radio" name="ActPrefer" value="MovieOther">Other Please
            Specify:
            <input type="text" size="26" maxlength="256" name="MovieOther"></dd>
            <dt>&nbsp;</dt>
            <dt><strong>What is the maximum amount of money you would spend on a
            activity monthly?</strong></dt>
            <dd>&nbsp;</dd>
            <dd><strong>$HK
            <input type="text" name="MaxAmount" size="12"></strong></dd>
      </dl>
      
      <dl>
      <p><strong>Any additional information you would like to supply or feedback
      on the survey:</strong></p>
            <dd><textarea name="Comments" rows="5" cols="42"></textarea></dd>
            <dt>&nbsp;</dt>
            <dt><strong>Tell us how to get in touch with you (Optional):</strong></dt>
      </dl>
<dl>
      <dd>
      <table id="table3">
            <tr>
                  <td>Name </td>
                  <td><input maxLength="256" size="35" name="UserName"></td>
            </tr>
            <tr>
                  <td>E-mail</td>
                  <td><input maxLength="256" size="35" name="UserEmail"></td>
            </tr>
      </table>
      </dd>
</dl>
<p>
<INPUT TYPE=SUBMIT VALUE="Submit Form">
<INPUT TYPE=RESET VALUE="Reset Form">
</p>
</FORM>
<HR>
<H5>
Copyright © 2006 [William Wong]. All rights reserved.</H5>
</BODY>
</HTML>

 

by: joejenkinsjaxPosted on 2006-03-08 at 04:04:37ID: 16131990

OK, I'll look at it and see what I can come up with.

Joe Jenkins

 

by: joejenkinsjaxPosted on 2006-03-08 at 12:03:40ID: 16137741

I did some thinking about how you have this form set up.  I made a few changes and tested it.  Works good for me.

What do you think?

<copy below this line>

<HTML>
<HEAD>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
<meta http-equiv="Content-Language" content="en-us">
<TITLE>Make Space Questionnaire - William Wong</TITLE>
<meta name="keywords" content="KGV,Questionnaire,Survey,William,Wong,10S">
</HEAD>
<BODY bgcolor="#FFFFCC">
<H1><img border="0" src="banner.jpg" width="500" height="150"></H1>
<HR>
<P>
This is a survey that will help us design a Make Space activity for the
'activity space'. The information will be kept entirely private and used solely
for research.</P>
<P>
<b>Start by answering the questions below:</b></P>
<FORM METHOD="POST" ACTION="../_vti_bin/shtml.exe/survey/index.htm" webbot-action="--WEBBOT-SELF--" name="condmenu">
<!--WEBBOT BOT=SaveResults
    U-File="../_private/formrslt.htm"
    S-Format="HTML/DL"
    B-Label-Fields="TRUE" startspan
--><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--webbot bot="SaveResults" i-checksum="43374" endspan -->
     <p><strong>What is your Gender?</strong></p>
     <dl>
          <dd><input type="radio" name="Gender" value="Male">Male
          <input type="radio" name="Gender" value="Female">Female</dl>
     <p><strong>What is your age?</strong></p>
     <dl>
          <dd><input type="radio" name="Age" value="10-12">10-12
          <input type="radio" name="Age" value="13-15">13-15
          <input type="radio" name="Age" value="16-18">16-18
          <input type="radio" name="Age" value="18+">18+</dd>
          <dt>&nbsp;</dt>
          <dt><b>Which activities do you already take part in?</b></dt>
          <dd>&nbsp;</dd>
     <table border="0" width="100%" id="table1" cellspacing="0" cellpadding="0">
          <tr>
               <td><input type="checkbox" name="ActivitiesAlready" value="Soccer"> Soccer </td>
               <td width="25%">
               <input type="checkbox" name="ActivitiesAlready" value="Basketball">
               Basketball</td>
               <td width="25%">
               <input type="checkbox" name="ActivitiesAlready" value="Rugby"> Rugby
               </td>
               <td width="25%">
               <input type="checkbox" name="ActivitiesAlready" value="Cricket">
               Cricket</td>
          </tr>
          <tr>
               <td width="25%">
               <input type="checkbox" name="ActivitiesAlready" value="DramaClub"> Drama
               Club</td>
               <td width="87">
               <input type="checkbox" name="ActivitiesAlready" value="Cooking"> Cooking</td>
               <td>
               <input type="checkbox" name="ActivitiesAlready" value="Textiles"> Textiles</td>
               <td><input type="checkbox" name="ActivitiesAlready" value="Art"> Art</td>
          </tr>
          <tr>
               <td><input type="checkbox" name="ActivitiesAlready" value="Music"> Music</td>
               <td width="87">
               <input type="checkbox" name="ActivitiesAlready" value="Dance"> Dance</td>
               <td>
               <input type="checkbox" name="ActivitiesAlready" value="Gardening"> Gardening</td>
               <td><input type="checkbox" name="ActivitiesAlready" value="Reading"> Reading</td>
          </tr>
     </table>
     
     </dl>
     <dl>
          <dt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          <input type="checkbox" name="ActivitiesAlreadyOther" value="ActivitiesAlreadyOther">Other
          Please Specify:
          <input type="text" size="26" maxlength="256" name="ActivitiesAlreadyOther"></dt>
     </dl>
     <dl>
       <dt><b>Would you prefer the activities to be done privately or with a group?</b></dt>
       <dd>&nbsp;</dd>
       <dd>
         <input type="radio" name="PrivateGroup" value="Group">
         Group
         <input type="radio" name="PrivateGroup" value="Private">
         Private
         <input type="radio" name="PrivateGroup" value="Dont Mind">
         Don't Mind</dd>
       <dt>&nbsp;</dt>
       <dt><font face="Tahoma" size="2"><b>How far are you prepared to travel? (Minutes)</b></font></dt>
       <dd>&nbsp;</dd>
       <dd>
         <input type="radio" name="TravelTime" value="&lt;10">
     &lt;10
         <input type="radio" name="TravelTime" value="10-">
         10-20
         <input type="radio" name="TravelTime" value="20-">
         20-30
         <input type="radio" name="TravelTime" value="30-">
         30-40
         <input type="radio" name="TravelTime" value="40+">
         40+ </dd>
       <dt></dt>
     </dl>
     <dl>
       <dd>&nbsp;</dd>
       <dt><b>W</b><strong>hich activity would you prefer to do?</strong></dt>
       <dd>&nbsp;</dd>
       <dd>
         <select name="activitytype" onchange="redirect(this.options.selectedIndex)">
           <option value="0">Select:</option>
       </select>
       <select name="activitychoice" disabled="disabled">
           <option value="0">Activity:</option>
       </select>
       Other:
         <input type="text" size="26" maxlength="256" name="ActivityOther">
       </dd>
     </dl>
     <dl>
          <dt>&nbsp;</dt>
          <dt>&nbsp;</dt>
          <dt>&nbsp;</dt>
          <dt><strong>What is the maximum amount of money you would spend on a
          activity monthly?</strong></dt>
          <dd>&nbsp;</dd>
          <dd><strong>$HK
          <input type="text" name="MaxAmount" size="12"></strong></dd>
     </dl>
     
     <dl>
     <p><strong>Any additional information you would like to supply or feedback
     on the survey:</strong></p>
          <dd><textarea name="Comments" rows="5" cols="42"></textarea></dd>
          <dt>&nbsp;</dt>
          <dt><strong>Tell us how to get in touch with you (Optional):</strong></dt>
     </dl>
<dl>
     <dd>
     <table id="table3">
          <tr>
               <td>Name </td>
               <td><input maxLength="256" size="35" name="UserName"></td>
          </tr>
          <tr>
               <td>E-mail</td>
               <td><input maxLength="256" size="35" name="UserEmail"></td>
          </tr>
     </table>
     </dd>
</dl>
<p>
<INPUT TYPE=SUBMIT VALUE="Submit Form">
<INPUT TYPE=RESET VALUE="Reset Form">
</p>

</FORM>
<Script language=javascript>
{
var acttype = new Array();
var activities = new Array();

acttype[0] = "Sports";
acttype[1] = "Board Games";
acttype[2] = "Movies";
acttype[3] = "Other";

for (i=0;i<acttype.length;i++)
activities[i] = new Array();

activities[0][0] = "Basketball";
activities[0][1] = "Soccer";
activities[0][2] = "Rugby";
activities[0][3] = "Hockey";
activities[0][4] = "Other -> Use Box";
activities[1][0] = "Twister";
activities[1][1] = "UNO";
activities[1][2] = "Monopoly";
activities[1][3] = "Snakes and Ladders";
activities[1][4] = "Other -> Use Box";
activities[2][0] = "Action";
activities[2][1] = "Comedy";
activities[2][2] = "Romance";
activities[2][3] = "Thriller";
activities[3][0] = "Other -> Use Box";

var temp=document.condmenu.activitychoice

/*initialize the drop down Makes box */
for(j=0;j<acttype.length;j++){
document.condmenu.activitytype.options[j+1] = new Option(acttype[j], acttype[j]);
document.condmenu.activitytype.options[0].selected=true;

/*initialize the drop down Models box */
temp.options[0] = new Option("All Activity Types", "all_activity_types")

}

function redirect(x){

/* clear out the second drop down */
for (m=temp.options.length-1;m>0;m--)
temp.options[m]=null

temp.options[0] = new Option("All Activities", "all_activities")

/* if the user has selected the first option, disable the drop down boxes */
if(x==0){
temp.disabled = true;
return;
}

for (i=1;i<activities[x-1].length+1;i++){
temp.options[i]=new Option(activities[x-1][i-1],activities[x-1][i-1])
}

temp.options[0].selected=true
temp.disabled = false

appendurl(activities[x-1].length);
}

function appendurl(x)
{
     if(document.condmenu.activitychoice.value!="all_activities" || x==0)
     {
          document.condmenu.action += "/search_results.cgi";
     }
}
}
</script>

<HR>
<H5>
Copyright © 2006 [William Wong]. All rights reserved.</H5>
</BODY>
</HTML>


<stop copying>

Try it and let me know.

Joe Jenkins

 

by: RavingNunPosted on 2006-03-09 at 00:16:08ID: 16142362

Thats great. Its just that it wont sumbit the results. 404 Error.

 

by: joejenkinsjaxPosted on 2006-03-09 at 03:52:09ID: 16143287

Can I see this file?

<FORM METHOD="POST" ACTION="../_vti_bin/shtml.exe/survey/index.htm"

Joe

 

by: RavingNunPosted on 2006-03-09 at 03:53:28ID: 16143293

thats my survey page.

 

by: RavingNunPosted on 2006-03-10 at 03:08:59ID: 16153425

If I remake the page using the two combo boxes and use the javascript. It submits ok. But the javascript doesnt work. Theres are no options in the combobox. All there is, is the Please Select.

 

by: joejenkinsjaxPosted on 2006-03-10 at 04:05:16ID: 16153660

Check to see if  name="condmenu"  is in the form tag like this:

<FORM METHOD="POST" ACTION="../_vti_bin/shtml.exe/survey/index.htm" webbot-action="--WEBBOT-SELF--" name="condmenu">

... skip ...

<select name="activitytype" onchange="redirect(this.options.selectedIndex)">
           <option value="0">Select:</option>
       </select>
       <select name="activitychoice" disabled="disabled">
           <option value="0">Activity:</option>
       </select>

These two parts are pretty key to how the form "works" invoking the javascript.  If those names and the onchange element aren't there, it won't work.  Try adding the name element at the top first then adding the second section.  

It is kind of odd as to why it would "break" the form, but the form handling on FrontPage is a little different.  Try adding them piece by piece and get back to me.  

Joe

 

by: RavingNunPosted on 2006-03-10 at 04:39:46ID: 16153816

I use this <FORM METHOD="POST" ACTION="--WEBBOT-SELF--" name="condmenu">

instead of <FORM METHOD="POST" ACTION="../_vti_bin/shtml.exe/survey/index.htm" webbot-action="--WEBBOT-SELF--" name="condmenu">

Tried both of them, and they both work.

Theres this in there.
<select name="activitytype" onchange="redirect(this.options.selectedIndex)">
           <option value="0">Select:</option>
       </select>
       <select name="activitychoice" disabled="disabled">
           <option value="0">Activity:</option>
       </select>

The remake page's code is.


<HTML>
<HEAD>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
<meta http-equiv="Content-Language" content="en-us">
<TITLE>Make Space Questionnaire - William Wong</TITLE>
<meta name="keywords" content="KGV,Questionnaire,Survey,William,Wong,10S">
</HEAD>
<BODY bgcolor="#FFFFCC">
<H1><img border="0" src="banner.jpg" width="500" height="150"></H1>
<HR>
<P>
This is a survey that will help us design a Make Space activity for the
'activity space'. The information will be kept entirely private and used solely
for research.</P>
<P>
<b>Start by answering the questions below:</b></P>
<FORM METHOD="POST" ACTION="--WEBBOT-SELF--" name="condmenu">
<!--WEBBOT BOT=SaveResults
    U-File="C:\Documents and Settings\William\_private\formrslt.htm"
    S-Format="HTML/DL"
    B-Label-Fields="TRUE" startspan-->
<input TYPE="hidden" NAME="VTI-GROUP" VALUE="0">
<!--webbot bot="SaveResults" i-checksum="35335" endspan -->
     <p><strong>What is your Gender?</strong></p>
     <dl>
          <dd><input type="radio" name="Gender" value="Male">Male
          <input type="radio" name="Gender" value="Female">Female</dl>
     <p><strong>What is your age?</strong></p>
     <dl>
          <dd><input type="radio" name="Age" value="10-12">10-12
          <input type="radio" name="Age" value="13-15">13-15
          <input type="radio" name="Age" value="16-18">16-18
          <input type="radio" name="Age" value="18+">18+</dd>
          <dt>&nbsp;</dt>
          <dt><b>Which activities do you already take part in?</b></dt>
     
     </dl>
     <dl>
<table border="0" width="100%" id="table4" cellspacing="0" cellpadding="0">
      <tr>
            <td><input type="checkbox" name="ActivtiesAlready1" value="Soccer"> Soccer</td>
            <td>
               <input type="checkbox" name="ActivtiesAlready2" value="Basketball">
               Basketball</td>
            <td>
               <input type="checkbox" name="ActivtiesAlready3" value="Rugby"> Rugby</td>
            <td>
               <input type="checkbox" name="ActivtiesAlready4" value="Cricket">
               Cricket</td>
      </tr>
      <tr>
            <td>
               <input type="checkbox" name="ActivtiesAlready5" value="DramaClub"> Drama
               Club</td>
            <td>
               <input type="checkbox" name="ActivtiesAlready6" value="Cooking"> Cooking</td>
            <td>
               <input type="checkbox" name="ActivtiesAlready7" value="Textiles"> Textiles</td>
            <td width="25%">
            <input type="checkbox" name="ActivtiesAlready8" value="Art"> Art</td>
      </tr>
      <tr>
            <td><input type="checkbox" name="ActivtiesAlready9" value="Music"> Music</td>
            <td>
               <input type="checkbox" name="ActivtiesAlready10" value="Dance"> Dance</td>
            <td>
               <input type="checkbox" name="ActivtiesAlready11" value="Gardening"> Gardening</td>
            <td><input type="checkbox" name="ActivtiesAlready12" value="Reading"> Reading</td>
      </tr>
      <tr>
            <td width="25%">
            <input type="checkbox" name="ActivtiesAlready13" value="ActivitiesAlreadyOther">Other
          Please Specify:
            <input type="text" size="21" maxlength="256" name="ActivtiesAlready"></td>
            <td width="25%">&nbsp;</td>
            <td width="25%">&nbsp;</td>
            <td>&nbsp;</td>
      </tr>
</table>
           <li></li>
       <dt><b>Would you prefer the activities to be done privately or with a group?</b></dt>
       <dd>&nbsp;</dd>
       <dd>
         <input type="radio" name="PrivateGroup" value="Group">
         Group
         <input type="radio" name="PrivateGroup" value="Private">
         Private
         <input type="radio" name="PrivateGroup" value="Dont Mind">
         Don't Mind</dd>
       <dt>&nbsp;</dt>
       <dt><font face="Tahoma" size="2"><b>How far are you prepared to travel? (Minutes)</b></font></dt>
       <dd>&nbsp;</dd>
       <dd>
         <input type="radio" name="TravelTime" value="&lt;10">
     &lt;10
         <input type="radio" name="TravelTime" value="10-">
         10-20
         <input type="radio" name="TravelTime" value="20-">
         20-30
         <input type="radio" name="TravelTime" value="30-">
         30-40
         <input type="radio" name="TravelTime" value="40+">
         40+ </dd>
            <dt>&nbsp;</dt>
       <dt></dt>
           <dt><b>W</b><strong>hich activity would you prefer to do?</strong></dt>
            <dd>&nbsp;</dd>
            <dd>
            <select name="activitytype" onchange="redirect(this.options.selectedIndex)">
            <option value="0">Select:</option></select>
            <select name="activitychoice" disabled="disabled">
            <option value="0">Activity:</option></select>
       Other:
         <input type="text" size="26" maxlength="256" name="ActivityOther"> </dd>
            <dt>&nbsp;</dt>
            <dt><strong>What is the maximum amount of money you would spend on a
          activity monthly?</strong></dt>
            <dd>&nbsp;</dd>
            <dd><strong>$HK
          <input type="text" name="MaxAmount" size="12"></strong></dd>
     </dl>
     
     <dl>
     <p><strong>Any additional information you would like to supply or feedback
     on the survey:</strong></p>
          <dd><textarea name="Comments" rows="5" cols="42"></textarea></dd>
          <dt>&nbsp;</dt>
          <dt><strong>Tell us how to get in touch with you (Optional):</strong></dt>
     </dl>
<dl>
     <dd>
     <table id="table3">
          <tr>
               <td>Name </td>
               <td><input maxLength="256" size="35" name="UserName"></td>
          </tr>
          <tr>
               <td>E-mail</td>
               <td><input maxLength="256" size="35" name="UserEmail"></td>
          </tr>
     </table>
     </dd>
</dl>
<p>
<INPUT TYPE=SUBMIT VALUE="Submit Form">
<INPUT TYPE=RESET VALUE="Reset Form">
</p>

</FORM>
<Script language=javascript>
{
var acttype = new Array();
var activities = new Array();

acttype[0] = "Sports";
acttype[1] = "Board Games";
acttype[2] = "Movies";
acttype[3] = "Other";

for (i=0;i<acttype.length;i++)
activities[i] = new Array();

activities[0][0] = "Basketball";
activities[0][1] = "Soccer";
activities[0][2] = "Rugby";
activities[0][3] = "Hockey";
activities[0][4] = "Other -> Use Box";
activities[1][0] = "Twister";
activities[1][1] = "UNO";
activities[1][2] = "Monopoly";
activities[1][3] = "Snakes and Ladders";
activities[1][4] = "Other -> Use Box";
activities[2][0] = "Action";
activities[2][1] = "Comedy";
activities[2][2] = "Romance";
activities[2][3] = "Thriller";
activities[3][0] = "Other -> Use Box";

var temp=document.condmenu.activitychoice

/*initialize the drop down Makes box */
for(j=0;j<acttype.length;j++){
document.condmenu.activitytype.options[j+1] = new Option(acttype[j], acttype[j]);
document.condmenu.activitytype.options[0].selected=true;

/*initialize the drop down Models box */
temp.options[0] = new Option("All Activity Types", "all_activity_types")

}

function redirect(x){

/* clear out the second drop down */
for (m=temp.options.length-1;m>0;m--)
temp.options[m]=null

temp.options[0] = new Option("All Activities", "all_activities")

/* if the user has selected the first option, disable the drop down boxes */
if(x==0){
temp.disabled = true;
return;
}

for (i=1;i<activities[x-1].length+1;i++){
temp.options[i]=new Option(activities[x-1][i-1],activities[x-1][i-1])
}

temp.options[0].selected=true
temp.disabled = false

appendurl(activities[x-1].length);
}

function appendurl(x)
{
     if(document.condmenu.activitychoice.value!="all_activities" || x==0)
     {
          document.condmenu.action += "/search_results.cgi";
     }
}
}
</script>

<HR>
<H5>
Copyright © 2006 [William Wong]. All rights reserved.</H5>
</BODY>
</HTML>

 

by: joejenkinsjaxPosted on 2006-03-10 at 04:55:57ID: 16153920

So it's submitting now?

Joe

 

by: RavingNunPosted on 2006-03-10 at 04:57:07ID: 16153928

Its submitting but the combobox doesnt have any options.

 

by: joejenkinsjaxPosted on 2006-03-10 at 05:02:36ID: 16153964

I have to run into a meeting and I'll look at it more closely after that...

Joe

 

by: joejenkinsjaxPosted on 2006-03-10 at 07:47:29ID: 16155267

When I take that remake code and put it in a .html file, the file loads just fine, combobox dropdowns and all.  Is that page published to the server?  Is it in a public server where I can see it online?  I'd like to see both our pages on the server and see if we can't see what's happening.

Joe

 

by: RavingNunPosted on 2006-03-10 at 16:29:23ID: 16160412

Ok http://www.ravingnun.net/survey/index.htm , index2.htm , index3.htm, index4 .htm

index.htm - My original code

index2.htm - The code you gave me

index3. htm - The Remake #1

index4.htm - The Remake #2

This isn't where the files are going to be hosted, its going to be published on a private site.

Thanks in Advanced

 

by: RavingNunPosted on 2006-03-11 at 19:01:54ID: 16165604

I know you have already spent lots of time on this but its kinda urgent.

 

by: joejenkinsjaxPosted on 2006-03-12 at 06:16:42ID: 16167468

OK, take the code from "index2.html" and change the following:

<!--WEBBOT BOT=SaveResults
    U-File="C:\Documents and Settings\William\_private\formrslt.htm"

to:

<!--WEBBOT BOT=SaveResults
    U-File="..\_private\formrslt.htm"

Reason:  Let's try making this a virtual path here.

Here's a big difference in our two codes.  The one that works is correct in how it makes the function call.  Javascript function calls are case sensistive:

Your code:
            <select name="ActivityYype" onchange="redirect(this.options.selectedIndex)">
            <option value="0">Select:</option></select>
            <select name="ActivityChoice" disabled="disabled">
            <option value="0">Activity:</option></select>

My code:
            <select name="activitytype" onchange="redirect(this.options.selectedIndex)">
            <option value="0">Select:</option></select>
            <select name="activitychoice" disabled="disabled">
            <option value="0">Activity:</option></select>

Note the difference in case of "activitytype" and "activitychoice".

I took index3.htm which submits and made that simple change and the boxes show correctly again.  Give that a try and let me know.  

Joe

 

by: joejenkinsjaxPosted on 2006-03-12 at 06:18:02ID: 16167476

That's actually two separate files above.  Try the second one first where you're changing index3 as I'm more confident of that one.

Joe

 

by: RavingNunPosted on 2006-03-13 at 00:04:35ID: 16172087

They both didnt work. Ive done that before, still same thing. But to make sure ive done it again, doesnt work.

 

by: RavingNunPosted on 2006-03-13 at 00:08:19ID: 16172100

Do you have a host that you can try these on. I can open an temporary account for you on one of my sites so you would be able to test it.

 

by: RavingNunPosted on 2006-03-13 at 00:24:30ID: 16172154

Ive found a way to get it working.
With index2.htm - The original code you gave me.

I changed the U-file to
U-File="..\_private\formrslt.htm"

I thought ive done this before but oh well. That doesnt matter.
But one problem I validate any of fields as required the javascript will automatically not work.

Heres the index2.htm code if you dont have it.


<HTML>
<HEAD>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
<meta http-equiv="Content-Language" content="en-us">
<TITLE>Make Space Questionnaire - William Wong</TITLE>
<meta name="keywords" content="KGV,Questionnaire,Survey,William,Wong,10S">
</HEAD>
<BODY bgcolor="#FFFFCC">
<H1><img border="0" src="banner.jpg" width="500" height="150"></H1>
<HR>
<P>
This is a survey that will help us design a Make Space activity for the
'activity space'. The information will be kept entirely private and used solely
for research.</P>
<P>
<b>Start by answering the questions below:</b></P>
<FORM METHOD="POST" ACTION="--WEBBOT-SELF--" name="condmenu">
<!--WEBBOT BOT=SaveResults
      U-File="../_private/formrslt.htm"
    S-Format="HTML/DL"
    B-Label-Fields="TRUE" startspan
--><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--webbot bot="SaveResults" i-checksum="43374" endspan -->
     <p><strong>What is your Gender?</strong></p>
     <dl>
          <dd><input type="radio" name="Gender" value="Male">Male
          <input type="radio" name="Gender" value="Female">Female</dl>
     <p><strong>What is your age?</strong></p>
     <dl>
          <dd><input type="radio" name="Age" value="10-12">10-12
          <input type="radio" name="Age" value="13-15">13-15
          <input type="radio" name="Age" value="16-18">16-18
          <input type="radio" name="Age" value="18+">18+</dd>
          <dt>&nbsp;</dt>
          <dt><b>Which activities do you already take part in?</b></dt>
     
     </dl>
<table border="0" width="100%" id="table4" cellspacing="0" cellpadding="0">
      <tr>
            <td><input type="checkbox" name="ActivitiesAlready" value="Soccer"> Soccer</td>
            <td>
               <input type="checkbox" name="ActivitiesAlready" value="Basketball">
               Basketball</td>
            <td>
               <input type="checkbox" name="ActivitiesAlready" value="Rugby"> Rugby</td>
            <td>
               <input type="checkbox" name="ActivitiesAlready" value="Cricket">
               Cricket</td>
      </tr>
      <tr>
            <td>
               <input type="checkbox" name="ActivitiesAlready" value="DramaClub"> Drama
               Club</td>
            <td>
               <input type="checkbox" name="ActivitiesAlready" value="Cooking"> Cooking</td>
            <td>
               <input type="checkbox" name="ActivitiesAlready" value="Textiles"> Textiles</td>
            <td width="25%">
            <input type="checkbox" name="ActivitiesAlready" value="Art"> Art</td>
      </tr>
      <tr>
            <td><input type="checkbox" name="ActivitiesAlready" value="Music"> Music</td>
            <td>
               <input type="checkbox" name="ActivitiesAlready" value="Dance"> Dance</td>
            <td>
               <input type="checkbox" name="ActivitiesAlready" value="Gardening"> Gardening</td>
            <td><input type="checkbox" name="ActivitiesAlready" value="Reading"> Reading</td>
      </tr>
      <tr>
            <td width="25%">
            <input type="checkbox" name="ActivitiesAlready" value="ActivitiesAlreadyOther">Other
          Please Specify:
            <input type="text" size="21" maxlength="256" name="ActivitiesAlreadyOther"></td>
            <td width="25%">&nbsp;</td>
            <td width="25%">&nbsp;</td>
            <td>&nbsp;</td>
      </tr>
</table>
     <dl>
       <dt><b>Would you prefer the activities to be done privately or with a group?</b></dt>
       <dd>&nbsp;</dd>
       <dd>
         <input type="radio" name="PrivateGroup" value="Group">
         Group
         <input type="radio" name="PrivateGroup" value="Private">
         Private
         <input type="radio" name="PrivateGroup" value="Dont Mind">
         Don't Mind</dd>
       <dt>&nbsp;</dt>
       <dt><font face="Tahoma" size="2"><b>How far are you prepared to travel? (Minutes)</b></font></dt>
       <dd>&nbsp;</dd>
       <dd>
         <input type="radio" name="TravelTime" value="&lt;10">
     &lt;10
         <input type="radio" name="TravelTime" value="10-">
         10-20
         <input type="radio" name="TravelTime" value="20-">
         20-30
         <input type="radio" name="TravelTime" value="30-">
         30-40
         <input type="radio" name="TravelTime" value="40+">
         40+ </dd>
            <dt>&nbsp;</dt>
       <dt></dt>
           <dt><b>W</b><strong>hich activity would you prefer to do?</strong></dt>
            <dd>&nbsp;</dd>
            <dd>
            <select name="activitytype" onchange="redirect(this.options.selectedIndex)">
            <option value="0">Select:</option></select>
            <select name="activitychoice" disabled="disabled">
            <option value="0">Activity:</option></select>
       Other:
         <input type="text" size="26" maxlength="256" name="ActivityOther"> </dd>
            <dt>&nbsp;</dt>
            <dt><strong>What is the maximum amount of money you would spend on a
          activity monthly?</strong></dt>
            <dd>&nbsp;</dd>
            <dd><strong>$HK
          <input type="text" name="MaxAmount" size="12"></strong></dd>
     </dl>
     
     <dl>
     <p><strong>Any additional information you would like to supply or feedback
     on the survey:</strong></p>
          <dd><textarea name="Comments" rows="5" cols="42"></textarea></dd>
          <dt>&nbsp;</dt>
          <dt><strong>Tell us how to get in touch with you (Optional):</strong></dt>
     </dl>
<dl>
     <dd>
     <table id="table3">
          <tr>
               <td>Name </td>
               <td><input maxLength="256" size="35" name="UserName"></td>
          </tr>
          <tr>
               <td>E-mail</td>
               <td><input maxLength="256" size="35" name="UserEmail"></td>
          </tr>
     </table>
     </dd>
</dl>
<p>
<INPUT TYPE=SUBMIT VALUE="Submit Form">
<INPUT TYPE=RESET VALUE="Reset Form">
</p>

</FORM>
<Script language=javascript>
{
var acttype = new Array();
var activities = new Array();

acttype[0] = "Sports";
acttype[1] = "Board Games";
acttype[2] = "Movies";
acttype[3] = "Other";

for (i=0;i<acttype.length;i++)
activities[i] = new Array();

activities[0][0] = "Basketball";
activities[0][1] = "Soccer";
activities[0][2] = "Rugby";
activities[0][3] = "Hockey";
activities[0][4] = "Other -> Use Box";
activities[1][0] = "Twister";
activities[1][1] = "UNO";
activities[1][2] = "Monopoly";
activities[1][3] = "Snakes and Ladders";
activities[1][4] = "Other -> Use Box";
activities[2][0] = "Action";
activities[2][1] = "Comedy";
activities[2][2] = "Romance";
activities[2][3] = "Thriller";
activities[3][0] = "Other -> Use Box";

var temp=document.condmenu.activitychoice

/*initialize the drop down Makes box */
for(j=0;j<acttype.length;j++){
document.condmenu.activitytype.options[j+1] = new Option(acttype[j], acttype[j]);
document.condmenu.activitytype.options[0].selected=true;

/*initialize the drop down Models box */
temp.options[0] = new Option("All Activity Types", "all_activity_types")

}

function redirect(x){

/* clear out the second drop down */
for (m=temp.options.length-1;m>0;m--)
temp.options[m]=null

temp.options[0] = new Option("All Activities", "all_activities")

/* if the user has selected the first option, disable the drop down boxes */
if(x==0){
temp.disabled = true;
return;
}

for (i=1;i<activities[x-1].length+1;i++){
temp.options[i]=new Option(activities[x-1][i-1],activities[x-1][i-1])
}

temp.options[0].selected=true
temp.disabled = false

appendurl(activities[x-1].length);
}

function appendurl(x)
{
     if(document.condmenu.activitychoice.value!="all_activities" || x==0)
     {
          document.condmenu.action += "/search_results.cgi";
     }
}
}
</script>

<HR>
<H5>
Copyright © 2006 [William Wong]. All rights reserved.</H5>
</BODY>
</HTML>

 

by: joejenkinsjaxPosted on 2006-03-13 at 03:54:30ID: 16173354

So when you try to apply the FrontPage validation to the form it breaks the javascript?  That makes sense.  FrontPage alters code tremendously. I would strongly recommend a migration to Dreamweaver for a GUI interface HTML writer.  The code it writes is much more compliant than that of MSFP, but that's a side note.  Try setting up your form validation first, then reinserting the necessary Javscript calls and name="" etc.   Make  your validation changes and then post that code and I'll assist you in inserting the javascript.

Joe

 

by: RavingNunPosted on 2006-03-13 at 05:05:38ID: 16173701

<HTML>
<HEAD>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
<meta http-equiv="Content-Language" content="en-us">
<TITLE>Make Space Questionnaire - William Wong</TITLE>
<meta name="keywords" content="KGV,Questionnaire,Survey,William,Wong,10S">
</HEAD>
<BODY bgcolor="#FFFFCC">
<H1><img border="0" src="banner.jpg" width="500" height="150"></H1>
<HR>
<P>
This is a survey that will help us design a Make Space activity for the
'activity space'. The information will be kept entirely private and used solely
for research.</P>
<P>
<b>Start by answering the questions below:</b></P>
<FORM METHOD="POST" ACTION="--WEBBOT-SELF--" onsubmit="return FrontPage_Form1_Validator(this)" language="JavaScript" name="FrontPage_Form1">
<!--WEBBOT BOT=SaveResults
    U-File="C:\Documents and Settings\William\Local Settings\Temporary Internet Files\Content.IE5\_private\formrslt.htm"
    S-Format="HTML/DL"
    B-Label-Fields="TRUE" startspan --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--webbot bot="SaveResults" i-checksum="43374" endspan -->
      <p><strong>What is your Gender?</strong></p>
      <dl>
            <dd><!--webbot bot="Validation" b-value-required="TRUE" --><input type="radio" name="Gender" value="Male">Male
            <input type="radio" name="Gender" value="Female">Female</dl>
      <p><strong>What is your age?</strong></p>
      <dl>
            <dd><!--webbot bot="Validation" b-value-required="TRUE" --><input type="radio" name="Age" value="10-12">10-12
            <input type="radio" name="Age" value="13-15">13-15
            <input type="radio" name="Age" value="16-18">16-18
            <input type="radio" name="Age" value="18+">18+</dd>
            <dt>&nbsp;</dt>
            <dt><b>Which activities do you already take part in?</b></dt>
            <dd>&nbsp;</dd>
      <table border="0" width="100%" id="table1" cellspacing="0" cellpadding="0">
            <tr>
                  <td><input type="checkbox" name="ActivitiesAlready" value="Soccer">
                  Soccer </td>
                  <td width="25%">
                  <input type="checkbox" name="ActivitiesAlready" value="Basketball">
                  Basketball</td>
                  <td width="25%">
                  <input type="checkbox" name="ActivitiesAlready" value="Rugby"> Rugby
                  </td>
                  <td width="25%">
                  <input type="checkbox" name="ActivitiesAlready" value="Cricket">
                  Cricket</td>
            </tr>
            <tr>
                  <td width="25%">
                  <input type="checkbox" name="ActivitiesAlready" value="DramaClub">
                  Drama Club</td>
                  <td width="87">
                  <input type="checkbox" name="ActivitiesAlready" value="Cooking">
                  Cooking</td>
                  <td>
                  <input type="checkbox" name="ActivitiesAlready" value="Textiles">
                  Textiles</td>
                  <td><input type="checkbox" name="ActivitiesAlready" value="Art"> Art</td>
            </tr>
            <tr>
                  <td><input type="checkbox" name="ActivitiesAlready" value="Music">
                  Music</td>
                  <td width="87">
                  <input type="checkbox" name="ActivitiesAlready" value="Dance"> Dance</td>
                  <td>
                  <input type="checkbox" name="ActivitiesAlready" value="Gardening">
                  Gardening</td>
                  <td><input type="checkbox" name="ActivitiesAlready" value="Reading">
                  Reading</td>
            </tr>
      </table>
      
      </dl>
      <dl>
            <dt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <input type="checkbox" name="ActivitiesAlreadyOther" value="ActivitiesAlreadyOther">Other
            Please Specify:
            <input type="text" size="26" maxlength="256" name="ActivitiesAlreadyOther"></dt>
      </dl>
      <dl>
            <dt><b>Would you prefer the activities to be done privately or with a
            group?</b></dt>
            <dd>&nbsp;</dd>
            <dd><!--webbot bot="Validation" b-value-required="TRUE" --><input type="radio" name="PrivateGroup" value="Group">Group
            <input type="radio" name="PrivateGroup" value="Private">Private
            <input type="radio" name="PrivateGroup" value="Dont Mind">Don't Mind</dd>
            <dt>&nbsp;</dt>
            <dt><font face="Tahoma" size="2"><b>How far are you prepared to travel?
            (Minutes)</b></font></dt>
            <dd>&nbsp;</dd>
            <dd>&nbsp;<!--webbot bot="Validation" b-value-required="TRUE" --><input type="radio" name="TravelTime" value="&lt;10">&lt;10
            <input type="radio" name="TravelTime" value="10-">10-20
            <input type="radio" name="TravelTime" value="20-">20-30
            <input type="radio" name="TravelTime" value="30-">30-40
            <input type="radio" name="TravelTime" value="40+">40+ </dd>
            <dt>&nbsp;</dt>
            <dt><strong>What is the maximum amount of money you would spend on a
            activity monthly?</strong></dt>
            <dd>&nbsp;</dd>
            <dd><strong>$HK&nbsp;
            <!--webbot bot="Validation" b-value-required="TRUE" -->
            <input type="text" name="MaxAmount" size="12"></strong></dd>
      </dl>
      
      <dl>
      <p><strong>Any additional information you would like to supply or feedback
      on the survey:</strong></p>
            <dd><textarea name="Comments" rows="5" cols="42"></textarea></dd>
            <dt>&nbsp;</dt>
            <dt><strong>Tell us how to get in touch with you (Optional):</strong></dt>
      </dl>
<dl>
      <dd>
      <table id="table3">
            <tr>
                  <td>Name </td>
                  <td><input maxLength="256" size="35" name="UserName"></td>
            </tr>
            <tr>
                  <td>E-mail</td>
                  <td><input maxLength="256" size="35" name="UserEmail"></td>
            </tr>
      </table>
      </dd>
</dl>
<p>
<INPUT TYPE=SUBMIT VALUE="Submit Form">
<INPUT TYPE=RESET VALUE="Reset Form">
</p>
</FORM>
<HR>
<H5>
Copyright © 2006 [William Wong]. All rights reserved.</H5>
</BODY>
</HTML>


I would also like the javascript combobox to be required.

Yea. Were almost there now.

 

by: joejenkinsjaxPosted on 2006-03-13 at 08:03:46ID: 16175131

OK, I have edited the form to include the javascript and the FP validation.  After you copy and paste the following code I want you to edit the form properties (entire form) and change the name from "FrontPage_Form1" to "condmenu" -- obviously without the quotation marks here.  I just tested this form and it works.  Also be mindful that I had to revert the U-FILE value back as it used a full pathname rather than the virtual pathname that we touched on earlier.  Always check that if you have a form file not working in the future.

Here's the code:

<HTML>
<HEAD>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
<meta http-equiv="Content-Language" content="en-us">
<TITLE>Make Space Questionnaire - William Wong</TITLE>
<meta name="keywords" content="KGV,Questionnaire,Survey,William,Wong,10S">
</HEAD>
<BODY bgcolor="#FFFFCC">
<H1><img border="0" src="banner.jpg" width="500" height="150"></H1>
<HR>
<P>
This is a survey that will help us design a Make Space activity for the
'activity space'. The information will be kept entirely private and used solely
for research.</P>
<P>
<b>Start by answering the questions below:</b></P>
<FORM METHOD="POST" ACTION="--WEBBOT-SELF--" onsubmit="return FrontPage_Form1_Validator(this)" language="JavaScript" name="condmenu">
<!--WEBBOT BOT=SaveResults
    U-File="..\_private\formrslt.htm"
    S-Format="HTML/DL"
    B-Label-Fields="TRUE" startspan --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--webbot bot="SaveResults" i-checksum="43374" endspan -->
     <p><strong>What is your Gender?</strong></p>
     <dl>
          <dd><!--webbot bot="Validation" b-value-required="TRUE" --><input type="radio" name="Gender" value="Male">Male
          <input type="radio" name="Gender" value="Female">Female</dl>
     <p><strong>What is your age?</strong></p>
     <dl>
          <dd><!--webbot bot="Validation" b-value-required="TRUE" --><input type="radio" name="Age" value="10-12">10-12
          <input type="radio" name="Age" value="13-15">13-15
          <input type="radio" name="Age" value="16-18">16-18
          <input type="radio" name="Age" value="18+">18+</dd>
          <dt>&nbsp;</dt>
          <dt><b>Which activities do you already take part in?</b></dt>
          <dd>&nbsp;</dd>
     <table border="0" width="100%" id="table1" cellspacing="0" cellpadding="0">
          <tr>
               <td><input type="checkbox" name="ActivitiesAlready" value="Soccer">
               Soccer </td>
               <td width="25%">
               <input type="checkbox" name="ActivitiesAlready" value="Basketball">
               Basketball</td>
               <td width="25%">
               <input type="checkbox" name="ActivitiesAlready" value="Rugby"> Rugby
               </td>
               <td width="25%">
               <input type="checkbox" name="ActivitiesAlready" value="Cricket">
               Cricket</td>
          </tr>
          <tr>
               <td width="25%">
               <input type="checkbox" name="ActivitiesAlready" value="DramaClub">
               Drama Club</td>
               <td width="87">
               <input type="checkbox" name="ActivitiesAlready" value="Cooking">
               Cooking</td>
               <td>
               <input type="checkbox" name="ActivitiesAlready" value="Textiles">
               Textiles</td>
               <td><input type="checkbox" name="ActivitiesAlready" value="Art"> Art</td>
          </tr>
          <tr>
               <td><input type="checkbox" name="ActivitiesAlready" value="Music">
               Music</td>
               <td width="87">
               <input type="checkbox" name="ActivitiesAlready" value="Dance"> Dance</td>
               <td>
               <input type="checkbox" name="ActivitiesAlready" value="Gardening">
               Gardening</td>
               <td><input type="checkbox" name="ActivitiesAlready" value="Reading">
               Reading</td>
          </tr>
     </table>
     
     </dl>
     <dl>
          <dt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          <input type="checkbox" name="ActivitiesAlreadyOther" value="ActivitiesAlreadyOther">Other
          Please Specify:
          <input type="text" size="26" maxlength="256" name="ActivitiesAlreadyOther"></dt>
     </dl>
     <dl>
          <dt><b>W</b><strong>hich activity would you prefer to do?</strong></dt>
          <dd>&nbsp;</dd>
          <dd>
          <!--webbot bot="Validation" b-value-required="TRUE" --><select name="activitytype" onchange="redirect(this.options.selectedIndex)">
          <option value="0">Select:</option></select>
          <!--webbot bot="Validation" b-value-required="TRUE" --><select name="activitychoice" disabled="disabled">
          <option value="0">Activity:</option></select>
       Other:
         <input type="text" size="26" maxlength="256" name="ActivityOther"> </dd>
          <dt>&nbsp;</dt>
          <dt><strong>What is the maximum amount of money you would spend on a
          activity monthly?</strong></dt>
          <dd>&nbsp;</dd>
          <dd><strong>$HK
          <input type="text" name="MaxAmount" size="12"></strong></dd><br>
     </dl>
          <dt><b>Would you prefer the activities to be done privately or with a
          group?</b></dt>
          <dd>&nbsp;</dd>
          <dd><!--webbot bot="Validation" b-value-required="TRUE" --><input type="radio" name="PrivateGroup" value="Group">Group
          <input type="radio" name="PrivateGroup" value="Private">Private
          <input type="radio" name="PrivateGroup" value="Dont Mind">Don't Mind</dd>
          <dt>&nbsp;</dt>
          <dt><font face="Tahoma" size="2"><b>How far are you prepared to travel?
          (Minutes)</b></font></dt>
          <dd>&nbsp;</dd>
          <dd>&nbsp;<!--webbot bot="Validation" b-value-required="TRUE" --><input type="radio" name="TravelTime" value="&lt;10">&lt;10
          <input type="radio" name="TravelTime" value="10-">10-20
          <input type="radio" name="TravelTime" value="20-">20-30
          <input type="radio" name="TravelTime" value="30-">30-40
          <input type="radio" name="TravelTime" value="40+">40+ </dd>
          <dt>&nbsp;</dt>
          <dt><strong>What is the maximum amount of money you would spend on a
          activity monthly?</strong></dt>
          <dd>&nbsp;</dd>
          <dd><strong>$HK&nbsp;
          <!--webbot bot="Validation" b-value-required="TRUE" -->
          <input type="text" name="MaxAmount" size="12"></strong></dd>
     </dl>
     
     <dl>
     <p><strong>Any additional information you would like to supply or feedback
     on the survey:</strong></p>
          <dd><textarea name="Comments" rows="5" cols="42"></textarea></dd>
          <dt>&nbsp;</dt>
          <dt><strong>Tell us how to get in touch with you (Optional):</strong></dt>
     </dl>
<dl>
     <dd>
     <table id="table3">
          <tr>
               <td>Name </td>
               <td><input maxLength="256" size="35" name="UserName"></td>
          </tr>
          <tr>
               <td>E-mail</td>
               <td><input maxLength="256" size="35" name="UserEmail"></td>
          </tr>
     </table>
     </dd>
</dl>
<p>
<INPUT TYPE=SUBMIT VALUE="Submit Form">
<INPUT TYPE=RESET VALUE="Reset Form">
</p>
</FORM>

</FORM>
<Script language=javascript>
{
var acttype = new Array();
var activities = new Array();

acttype[0] = "Sports";
acttype[1] = "Board Games";
acttype[2] = "Movies";
acttype[3] = "Other";

for (i=0;i<acttype.length;i++)
activities[i] = new Array();

activities[0][0] = "Basketball";
activities[0][1] = "Soccer";
activities[0][2] = "Rugby";
activities[0][3] = "Hockey";
activities[0][4] = "Other -> Use Box";
activities[1][0] = "Twister";
activities[1][1] = "UNO";
activities[1][2] = "Monopoly";
activities[1][3] = "Snakes and Ladders";
activities[1][4] = "Other -> Use Box";
activities[2][0] = "Action";
activities[2][1] = "Comedy";
activities[2][2] = "Romance";
activities[2][3] = "Thriller";
activities[3][0] = "Other -> Use Box";

var temp=document.condmenu.activitychoice

/*initialize the drop down Makes box */
for(j=0;j<acttype.length;j++){
document.condmenu.activitytype.options[j+1] = new Option(acttype[j], acttype[j]);
document.condmenu.activitytype.options[0].selected=true;

/*initialize the drop down Models box */
temp.options[0] = new Option("All Activity Types", "all_activity_types")

}

function redirect(x){

/* clear out the second drop down */
for (m=temp.options.length-1;m>0;m--)
temp.options[m]=null

temp.options[0] = new Option("All Activities", "all_activities")

/* if the user has selected the first option, disable the drop down boxes */
if(x==0){
temp.disabled = true;
return;
}

for (i=1;i<activities[x-1].length+1;i++){
temp.options[i]=new Option(activities[x-1][i-1],activities[x-1][i-1])
}

temp.options[0].selected=true
temp.disabled = false

appendurl(activities[x-1].length);
}

function appendurl(x)
{
     if(document.condmenu.activitychoice.value!="all_activities" || x==0)
     {
          document.condmenu.action += "/search_results.cgi";
     }
}
}
</script>

<HR>
<H5>
Copyright © 2006 [William Wong]. All rights reserved.</H5>
</BODY>
</HTML>

I went ahead and changed the name in the code I placed here but if you get the boxes that don't dropdown and just say "Select:" then change the entire form property name either through the GUI or manually editing the code yourself.  

Keep me posted.

Joe

 

by: RavingNunPosted on 2006-03-14 at 00:20:58ID: 16181656

" I went ahead and changed the name in the code I placed here but if you get the boxes that don't dropdown and just say "Select:" then change the entire form property name either through the GUI or manually editing the code yourself.  "
I dont get what you mean by that. The Javascript doesnt work, Select:, but wierdly it works locally. When I run the html file on my computer. I also cant check if the form works because theres the required validation for the combobox, and I cant select any of the options.

 

by: RavingNunPosted on 2006-03-14 at 03:09:35ID: 16182543

I reread and I did change it to condmenu. Same thing.

 

by: joejenkinsjaxPosted on 2006-03-17 at 06:43:04ID: 16216142

Hello RavingNun!  I have done some more research on this and I'm unable to find a way for it be able to work under the guise of FrontPage.  If this were my server, I would use a CGI mailform like "FormMail" (you can get formmail here: http://www.scriptarchive.com/formmail.html) and then add the javascript I use above to get the desired effect that you want.  As far as validation goes, it's pretty simple with javascript as well.

Below are some links to some javascript validation resources:

http://www.echoecho.com/jsforms.htm

Pretty good one here:
http://developer.apple.com/internet/webcontent/validation.html

I hope this helps you out.

Joe

 

by: RavingNunPosted on 2006-03-17 at 16:15:25ID: 16221803

Then if there really isnt a way. I guess I would have to reward the points to you.

Thanks for All your Help,
William

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...