View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Spry Rating results mailed

Thread began 1/18/2010 8:30 am by Blikbrein | Last modified 1/18/2010 8:02 pm by Blikbrein | 728 views | 1 replies

Jason ByrnesWebAssist

the following is from the adobe documentation for sending the rating to the server:

index.html#anatomy

  send the rated value to the server

The Rating widget has a mechanism to send the user selected rating value to the server. You can choose the method to send data: GET or POST. The default method used to send the data is GET. If you want to send the data via POST you should add "postData" option in the widget constructor.

When sending via GET method you only have to provide the "saveUrl" option which takes the real URL for saving data. The widget constructor will look like:

<script type="text/javascript">
var rate = new Spry.Widget.Rating("spryrating1", {saveUrl:'SpryRating.php?id=spryrating5&val=@@rw_Rating@@'});
</script>

If you need to send the data via POST, you should add in the widget constructor the "postData" option- a string containing the url encode and the "saveUrl" - url for saving data. The "postData" string can contain the placeholder for the rated value, in this format @@ratingValue@@. It is always send in conjunction with saveUrl.
The widget constructor in this case:

<script type="text/javascript">
var rate = new Spry.Widget.Rating("spryrating1", {postData: 'id=spryrating2&val=@@ratingValue@@', saveUrl:'SpryRating.php});
</script>  





use the postData method to convert the rating to a post, you probably need to add a hidden form element with same name, then you can add the binding in Universal Email to email the rating.


If you need further assisting implementing the postData, you should post in the Spry Forums, when you can post the rating, it should be simple to output into the email.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...