Problems with voting modules
Igor K - October 30, 2008 - 22:13
| Project: | Subdomain |
| Version: | 6.x-1.4 |
| Component: | Miscellaneous |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Jump to:
Description
Hello, I successfully installed and configured the module and was very happy until I looked at how Extra Voting Forms (and DrupalIt) began to work.
I created subdomains for users, so they now have aliases like user.domain.com. The problem appears when I`m trying to vote from user page, i.e. from user.domain.com. Karma Error: Communication (0) message box appears in Extra Voting Form and nothing at all appears in DrupalIt module, and my vote isnt successful.
So I`m not able to vote from subdomains.
If anyone can suggest something, please do it, cause the problem makes this fascinating module almost unusable for me :)
Thank you very much!

#1
I am also experiencing similar thing. I am using fivestar and fivestar extra module with subdomain module in my site. I got this message in firebug error console when I tried to vote:
[Exception... "'Permission denied to call method XMLHttpRequest.open' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "" data: no]
Is it because of the custom_url_rewrite_inbound used? I am not sure though...
Appreciate if anyone could help. Thanks a lot!
#2
I believe this is this problem
http://www.strainu.ro/programming/html/permission-denied-to-call-method-...
Hope that helps.
#3
@tiendoan: thanks for the link.
Yeah, for security reasons, browsers freak when you attempt certain types of cross-domain javascript calls.
It can be fixed I believe, but the code that submits/retrieves votes via javascript in the different voting modules would need to be updated to use a type of cross-domain javascript technique called JSONP (http://docs.jquery.com/Ajax/jQuery.ajax).
I'll stick an issue in the fivestar queue and get some feedback from that module's maintainer.