unobtrusive-javascript Questions
3
This is a part of my Edit view:
<dt>
@Html.LabelFor(model => model.MainModel.StartDate)
</dt>
<dd>
@Html.TextBoxFor(model => model.MainModel.StartDate)
@Html.ValidationMess...
Caliper asked 22/4, 2012 at 11:23
4
Solved
I am using
asp.net mvc 3
jquery validate
unobstructive javascript.
I am trying to write all my validation on the serverside through annotations and then have the new feature of mvc 3 take care o...
Ranking asked 28/2, 2011 at 19:10
5
I created a partial view in an MVC 3 application. This view has a strongly typed model like this:
public class ProductViewModel
{
[Required, Display(Name = "Product price")]
public decimal? Prod...
Flitting asked 22/12, 2011 at 14:13
1
Solved
I searched le interwebs, but I haven't found someone experiencing the same problem as me, so I propose my question here.
I just started using Rails 3.1 with Compass, Haml and CoffeeScript and ran ...
Cornstalk asked 25/11, 2011 at 12:20
1
Solved
I want my razor view to look something like this
@Ajax.ActionLink("A", "Buy", new AjaxOptions() { HttpMethod = "Post", OnSuccess = "updateLetter" }, new { id = "letter-A" })
@Ajax.ActionLink("B", ...
Kufic asked 23/7, 2011 at 21:31
6
I'm developing a rather heavy JavaScript interface to a site I'm building, and I've decided to use the (recently made official) jQuery templates plugin to generate my elements from my queries to a ...
Quarterly asked 18/11, 2010 at 20:27
1
Solved
We have a partial view that contains a form with unobtrusive client validation enabled.
If we load the partial view using Html.Action, the validation works on the client side.
If when the user c...
Lanceted asked 19/5, 2011 at 16:40
2
Solved
This is going to seem like a bit of a silly endeavor, but it's something I want to learn nonetheless.
Right now, in ASP.NET MVC 3.0, you need to use the syntax @using (Html.BeginForm()) { and the...
Quentin asked 23/2, 2011 at 15:12
3
I am trying to get this working by following the tutorial at:
http://net.tutsplus.com/tutorials/javascript-ajax/using-unobtrusive-javascript-and-ajax-with-rails-3/
and the railscast at
http://ra...
Gaylagayle asked 22/11, 2010 at 2:8
1
I have an application which uses some Javascript for basic Ajax requests such as autocompletion and live search. For example I implemented live search in the following way; I spotted some potential...
Mcginnis asked 14/3, 2011 at 14:23
1
Solved
Now that I've upgraded to Rails 3, I'm trying to figure out the proper way to separate and reuse pieces of javascript. Here's the scenario I'm dealing with:
I have a page with two areas: one wit...
Abvolt asked 3/3, 2011 at 23:23
2
Solved
I wrote a custom validator using MVC DataAnnotations and the jQuery unobtrusive javascript library. It's working great. The only problem I have now is that after the initial validation, if the user...
Amatol asked 11/2, 2011 at 14:57
1
Solved
So I've added a validator dynamically to my page with the following code:
$.validator.unobtrusive.adapters.addBool('zipcode', 'validate_zipcode');
Is there a way to dynamically remove it? Someth...
Royo asked 11/2, 2011 at 16:6
1
Solved
What is Unobtrusive Javascript in layman terms? An example would be nice to aid my understanding.
Hoofbound asked 18/12, 2010 at 16:1
12
Solved
I'm coding a fairly large and complex site by myself, so do you think I need to support javascript being turned off?
Its a lot of extra work supporting full page postbacks for stuff I could quick...
Yahiya asked 16/10, 2009 at 12:28
3
Solved
my rails applications (all 2.3.5) use a total mix of inline javascript, rjs, prototype and jquery. Let's call it learning or growing pains. Lately i have been more and more infatuated with unobtrus...
Lauralauraceous asked 23/5, 2010 at 11:31
2
Solved
Given an Array Literal inside a JavaScript Object, accessing its own object's properties does not seem to work:
var closure = {
myPic : document.getElementById('pic1'),
picArray: [this.myPic]
...
Limpkin asked 25/7, 2010 at 19:28
1
Solved
There may be a better way of doing this, but currently I have an nicely encapsulated, JavaScript object which can have some configurable options. I include a chunk of HTML code on a page (via Dream...
Aureus asked 16/6, 2010 at 22:28
4
Solved
In a previous life, I might have done something like this:
<a href="#" onclick="f(311);return false;">Click</a><br/>
<a href="#" onclick="f(412);return false;">Click</a&...
Navar asked 12/12, 2008 at 22:45
4
Solved
I'm using rails, but doing all my Javascript unobtrusively using jQuery in application.js.
Unfortunately, this makes it quite difficult to reference URLs. For example, if I want to give a field au...
Delwyn asked 7/4, 2009 at 16:4
5
Solved
Working with the JavaScript one of the confusing thing is when using this
var x = {
ele : 'test',
init : function(){
alert(this.ele);
}
}
However when dealing with multiple object and especi...
Stuartstub asked 27/1, 2010 at 16:13
7
Solved
I'm used to do doing things like this:
<a href="Javascript:void(0);" onclick="GetCommentForGeneralObservation(<%# Eval("ID") %>)">
That would be in a repeater or such like btw. Howev...
Copra asked 22/9, 2009 at 15:6
5
Solved
You know what I liked best about obtrusive javascript? You always knew what it was going to do when you triggered an event.
<a onclick="thisHappens()" />
Now that everybody's drinking the...
Connate asked 6/10, 2009 at 18:18
2
Solved
I want to create a link like this:
<a href="http://example.com">text</a>
and replace the behavior so that the link downloads the content with Ajax instead when clicking.
It is impor...
Protege asked 9/9, 2009 at 13:12
4
Solved
I've just started looking at JQuery. I don't have any AJAX in my web application at present.
My existing JavaScript in my HTML looks like:
<form ...>
<p>Find what? <input ...>&l...
Tambourin asked 7/3, 2009 at 9:15
© 2022 - 2024 — McMap. All rights reserved.