seroy-5URONGGNgjI@public.gmane.org
2007-Dec-06 14:51 UTC
Prototype 1.6, 1.5 not set requestHeaders
Hi all!
I''m try using prototype.js v1.6, 1.5.
Ajax.Updater not set request headers under Firefox (2.0.0.11+FireBug
1.05) and Opera 9.23 (OS: Linux)!
In IE 6.0, 5.5, Konqueror 3.5.7, 3.93.00 - OK! This my code:
<div id=''''poll_1">
<a href="vote.php?poll_id=1,answer_id=3" onclik="new
Ajax.Updater(''poll_1'', ''/vote.php'',
{asynchronous:true, parameters:
{ poll_id: ''1'', answer_id: ''3''}}); return
false;">click to vote</a>
</div>
API Doc says:
Prototype automatically provides a set of default headers, that this
option can override and augment:
* X-Requested-With is set to ''XMLHttpRequest''.
* X-Prototype-Version provides Prototype''s current version (e.g.
1.5.0).
* Accept defaults to ''text/javascript, text/html, application/xml,
text/xml, */*''
* Content-type is built based on the contentType and encoding
options.
But in really this not work!!! In addition, when I try set
requestHeaders as parameters for Ajax.Updater Protorype not send
request.
I found this ticket (http://dev.rubyonrails.org/ticket/6579), but it
did not solve my problem.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---