Top "Unobtrusive-javascript" questions

Unobtrusive JavaScript is a general approach to the use of JavaScript in web pages.

window.onload vs $(document).ready()

What are the differences between JavaScript's window.onload and jQuery's $(document).ready() method?

javascript jquery dom-events unobtrusive-javascript
Event binding on dynamically created elements?

I have a bit of code where I am looping through all the select boxes on a page and binding …

javascript jquery events unobtrusive-javascript
Find user location using jQuery/JS (without google geolocation api)?

Is there a way to find a clients location on a website using just jQuery. For example, if a user …

javascript jquery unobtrusive-javascript
How to check browser for touchstart support using JS/jQuery?

In an attempt to follow best practices, we're trying to use the proper JavaScript/jQuery events according to what device …

javascript jquery iphone mobile unobtrusive-javascript
How to get current element in getElementsByClassName

Consider a simple JS event of document.getElementsByClassName('test')[0].onclick=function(){ document.getElementsByClassName('test')[0].innerHTML = 'New Text'; } How can I …

javascript dom-events getelementsbyclassname unobtrusive-javascript
Disable required validation by JavaScript

I have a create form to create an object. The create model has some properties that are only visible (.hide, .…

javascript asp.net-mvc-3 validation unobtrusive-javascript
Javascript: Module Pattern vs Constructor/Prototype pattern?

I would like to know if the module pattern or Constructor/protoType pattern is more applicable to my work. Basically …

javascript design-patterns unobtrusive-javascript module-pattern
Difference between obtrusive and unobtrusive javascript

What is the difference between obtrusive and unobtrusive javascript - in plain english. Brevity is appreciated. Short examples are also …

javascript unobtrusive-javascript
submit a rails remote form with javascript

In my rails app I have a remote form that looks something like this for example: <%= form_tag some_…

jquery ruby-on-rails unobtrusive-javascript
RequiredAttribute with AllowEmptyString=true in ASP.NET MVC 3 unobtrusive validation

If i have [Required(AllowEmptyStrings = true)] declaration in my view model the validation is always triggered on empty inputs. I …

validation asp.net-mvc-3 jquery-validate unobtrusive-javascript unobtrusive-validation