I have an application that consists of a single web page index.html,
which after loading makes various AJAX requests.

When I look at the http request headers for this page, I can see
amongst the other accepted types, the MIME type for Flash.

When I examine the headers generated by the AJAX calls using Firebug,
the MIME types have been changed. In particular I notice there is a
new header containing the Prototype Version (neat idea) and a MIME
type of */*. Specifically there is no longer the Flash MIME type. My
questions are:

1)      What is */*? Does this mean the browser can now accept any content
type?

2)      Since I have lost the MIME type for Flash, I can no longer check on
my server if the client supports Flash during an AJAX request (and
return a graph for instance). What is the best way to do this? I can
write JS code to do this, but then I have to modify the requestHeaders
myself afterwards, which seems silly not to mention quite a lot of
work!

Now I know this action is ‘described’ here 
http://www.prototypejs.org/api/ajax/options
but surely it would have been better to just add the additional
prototype header and leave the headers intact otherwise?

Any help appreciated!

Simon M

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to