unobtrusive-javascript Questions
3
Solved
I would like to know if the module pattern or Constructor/protoType pattern is more applicable to my work.
Basically I am using unobtrusive javascript -- the HTML document has a reference to the ....
Touchy asked 24/9, 2010 at 20:54
3
Solved
I was recently reading on Unobtrusive javascript and decided to give it a shot. Whether or not I decide to use this style is to be determined at a later time. This is just for my own curiosity and ...
Barbet asked 13/4, 2013 at 12:20
1
Solved
I have a Ajax.BeginForm call that is supposed to return a partial view but is rerouting the page to the Action instead. Any ideas on what is wrong?
Here is the code on the main page that I want to...
Uranalysis asked 4/5, 2014 at 18:47
4
I have a model with data annotations and i am an dynamically binding that with viewmodel using knockout template binding and mapping plugin. I am trying to do a unobtrusive client validation to be ...
Cupule asked 5/2, 2012 at 7:47
4
Solved
Rails 3 does some cool stuff to make Javascript unobtrusive, so they've done things like this:
= link_to "Logout", user_session_path, :method => :delete
..converts to
<a href="/logout" da...
Stark asked 11/5, 2010 at 8:46
1
Solved
Ive got the following setup:
uploads_controller.rb:
class UploadsController < ApplicationController
before_action :set_upload, only: [:show, :edit, :update, :destroy]
# GET /uploads
def ...
Zeigler asked 3/1, 2014 at 2:27
2
Solved
If i have [Required(AllowEmptyStrings = true)] declaration in my view model the validation is always triggered on empty inputs. I found the article which explains why it happens. Do you know if the...
Octonary asked 22/6, 2011 at 8:42
1
In my Rails app, I have a form that is loaded via Ajax using jQuery load method.
function load_sales_form(product_id) {
$("#sales_form").load("<%= url_for(:action => :show_sales_form) %>...
Attar asked 7/11, 2012 at 15:27
2
Solved
I'd like to be able to (from Javascript) navigate as though a link had been clicked (but not necessarily when a link is clicked -- could be another action).
I know window.location.href = '...'; and...
Megaspore asked 30/5, 2012 at 21:32
2
Solved
What is considered the Rails Way for Ajax Forms
Until today I thought the way I use Rails forms + jQuery UJS was the right way to do it, but the upgrade to jQuery 1.7 'broked' the way I did it so ...
Biddie asked 18/11, 2011 at 15:6
5
Solved
I have an input element
<select id="test"></select>
on change I want to call multiple functions
$('#test').change(function1, function2);
functions for now are just alerts for now...
Vincennes asked 7/5, 2013 at 21:7
1
Solved
I've included the following line in the BundleConfig.cs file:
bundles.Add(new ScriptBundle("~/bundles/jqueryajax").Include(
"~/Scripts/jquery.unobtrusive-ajax.min.js"));
However when I try to r...
Keyek asked 30/4, 2013 at 5:5
3
Using jQuery unobtrusive validation within a .NET MVC project and that seems to be working fine. I'm now trying to show a green checkmark when the field validates correctly (client-side and/or remo...
Loader asked 21/9, 2011 at 1:6
5
Solved
I have been working on an application, the front-end is primarily using jQuery.
We rely on certain classed elements being present on the page so that we can attach behaviour to them. For example:
...
Univalve asked 19/3, 2013 at 18:15
4
Solved
I have a section of a site with multiple categories of Widget. There is a menu with each category name. For anybody with Javascript enabled, clicking a category reveals the content of the category ...
Blip asked 24/2, 2013 at 11:58
4
Solved
In an attempt to follow best practices, we're trying to use the proper JavaScript/jQuery events according to what device you are using. For example, we're building a mobile site that has an tag tha...
Heighho asked 26/5, 2010 at 18:54
3
Solved
I'm playing around with the some MvcMusicStore example based shop and having some problems with the MVC3 Ajax.ActionLink / Ajax.RouteLink helpers. The problem is that it simply does not generate an...
Daydream asked 20/5, 2011 at 7:53
15
Solved
I know that is the reason some people don't approve of them, but does it really matter? I think that the power that they provide, in interacting with JavaScript and storing and sending information ...
Linalool asked 15/6, 2009 at 7:26
1
Solved
I'm aware that the JS function (i.e. setTimeout(function(){...}, TIME)) places the function it received as a parameter in the Browser's event loop, and that this event loop will be processed after ...
Seals asked 4/10, 2012 at 14:23
3
Are there any "unobtrusive knockout" plugins which do not reintroduce the data-bind attribute to the elements to the dom?
I've tried a few like: http://userinexperience.com/?p=633
and the Jquery pl...
Crossruff asked 21/2, 2012 at 17:51
2
Solved
Simple question... Is it possible to use client side MVC 3 validation on inputs of type file?
To explain: MVC 3 uses its model validation with IClientValidatable and unobtrusive javascript to all...
Rump asked 12/4, 2011 at 9:30
2
Solved
I have an array tempArray = ["Kathmandu","Pokhara","Dharan"]. To make sure that "Pokhara" is in tempArry, I have to use loop and check every element of tempArray.
Is there a way to implement Ruby'...
Adventurism asked 17/11, 2010 at 10:59
3
Solved
Consider a simple JS event of
document.getElementsByClassName('test')[0].onclick=function(){
document.getElementsByClassName('test')[0].innerHTML = 'New Text';
}
How can I extend this code to gene...
Tournedos asked 18/6, 2012 at 0:21
3
Solved
I've had a hard time debugging a news ticker - which I wrote from scratch using JavaScript.
It works fine on most browsers apart from IE9 (and some mobile browsers - Opera Mobile) where it is movi...
Despiteful asked 29/3, 2012 at 14:58
1
Solved
I want to reload a partial every 3 seconds on a 'new'-view in my rails app.
I have this in my new.html.erb
<h1>Controller#new</h1>
This is my static content
<%= render partial: 'dy...
Run asked 10/5, 2012 at 17:20
© 2022 - 2024 — McMap. All rights reserved.