Skip navigation
Currently Being Moderated

Rate from 1-10 Dreamweaver form (validate - no using same # twice)

Jul 22, 2010 1:03 PM

Hello,

 

I have a customer that wants me to have a list of 10 items with a drop down menu next to each item with the numbers 1 - 10.  They would like their customers to rate the items in this list and they would like to make sure no number is used twice.  How can I do this?

 
Replies
  • Currently Being Moderated
    Jul 22, 2010 1:06 PM   in reply to mshef534

    HTML has no facility for doing something like this. You would need to use custom javascript to monitor the values already used and to adjust the available choices in each drop list.  Perhaps you can find some scripts by using Google with appropriate search terms.  I'm not aware of any, however.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 22, 2010 8:27 PM   in reply to mshef534

    Have you had a look at the Spry Rating Widgets http://labs.adobe.com/technologies/spry/samples/

     

    It is easy to place a widget observer to ensure that a value is not entered twice.

     

    I hope this helps.

    Ben

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 23, 2010 4:24 AM   in reply to Ben Pleysier

    Brilliant.  Thanks!

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 23, 2010 4:52 AM   in reply to MurraySummers
     
    |
    Mark as:
  • Currently Being Moderated
    Jan 4, 2011 12:09 PM   in reply to mshef534

    I've used spry rating for some product page developments and I believe spry's rating observer prevents a user from rating twice in the same pageload, but it doesn't prevent a user from entering the same value to different rating elements in one pageload. For instance: spry will let you rate then prevent you from rating again during the same pageload, but you can't use out-of-box spry rating to have a rating scale of 1-10 for 10 items on one page and use spry rating observer to prevent your rating of 5 for item 1 and rating of 5 for item 2.

     

    Therefore I don't think it will work for your request that:

    they would like to make sure no number is used twice

     

    It's not the same as:

     

    place a widget observer to ensure that a value is not entered twice.

     

     

    You'd need some other javascript method to develop this feature.

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 4, 2011 2:39 PM   in reply to mshef534

    If you have DW CS3/4/5 there is a button that will place the widget in your document

    Capture.jpg

    Gramps

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points