Category: JQuery

Asp.Net MVC : Handle Session Timeout in Ajax Request

While developing Asp.net MVC application, everyone come to the common situation where search begin for the solution and that's one is - "How to handle session timeout in Ajax request?" Authentication and Authorizations are the key points of any web applications when we are managing user and their roles. Whenever there is a user ideal … Continue reading Asp.Net MVC : Handle Session Timeout in Ajax Request

JavaScript : Not allowed to navigate top frame to data URL (Chrome)

Last week, In one of my project, Tester report a issue for preview/download Image, PDF or Docs in chrome which was working fine previously. Basically we use base64 string URL to preview documents from long time, but suddenly the code stopped working. After check inspect elements, We found one JavaScript error which was the main … Continue reading JavaScript : Not allowed to navigate top frame to data URL (Chrome)

Html + JavaScript: How to create a multi-language/Localize/Internationalize website in HTML5?

Today one of the best ways to target a large audience on the website is, the website needs to be compatible with multiple languages. Many server-side development languages have a built-in mechanism like CakePHP, ASP.Net and More. But what will be the case if someone has only knowledge of HTML and want to develop a multi-language application? … Continue reading Html + JavaScript: How to create a multi-language/Localize/Internationalize website in HTML5?

JavaScript: Automatically Logout from all Open Tabs When User Logout in One of them

In a web application, When the user opens the application in multiple tabs and then log out from one of them, Current tab refreshed and shows the Login page. But what about other open tabs? Open tabs still showing last opened page, because those tabs don't know if User session terminated or not. In this … Continue reading JavaScript: Automatically Logout from all Open Tabs When User Logout in One of them

JQuery : Allow only English Language in Website/Application

If you want to restrict your application users or web site visitors to type only English words, like in contact form of your web-site, You can use below shortcode which allows the user only to enter numbers, English alphabets and special chars. $(document).ready(function(){      $(document).on("keypress", function (event){         var key = … Continue reading JQuery : Allow only English Language in Website/Application

JavaScript : An invalid form control with name=” is not focusable (Chrome)

Many of us may encounter with this issue and the Chrome browser also not shows any other details where the exact issue. To Resolve this I were Google and found a solution, and feel I have to share details - Reason : Chrome tries to focus on a control which is required but empty during … Continue reading JavaScript : An invalid form control with name=” is not focusable (Chrome)