0
votes
0answers
23 views

Detect microphone is attached or not using jquery

I am developing a site in ASP.NET MVC 4 framework and using recorder.js to record the sound. It is working fine on chrome. I need to identify if microphone is attached to system or not using jQuery. ...
0
votes
0answers
30 views

How to get a partial view from a controller action in MVC 4 and display it in a lightbox

I am currently working on an MVC4 ASP.NET web application. The idea is to have users click an actionlink (using the html helper) and allow them to change their password in a lightbox (or fancybox). ...
1
vote
1answer
27 views

MVC4 / JS / AJAX : Html.Raw output displacing content from a href tags in view HTML

There is a feature in my project where emails sent to a certain address get parsed with attachments being saved to network and meta data saved to a database. When details on a finished good are ...
0
votes
0answers
29 views

SignalR not hitting OnConnected and giving Newtonsoft.Json.JsonReaderException

I am trying to setup SignalR at my ASP.NET MVC site and a Javascript client. This is my client: @section scripts{ <script src="~/Scripts/jquery.signalR-2.0.2.min.js"></script> <script ...
0
votes
1answer
28 views

How to Pass the Email Id value after checking Captcha in Asp.Net Mvc4?

I am new one to Asp.Net Mvc4 with Entity Framework. Now i am doing Captcha verification for Forgot Password. As my code, I it is passing the Email id value to Controller when i am clicking submit ...
0
votes
0answers
13 views

Telerik Javascript error on unload page

I am using Telerik controls in my Asp.net web application. I am facing javascript error on unload page: Unable to set value of the property '_events': Object is null or undefined I am facing ...
-3
votes
2answers
34 views

upload a file without having the submit button in mvc

I want to upload a file without using the submit button. The file must be uploaded at the moment the user picks it from browse file window. Now please do provide some ajax code or some jquery to ...
0
votes
0answers
27 views

AngularJS not linking with MVC Model

We are building a form within an ng-repeat tag. The ng-model does not seem to be linking with the MVC control model. <li ng-repeat="item in favourites"> <form ng-submit="Delete()" ...
0
votes
1answer
32 views

C# access server side variables in views and javascript

I want to know what is the best practice to write code in view. Here is the snippet of my code: /Views/Emp/EditEmp.aspx <% if(HttpContext.Current.User.IsInRole("Manager")) { %> <div ...
0
votes
1answer
72 views

JavaScript: How to add quantity and see it in Checkout

I have a situation want to ask all of you on these pictures below. A Categories show a product, when I type quantity in there and click Add button. It will links to Checkout. I need the quantity I ...
0
votes
0answers
50 views

$watch fired only on second update of object

I have a directive in my angularJS module that integrates a custom jQuery control. The control is a slider and is created only when a global variable $rootScope.vm is modified. The slider has a ...
0
votes
0answers
72 views

Alert messages from controller: Add alert behavior in partial view?

In MVC 4, you could install this package Twitter.bootstrap.mvc and this would add lots of HTML helpers. Once istalled you could send alert to view right from controller. For example: public class ...
2
votes
2answers
82 views

Why dosen't this javascript object convert to a C# class object?

I'm working on a little test bed app, where you give the app a note name, sign, and octave, and it spits out the frequency the note should sound at. I'm having a problem with a JavaScript object that ...
0
votes
4answers
35 views

How to kill or cancel an asynchronous call in javascript?

I'm sending the following request to an MVC controller: var datum = { param1: value, param2: value, param3: value }; $.ajax ({ type: "POST", contentType: "application/json; charset=utf-8", ...
0
votes
1answer
25 views

Attribute-based helper with lambda expressions for data-bind for integrating knockout.js with MVC4/5 + Razor

I just tried KnockoutMvc and while I admire the creator's effort, I find it is a little too heavy-handed to be useful in general. However I like to minimize the amount of JavaScript in my Razor views, ...
0
votes
0answers
29 views

how to seach grid by textbox id?

I am Using jqgrid in mvc 4. I want to show grid data only those data which match with OrderNo. Grid is showing but data is not showing. Here is Controller where i am writing my sql search method for ...
0
votes
1answer
11 views

Manually utilize MVC script bundling

Is there a way to programmatically render a script bundle? Using script bundles in MVC is great. Like it. Use it. Now I'm writing an application that uses Self-Host WebApi in which I'd like to also ...
0
votes
1answer
31 views

@Html.Raw(Json.Encode(Model)) - can i use serialized model throughout application?

I saw in one example that you can encode a collection returned from a controller and use it in your script files as a normal array of Json objects. Views/Shared/Index.cshtml <script> ...
0
votes
0answers
29 views

return mvcjqgrid gridsettings to action controller by jquery post not working

Good Day Everyone, I'm using MvcJqGrid(https://github.com/robinvanderknaap/MvcJqGrid) to display my data in my project. I'm trying to pass the current jqgrid settings by jquery post, but i am not able ...
0
votes
1answer
40 views

Adding Facebook share button not showing up

So I went through the facebook documentation found here, but my share button still isn't showing up. I added this directly beneath the body tag in my _layout.cshtml page: <div ...
0
votes
1answer
30 views

How to prevent backspace from navigating back after .remove()

I have a HTML table with An input inside a cell. If the user has focus in an input without any content and hits backspace, I want to remove all the row of the input. The problem is that after i remove ...
-1
votes
1answer
20 views

How pass a list in JSON Data to View in MVC4?

i need to pass a list of object to View from controller using Json , what the syntax of java-script to access the list objects and its properties then add them into data table ?
-1
votes
0answers
58 views

MVC 4: “unhandled exception” at the very beginning

After i create a fresh project with Internet template option in MVC 4 and hit run i get this error unhandled exception at line 1, column 3450 in http://cdn1.clkmon.com/script/rhpop_1.0.12.js ...
0
votes
0answers
14 views

Flexigrid is not loading data in MVC using VS2013 in .NET Framework 4.5

I recently came across this flexigrid and liked it. I wanted to try it myself. In an attempt, I am unable to load the json data from my controller into view. The chrome developer console is not ...
0
votes
1answer
26 views

toastr is undefined when using toastr.js

I'm trying to bring toastr into my application. I've done something very simple: bundles.Add(new ScriptBundle("~/Content/example-scripts").Include( ...
1
vote
0answers
30 views

Logic in customizing timer in java script

I have an pop up dialog that appears after every one minute and in that pop up, I have a timer that count it's time starting from 1 minute, till 0. If user presses yes in the popup dialog, the ...
0
votes
1answer
43 views

Ajax form validation in MVC

I have an Ajax form that I need to hit a JavaScript function on failure, like so: using (Ajax.BeginForm("UpdateStages", new AjaxOptions { HttpMethod = "POST", OnSuccess = ...
0
votes
1answer
26 views

click a button in a grid row to popup with color highlight row (webgrid)

I dont know jquery very well but I am just trying my best. Need your help and hope you will. I am using ASP.NET MVC 4. When you click the button (btnDetails) to popup, the specific PersonId (101) ...
0
votes
1answer
26 views

Show jQuery UI validation in tooltip

As soon I've started using MVC I couldn't realize how to display correct error validation in a tooltip. For an instance: $(document).tooltip({ items: ".input-validation-error", content: ...
0
votes
0answers
27 views

Create handsontable with JQUERY/JS MVC

I can't get this handsontable to work. Anyony know why? Onsubmit it soppuse to call function createDeatil() (and it does, tried with an alert in the beginning). But I think it's something wrong with ...
0
votes
0answers
16 views

How to create the Kendo UI ListView control

I created a ListView to display the image of products. .chtml: <script> $(document).ready(function () { $("#product").kendoListView({ source: ...
0
votes
1answer
23 views

IF i removed “jquery.unobtrusive-ajax.min.js” in my MVC 4 application then what will happened?

IF i removed "jquery.unobtrusive-ajax.min.js" in my MVC 4 application then what will happened? We are custom validation instead of MVC validation
0
votes
1answer
22 views

cannot upload images into database and application(fileuploader js file)? fileuploader js

My requirement is i have to update images in both database and application using fileuploaderjs file. but i am to upload either in application or database. below is my code ,please help me.and my ...
0
votes
2answers
44 views

Calendar(datepicker) does not display/open using jquery when I create it using string from js file

I want to open calendar in my Input control using the following method, but it does not open the calendar. I am creating this using string format from javascript file. (Using bootstrap css) var ...
0
votes
0answers
17 views

Jquery: How to make a ListView with thumbnail image [closed]

I have an ActionLink for each product like an image below. Now I want to create a thumbnail image using jQuery. How can I fix it to more professional? <section id="product"> <ul ...
0
votes
2answers
35 views

jQuery popup window timing

So I add a jQuery popup to a submit button in ASP.net MVC4. $('#submitrequestbutton').click(function (e) { $('#popup').bPopup(); }); That works like a charm. However, it goes away after a ...
0
votes
1answer
81 views

JQuery can't set value of html input control

I have an MVC4 app using the Twitter API in which I must set certain values in a Javascript function after an AutoComplete (KendoUI) returns a value. The lookup is working fine, and I'm able to set ...
0
votes
0answers
18 views

Issue with javascript new date object when used in Asp.Net MVC with other plugins loaded

Am creating an MVC4 project with multple plugins like jquery UI, jquery date picker etc loaded. I want to get the local timezone offset from the browser and am using the following query var offset = ...
0
votes
2answers
21 views

razor engine for javascript files?

Is there any engine/tool/way to have razor inside JavaScript files? What I really need is something like this : StudentModel.Js file : @model Student var x = { Title: ...
0
votes
2answers
54 views

OnClick event is not firing in MozillaFirefox

I am developing a MVC 4 application ,using JavaScript jQuery for validations. But the JavaScript functions are not getting triggered in Mozilla Firefox. Can some body explain me what might be the ...
1
vote
1answer
47 views

How to traverse a Dictionary that is returned from JsonResult method?

I have a JavaScript Method that makes an AJAX call to a controller method. This controller method is a JsonResult Method that returns a dictionary object back to my JavaScript. But anything I do to ...
0
votes
1answer
29 views

How to bind a list of selected elements to a ViewModel

I want to bind a list of selected elements from the UI to my ViewModel. Here is the HTML: @Html.Label("Actors") <select name="actors" class="chosen-select" multiple="" ...
3
votes
0answers
46 views

ASP.NET MVC 4 JS Minification Error

I'm using google-code-prettify in an ASP.NET MVC 4 project. It works in debug mode but in release the minification/bundling step fails. I get this error: "Minification failed. Returning ...
0
votes
1answer
52 views

Refreshing a Partialview inside a DIV with jquery and Ajax

This is my partial view: @model UADDPortal.ViewModels.DatabaseInfoViewModel <table class="table table-bordered table-striped"> <tr> <td><h5> Status: @Model.CurrentStatus ...
0
votes
0answers
40 views

Update partial view state using onchange event of drowdownlist MVC 4

Im new beginner in MVC 4 MainView: <div> <fieldset> <legend>Thông tin bang hội:</legend> @{ Html.RenderAction("AssociationDetail", new { ...
1
vote
2answers
82 views

AJAX request error: “SyntaxError: JSON.parse: unexpected character”

I'm working on an ASP MVC application, in one page I try to make an AJAX request using jQuery and I get this error (in Firefox): SyntaxError: JSON.parse: unexpected character. This is my ...
0
votes
0answers
44 views

How to perform validation for Captcha using JavaScript?

I am new to UI design. I have created Captcha, Please anyone give me an idea to validate Captcha using JavaScript.Thanks in advance. I have added my code below. Code for getting new Captcha: ...
0
votes
1answer
40 views

Access C# static variable in Java Script with Updated Value

I am trying to access C# Static Variable in JavaScript/JQuery in an MVC 4 application. I am able to access it with following syntax. var currentCulture = '@StaticCache.Culture'; //Returns en-GB ...
0
votes
0answers
25 views

Accessing SelectList / DropDownList object in JQuery

I have a 'Transaction' entry page of an ASP MVC4 project where a user can enter date, amount and tax amongst other things of a credit or debit transaction. Tax rates and types are selected from a ...
-2
votes
1answer
46 views

javascript function doesn't work with two seperate pages

I have this little code that should display a simple hello message from a page to page in my ASP.NET MVC 4 application : In index.cshtml <a href="@Url.Action("About","Home")" ...

15 30 50 per page