Geeks With Blogs
Ilya Verbitskiy Thoughts and links about computer programming

Last time I released a feature which allow users to send data to Report Viewer’s IFRAME using HTTP POST request. The overall feedback I heard from the users was pretty good. And then the problem came…

I did not want to support legacy browsers like IE 6, 7 and 8, because it would force me to write a lot of additional JavaScript code to deal with DOM in the right way. And I am still hoping that IE < 10 will die soon. Unfortunately it had not been the right decision.

Please tell me who are the biggest SSRS users… Enterprises. It is easy to guess, isn’t it? The problem with enterprises is they are slow in technology adaptation. And Internet Explorer 8 is one of the most used browsers there. To make long story short, there are developers who must support IE 8 in their applications, but they use MvcReportViewer to simplify their job (I hope :-) ).

Today I release MvcReportViewer 0.3.1 with old browsers support. But there is a disadvantage. I used jQuery 1.11.0 for DOM manipulations. Make sure you add jQuery to your web-page.

<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
Posted on Sunday, February 23, 2014 3:02 PM SQL Server , Projects | Back to top


Comments on this post: Support old browsers in MvcReportViewer

# re: Support old browsers in MvcReportViewer
Requesting Gravatar...
You've added a jQuery dependency just to convert this:

document.addEventListener('DOMContentLoaded', function(event) {{
var form = document.getElementById('{0}');
if (form) {{
form.submit();
}}


to this:

$(document).ready(function () {{
$('#{0}').submit();
}});

??
Left by jay on Feb 26, 2014 10:03 PM

# re: Support old browsers in MvcReportViewer
Requesting Gravatar...
Yes, for now. But I am going to add more functionality in the future, an d liquefy will simplify it. And almost everybody use jquery now.
Left by Ilya on Feb 27, 2014 7:28 AM

# re: Support old browsers in MvcReportViewer
Requesting Gravatar...
Jay,

I thought again about your comment. You are right. Bringing jQuery is too much for my task. I will rebuild functionality with simple DOM.

Thank you for the good point.
Left by Ilya on Feb 27, 2014 12:07 PM

Your comment:
 (will show your gravatar)


Copyright © Ilya Verbitskiy | Powered by: GeeksWithBlogs.net