Displaying 5 results from an estimated 5 matches for "evalresponse".
2006 Jul 19
2
prototype question
Can anybody tell me where to submit a bug report/patch for prototype.js?
As far as I can tell, lines 760 et seq. should be changed from
if ((this.header(''Content-type'') ||
'''').match(/^text\/javascript/i))
this.evalResponse();
}
to
if ((this.header(''Content-type'') ||
'''').match(/^text\/javascript/i)) {
return (this.evalResponse()); }
}
but I don''t seem to be able to find anyplace to report it, demonstrate
the problem, or anything.
--Al Evans
--...
2007 Jan 21
0
Safari doesn't pass the headers.
...ebugging the prototype.js and I realized using
response.getAllResponseHeaders() function that Safari and Swift are not
passing the headers therefore since the line 766 in prototype.js It''s
not executed:
if ((this.header(''Content-type'') ).match(/text\/javascript/i))
this.evalResponse();
By the way, for other example of this problem take a look at
devjax.com, It''s my site and has the same problem!
Many thanks for helpping :(
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on R...
2006 Feb 21
1
RE: [Prototype] onSuccess Event and, Ajax.Updater bug in IE
Joe,
After removing all occurrences of charset=utf-8 from
my headers I am
still getting the same bug in IE.
Currently, it''s Content-Type: text/html
Any other suggestion?
Nathan.
> Message: 2
> Date: Mon, 20 Feb 2006 09:13:57 -0500
> From: "Joe Hudson" <joe-x8g0hQFNjJhWk0Htik3J/w@public.gmane.org>
> Subject: RE: [Rails-spinoffs] [Prototype] onSuccess
Event
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
...s.options.evalJS == 'force'
- || (this.options.evalJS && contentType
+ || (this.options.evalJS && this.isSameOrigin() && contentType
&& contentType.match(/^\s*(text|application)\/(x-)?(java|ecma)script(;.*)?\s*$/i)))
this.evalResponse();
}
@@ -1316,9 +1328,18 @@ Ajax.Request = Class.create(Ajax.Base, {
}
},
+ isSameOrigin: function() {
+ var m = this.url.match(/^\s*https?:\/\/[^\/]*/);
+ return !m || (m[0] == '#{protocol}//#{domain}#{port}'.interpolate({
+ protocol: location.protocol,
+ do...
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply
to this email, as some of the replaced lines are too long, so git
won't let me send the email. However, there is nothing wrong with
that patch, and it should be applied in the sequence listed below.
Note also that I assume this will be tested on a clean f11 install, rather
than an upgrade of an existing ovirt server