Hi there
Normally if you click on the number of thanks, you get a popup with the user who thanked. This works great in Chrome and Firefox. For the Internet Explorer you have this:
It looks like there was a bug in MSIE. Today when I use text/plain, I get only a popup which looks like this:
When I change it to application/json also for the MSIE, it works. What do you think about this? Could it be, that Microsoft fixed that and we can remove this workaround or do you have more information about that?
Cheers
Marco
Normally if you click on the number of thanks, you get a popup with the user who thanked. This works great in Chrome and Firefox. For the Internet Explorer you have this:
PHP:
//If this is IE9, IE10, or IE11 -- we also need to work around the deliberate attempt to break "is IE" logic by the
//IE dev team -- we need to send type "text/plain". Yes, we know that's not the standard.
if (
isset($_SERVER['HTTP_USER_AGENT']) && (
(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false) OR
(strpos($_SERVER['HTTP_USER_AGENT'], 'Trident') !== false)
)
)
{
header('Content-type: text/plain; charset=UTF-8');
}
else
{
header('Content-type: application/json; charset=UTF-8');
}
It looks like there was a bug in MSIE. Today when I use text/plain, I get only a popup which looks like this:
When I change it to application/json also for the MSIE, it works. What do you think about this? Could it be, that Microsoft fixed that and we can remove this workaround or do you have more information about that?
Cheers
Marco