ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Manually creating XID hash

July 02, 2008 3:13pm

Subscribe [1]
  • #1 / Jul 02, 2008 3:13pm

    bhggraphicdesign

    52 posts

    My client would like to allow users to change their mind after rating a weblog entry using the Solspace Ratings form. I’m submitting the form via Ajax, which updates the ratings just fine. The display is controlled by another custom Ajax call to the db. But it only works only once. Since the form itself doesn’t change, allow_duplicates=“yes” is meaningless until the page is refreshed and the XID value is changed.

    So, in order for this to work I also have to rewrite the XID value of the form with another Ajax call. (I believe that’s what is preventing resubmission.) Can someone tell me how this hash is created and what its parameters are? This won’t be in a template, so I can’t just use the EE tag.

  • #2 / Jul 02, 2008 4:07pm

    Ingmar

    29245 posts

    You might get a better answer at the Solspace forums, but I am not sure how feasible that really is. You would have to modify the information submitted to the database, which means identifying it in the first place, etc. A number of issues I see here; not sure it’d be ultimately worth the trouble.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases