Manually creating XID hash
Posted: 02 July 2008 12:13 PM   [ Ignore ]  
Grad Student
Rank
Total Posts:  76
Joined  08-11-2007

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.

Profile
 
 
Posted: 02 July 2008 01:07 PM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15380
Joined  05-15-2004

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.

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64938 Total Logged-in Users: 70
Total Topics: 81907 Total Anonymous Users: 47
Total Replies: 440303 Total Guests: 288
Total Posts: 522210    
Members ( View Memberlist )