Tagged Questions
1
vote
1answer
26 views
how to implement drag and drop between 2 tables, with all content. MVC
Is it possible to do like this exemple in JS, Jquery or another compatible thing with MVC ?
http://www.satyam.com.ar/yui/invoice.html
I have a table with id and name for an order. I want to drag the ...
3
votes
1answer
37 views
ASP.Net MVC JQuery is undefined in IE8 but ok in Chrome
I have a web application which works perfectly in Chrome, but in IE8, I get undefined errors for my script files:
The scripts are all loaded in the correct order (View -> Source):
I'm not sure where ...
0
votes
1answer
38 views
Jquery event that fires when MVC controller is finished
Is there a jquery event that fires when an ASP.NET MVC 3 Controller is finished with it's work?
I have a link on an MVC page that allows the user to download a file. The MVC controller returns a ...
0
votes
1answer
47 views
changing column name in html table using jquery
I have a html table as below
<table id="searchResults" class="compact-table" width="100%">
<thead>
<th><label id="Revenue"></label></th>
...
1
vote
1answer
31 views
Calling WebMethod returning IList<T> from Jquery Ajax with NHibernate And MVC
I have a web method in My Controller...
[WebMethod]
public IList<ThemeSelectList> GetThemesForSelectedCategory(string themeCategoryId)
{
IList<ThemeSelectList> ...
1
vote
1answer
23 views
Url.ActionLink results in 404 error despite routing to controller
On my ASP MVC 3 page, when the user selects an item from the drop down list with no corresponding values, I dynamically create a fieldset which contains a button with an onclick() method. When the ...
0
votes
1answer
60 views
Jquery variables not clearing values properley on vertical scrolling list
I have a list of addresses which is picked up when someone enters their postcode and distance from postcode in miles.
The list which is brought back is displayed in a vertical scrolling list using ...
1
vote
1answer
28 views
Collecting data from a view while it's loaded on the page
This is about asp.net mvc3 application razor view. I'm implementing a custom image gallery where the user can delete already existing images. Due to other demands I should not delete the image when ...
0
votes
0answers
36 views
Stopping the waiting spinner after the ajax call has finished
I'm working on an asp.net mvc3 application and I have this jQuery function that is called when I want to remove/delete an image :
$(document).on('click', '.delete', function() {
if (confirm('Are ...
0
votes
2answers
29 views
Remove image from view page after deleting with Ajax.ActionLink
I'm working on asp.net mvc3 application with razor view. The business logic I must implement is more complicated than my answer but as you can guess my knowledge on JS/jQuery is very poor so I take ...
0
votes
1answer
42 views
How to program drag and drop between two tables
is it possible to drag row that contains Id for a Order att drop it on anothe table and get all data with this Id on the id table on MVC?
What im trying to do is that i have table for ...
0
votes
3answers
66 views
MVC 3 binding SelectList to dropdown list with JQuery
I have the following question regarding the MVC and Jquery. I would like to be able to call with JQuery an action serverside and then returned result bind to a drop down list.
At this moment i do ...
0
votes
3answers
57 views
How to pass parameter to controller using jquery?
I have created an action in a controller which needs a String parameter from view. In view I have one hyperlink and onclick event I want to call a jQuery function to send that value to the action.
...
0
votes
1answer
17 views
how to openid work with mvc controller?
I use openid with mvc3/razor.I want to know how do clicking google icon redirects it to google page and again the control returns to the mvc controller?
take example from this site
In short how do ...
0
votes
0answers
83 views
MVC 3 Kendo UI Gridview Select hierarchy row
I am using the Kendo UI grid and am trying the get de selected row when the users clicks on the Detail Grid row. When I do this I only get Java exception when I click a row in the onRowSelect event at ...
1
vote
1answer
32 views
Getting Uncaught TypeError: Object [object Object] has no method 'jqxmaskedinput'
This is part of a mvc 3 razor view. I have a few editorfor boxes on the form and wanted to add a bit of jquery to enhance the robustness of the form. However I am getting an odd error and it does not ...
0
votes
2answers
35 views
Showing message in a razor view based on a result from execution of controller method
I'm working on asp.net mvc 3 application. I'm implementing a razor view which have tow main functions - to build/display form based on a data from a data base and to show images related to this form ...
0
votes
1answer
19 views
Only append div with certain class in Ajax success function
I have a partial view that is used to return a bunch of html to my main page. In my Ajax call, I need to grab that partial view, but I only want to append certain <div> elements. Is this ...
-1
votes
0answers
21 views
How to load the default value of cascading dropdownlists in a CRUD form
I'm currently using Knockout.js to allow the cascading behavior of 3 dropdownlists, but I'd like to know another way to achieve the same experience using just jQuery / ASP.Net MVC Ajax.
My code with ...
0
votes
0answers
21 views
ASP.NET Code generated by Ajax.ActionLink stoped working after Upgrading to JQuery 2.0.1
I have an ASP.NET MVC3 app that I have upgrade to JQuery 2.0.1, unfortunately this has had some unplesent side effects. (More info here)
Currently I have only one outstanding issue: The HTML link ...
0
votes
2answers
24 views
asp net mvc custom client side validation for one field
I want to the override default client side validation for only one form field.
what I did is:
$( ".txt-field" ).change( function( event )
{
if ( !checkField( $(this).val() ) )
{
...
0
votes
1answer
65 views
Get button clicked ID in “OnSuccess” function after form submit
I am Using Ajax form in mvc3.
Below is code.
<% using (Ajax.BeginForm("Method", "Conroller", new AjaxOptions
{
UpdateTargetId = "PopupBody",
HttpMethod = "post",
OnSuccess = ...
0
votes
0answers
36 views
How to show a list of checkbox from the base in ASP MVC and Javascript
I am developing an ASP .Net MVC 3 application using C# and SQL Server 2005.
I am using also Entity Framework and Code First Method.
My problem is to display a list of checkbox of values which are ...
0
votes
3answers
78 views
How do i use setinterval in javascript to display the status of the Importing task?
In my project i'm using Setinterval to display the importing status of the excelsheet to database.
ie., if excelsheet contains 100 records means my status message is ,
Row 1 0f 100 Rows Inserted
...
0
votes
0answers
79 views
jQuery image gallery with delete/upload options
I've looked through a a dozen different image galleries on the net but due to the very specific requirements I have I decided to post here, because I don't think that google could provide me with a ...
0
votes
1answer
21 views
Perform if-check for each element with certain class name in the DOM using jQuery
I'm working on an asp.net mvc 3 application view. I'm creating forms dynamically based on data taken from the database. Some of the text boxes are editable so they need validation before sending them ...
0
votes
1answer
68 views
Refreshing the contents of the parent div after popup close MVC 3.0
I have a page that list Trainings to employee to take Survey for each Training. I have multiple popup links in a div and when clicked a popup window opens. Following script opens the popup. I want to ...
0
votes
0answers
18 views
jquery.fancyupload.js “setOptions” error in IE8 and IE9
I tried using jquery.fancyupload.js from this tutorial but I got error "Unable to get property 'setOptions' of undefined or null reference" when using IE8 and 9 but in Firefox and Chrome everything ...
0
votes
1answer
29 views
jQuery custom validation in asp.net mvc 3 razor view
I have very basic knowledge about JS/jQuery. I need to perform check on the value of certain text boxes. The example just recreates the problem I heave with the real application which is a lot bigger ...
0
votes
1answer
51 views
Simple jQuery validation is not giving the desired result
I am using this in one of my asp.net mvc 3 views :
<script language="javascript" type="text/javascript">
$(document).ready(function () {
$('.YesNoNotApplicable').change(function () ...
1
vote
4answers
54 views
Adding javascript code using jquery
I have a property in Model
public CodeString {get; set;}
which contains string value something like this
<SCRIPT src="http://demo.com/add/091221"> </script><SCRIPT ...
1
vote
1answer
72 views
Positioning an element relative to a textbox
I'm working on this asp.net mvc 3 view where I use custom jQuery calendar to let the user pick a date for a search. The problem is that I can't manage to display the calendar exactly the way I want ...
1
vote
1answer
48 views
Looking for alerts or notifications in MVC 4
Watch the next image.
It's something like an alert or notification and some of them have a close button to the right of the border.
I would like to implement that in my MVC 4 project where the ...
2
votes
1answer
49 views
New version of jQuery loads another page instead of replacing div
I don't know what I did wrong, but by updating to a newer version of jQuery, my ajax page doesn't work anymore.
I was using 1.8.3 from google CDN and now I'm trying to use 1.9.1. I have also updated ...
2
votes
1answer
41 views
Button that used to post an Action and a Script in the same time in ASP MVC
I am developing an ASP .Net MVC 3 application using C# and SQL Server 2005.
In a view, I have a button 'Enregistrer' which I add in it a JQuery Script.
The script is used to delete the item selected ...
0
votes
0answers
40 views
jquery toggle on mvc table with image click
Now here is what I am working on
http://jsfiddle.net/hRpAw/199/
My jquery for expanding and collapsig
$('table.searchResult').each(function () {
var $table = $(this);
...
0
votes
1answer
39 views
Sending value through Jquery is showing null
I am working on MVC3 and trying to pass values form view to controller using JQuery and JSON. The query is extracting values of checkboxes inside a grid. Following is the code
<script ...
0
votes
1answer
76 views
Google maps not rendering properley within an iframe in ie8 becuase of hiddden div
I am building a widget and using a iframe to insert some Google maps code into a page and I am encountering a problems in ie8 which are not happening in any other browsers (ff, safari, chrome ie9).
...
0
votes
2answers
82 views
Popup window opens once after close unless refresh
I have a problem that I'm stuck with. I have MVC 3 application and in this application I have the concepts of Survey and Training. Each Training having 1 Survey. To let the users take Survey I open a ...
0
votes
1answer
58 views
How to parse date time from json? [duplicate]
I have a Action Method like this
public ActionResult TodayJson()
{
DateTime today = DateTime.Today;
return Json(today,JsonRequestBehavior.AllowGet);
}
that ...
0
votes
1answer
43 views
TypeError: a is undefined with Select2 plugin in asp.net MVC?
I create my Select on the on change event of another dropdown, so here is my script:
$ddlOther.on('change', function(e) {
var Json = {},
persons = [];
Json.id = ...
2
votes
2answers
89 views
Model binding with jquery ajax serialize not working
I have the following model:
public class RegisterUseraccount
{
[Required]
[DataType(DataType.EmailAddress)]
[Display(Name = "E-Mail-Adresse")]
public string Email { get; set; }
...
2
votes
2answers
68 views
How to remove model state error for dropdown with selected option label in mvc?
I am working on a MVC project.I have a view having a dropdownlist with an option label "Select Task".Now the integer property bound with this dropdown is not a required field.
But then too after I ...
1
vote
0answers
30 views
Set positioning of jQuery calendar
I'm working on a asp.net mvc 3 application. I use razor but I think in this case it's not relevant to the problem. I use an inherited jQuery datetime picker which works fine for all my pages where I ...
1
vote
1answer
42 views
Jquery getJSON is not working within MVC3
Hi I am trying to do a getJSON but for some reason it is silently failing.
Here is the code:
$("#distanceMiles").change(function () {
$("#distanceMiles ...
1
vote
1answer
59 views
Custom Number Incrementing Field MVC
I've had an idea for a html field in MVC. And thats the number incrementing textbox.
How would you go about doing that?
The idea is that I have form with some information that needs to be sumbitted. ...
1
vote
0answers
13 views
How to reload the column view list using the jquery.columnview-1.2.js
I have used the jquery plugin for building an ui as mentioned in the website:
http://christianyates.com/blog/jquery/finder-column-view-hierarchical-lists-jquery
below the columns list I have a ...
0
votes
1answer
63 views
How to pass parameters in WCF Json service which doesn't have .svc file?
I am using a .cs file instead of .svc to call my wcf service. It works fine for service methods without parameters , but not for methods with parameters. Below is the code:
service.cs
using ...
1
vote
1answer
45 views
Date not being displayed properly when using jQuery mask
I am trying to use this jQuery plugin as an input mask on my ASP MVC edit page. However, no matter what the value is being stored in the database, the month is always displayed with two zeros: ...
1
vote
3answers
47 views
Starting client-side validation when using BeginForm helper
I am working on a asp.net mvc 3 application and I have problem with getting my unobtrusive JS validation to work. I've asked very similar question but since I don't get any answers but think that I ...