2
votes
3answers
45 views

Popup partial view on mouse move and hide on mouse out

I'm pretty new to javascript and am running into a problem with my ASP.NET MVC 4 application. I want to dynamically display a list of skills (in a category) for a project when the user hovers over ...
0
votes
3answers
77 views

Can't access JSON object

I am using asp mvc and am returning a json object to my view, and I cannot seem to access any of the properties in the json. Here is my code. In my Model I have: public string getJson() { File ...
2
votes
2answers
33 views

Capturing image with webcam

I'm working on a project with Asp.net MVC4. I need to take pictures with a webcam. This application should be configurable with any tablet. Currently runs the application on desktop, on tablets no. ...
0
votes
1answer
49 views

How to add an image to a dialog form with jQuery

I am working on MVC application and on one of my pages I have an image gallery. I want to do the following: when I click on any given image to open a modal dialog and display the image (the reason for ...
0
votes
1answer
72 views

Converting a list in c# to a table in javascript

I have an asp.net mvc application with razor view's engine. I need to store the values of a list passed as a model in my view by using javascript @section logout { <a ...
3
votes
2answers
82 views

Javscriptencode Url Path for use in Google Analytics

I try to pass the parameter _trackPageview to Google Analytics. I now use _gaq.push(['_trackPageview', <%=AntiXss.JavaScriptEncode(Url.RequestContext.HttpContext.Request.Path ) %> ]) The ...
0
votes
0answers
19 views

Can't catch file upload at server side using HTML5 File API and ASP.NET MVC4

I'm using the HTML5 File API features to create beatiful file uploader for my website. But I've got some problems with the server side (where I use ASP.NET MVC 4). I couldn't see any file data at ...
0
votes
1answer
344 views

Embed MVC Partial View into a document.write JS call

I am creating a Javascript file that will be embedded onto a 3rd party site. The Javascript file will render some content onto the third party site. The idea is the same as Google Adsense - web site ...
0
votes
5answers
43 views

ASP.NET MVC RAZOR ActionLink click

I have this action link in view: @Html.ActionLink("Edit", "Edit", null, new {@id="editLink", @class="button"}) I would like to call a java script method to make the URI at runtime from my Selected ...
0
votes
1answer
25 views

Javascript Function Not Found ing MVC Generated Code

I have this code below in a an ASP.NET MVC 3 View. For some reason when I run it in chrome, and look at the console it says: Uncaught ReferenceError: submitAjaxRequest is not defined ...
1
vote
3answers
52 views

How to Dynamically Load a String from a model to javascript in MVC3?

Okay so last time I asked a question on MVC3 it got extremely down voted and I have no idea why, so if this goes the same way, please give me the reason so I can fix it. Anyway, I'm try to take a ...
0
votes
1answer
59 views

How to pass c# object to $.ajax

I have a simple javaScript code that I want to get an object from controller and parse it in script, but in script, I don't have access to any property of object. My Object(in controller): public ...
0
votes
0answers
15 views

Displacing a task with Jquery in an asp.net mvc application

I have a web application , inwhich i have a calendar with tasks, i'am using this snippet: @section logout { <a href='@Url.Action("Retour", "Client")'><img ...
23
votes
4answers
20k views

Call MVC 3 Client Side Validation Manually for ajax posts

I am creating an MVC 3 web application. I want to use Data Annotations on my entity class and then use onobtrusive client side validation before making a post back to the server. This works fine when ...
-1
votes
3answers
37 views

How to properly decode a JSON string encoded using Html.Raw(Json.Encode(Model))?

I am encoding some model data into a html element like this: @Html.Raw(Json.Encode(Model)); The json string returned looks like this: ...

1 2 3 4 5 186
15 30 50 per page