Forum Discussion

grizfan's avatar
grizfan
Helper
16 years ago

Using Active Cast to display a poll

Hi,

 

I'm trying to use Active Cast to display a poll on various pages on our website and allow for anonymous voting.I have the poll set up to allow for anonymous voiting, and I also changed the default permissions so "Allow user to make REST API calls with read access" is set to grant ("Allow user to make REST API calls with modify access" is still set to deny, though). Also, for the poll, at one point I had security by cookie set, but have sinced changed that to security by IP.

 

After some early struggles, I am able to display a sample poll on a test page using the Active Cast code, but I'm not able to vote, either when logged in or when not.

 

when I click the submit button, the page makes a call to our forum, but nothing updates in the poll. I looked at the headers, here's the call:

http://forum.crucial.com//t5/activecast/serverproxy#0:init:id=XhrIframeProxy3&client=http%3A%2F%2Fcrudevnet.micron.com%2Fjs%2Fxip_client.html&callback=dojox.io.proxy.xip.fragmentReceived

 

this gets an HTTP 200 OK response.

 

any suggestions?

 

thanks!

  • Hi grizfan,

     

    You need to set the "Allow user to make REST API calls with modify access" permission to "Grant" to allow users to make any rest call that will modify the application, such as voting on a poll.

     

    That should do the trick. :)

2 Replies

  • BrianO's avatar
    BrianO
    Lithium Alumni (Retired)
    16 years ago

    Hi grizfan,

     

    You need to set the "Allow user to make REST API calls with modify access" permission to "Grant" to allow users to make any rest call that will modify the application, such as voting on a poll.

     

    That should do the trick. :)

  • webstudio_jan's avatar
    webstudio_jan
    Contributor
    12 years ago

    Hi,

     

    When trying to setup the poll with activecast it asks me for an id. I did find it by inspecting the reset button but isn't it better to display an id in the features -> polls?

     

    Question 2 when setting up the activecast poll it throws an error when submitting a vote.

     

    Access denied for http://www.***.com
    http://***.i.lithium.com/t5/scripts/1BF04BC3A1B4BAD782ED3D6DBFBB32C1/lia-scripts-body-min.js
    Line 86

    if(!config.isHost){config.channel=query.xdm_c;config.secret=query.xdm_s;config.remote=query.xdm_e;protocol=query.xdm_p;if(config.acl&&!checkAcl(config.acl,config.remote)){throw new Error("Access denied for "+config.remote);}}

     

    I did setup the users -> permissions -> defaults -> Make REST API calls with modify access -> grant

     

    please help.

     

    Thanks, cheers, 

     

    Jan