0
votes
2answers
33 views

unable to get exception from controller to view

I used on change event to textbox in mvc everything works fine but I am unable to handle exception throw by controller in view. **VIEW:** $("#txtToloc").change( function (event) { var ...
0
votes
1answer
20 views

How to disable automatic appending X-Requested-With=XMLHttpRequest into uri?

I use Ajax.BeginForm.. It loads me partial view. This view have links. After view is loaded via ajax each link has href that ends with X-Requested-With=XMLHttpRequest. How can I disable automatic ...
0
votes
2answers
24 views

Ajax Post Throwing Error

The ajax post hits the server and delivers the correct information, but even though it works it still is hitting the error function. The ready state is 0, so it says it isn't even making the request. ...
0
votes
3answers
58 views

How to pass an object to a MVC controller via Jquery Ajax Get

I am new to jquery and I can't resolve the following problem : I want to pass an object to one of the controllers in my mvc application. Here is what I got so far: function enterPressed() { ...
-1
votes
0answers
35 views

Loading partial view via jquery not working

I'm trying to load a partial view after some item in dropdownlist is selected. Right now the partial view doesn't show up, even though I'm being forwarded to a actionlink in controller by my script. ...
0
votes
0answers
17 views

How to post the form to external domain URL from MVC Controller?

I've a situation here, I'm using MVC3 to build my web application. Here, I've a Enquiry form where I need to post the data to some external URL say (http://some.domain.com/addenquiry.html). And it ...
0
votes
1answer
39 views

DropDownListFor automatic postback

How would I implement something like automatic postback for DropDownListFor in MVC. Currently, after selecting a value in dropdown I have to refresh the page to see the changes applied to the page. ...
0
votes
2answers
39 views

jQuery ajax - call various MVC controller actions

I have a controller (RequestsController) with several actions (all taking one parameter) For example: public List<Models.AcceptRequests> GetAllAcceptRequests(int passedId) public ...
1
vote
1answer
37 views

MVC Autocomplete validation

In my MVC app I have this View that uses JQuery/AJAX autocomplete, of which this is an extract; <input type="search" name="searchPrimaryTrade" id="searchPrimaryTrade" ...
0
votes
0answers
45 views

Render mvc action response (pdf) to a new window with javascript

I need to open a pdf stream obtained after a post on a controller action, and generated by iTextSharp. All works fine if call return File(PDFStream.GetBuffer(), "application/pdf"); with ...
0
votes
1answer
25 views

How to strip backslashes when jQuery passes string to Server

We are trying to return user inputs as Json to the server to be saved in couchbase, but we are struggling to send back the valid Json to the server, it adds ( \ ) between " ". The Json var ...
0
votes
1answer
37 views

Adding a progress bar to a view in razor application

I have an asp.net mvc 4 application . in which i have to upload some files. So i put this view : @{ ViewBag.Title = "Upload a projet"; } @if(Model != null){<script> alert("le format de ...
0
votes
2answers
57 views

Timeout issue for long requests on ajax POST

so I have a .NET MVC project with an Update controller called from an Ajax POST that can take a long time to run which causes a timeout exception. When I debug it on my local machine it runs fine, ...
0
votes
1answer
44 views

Sending from server-side to client-side multiple PartialViews asynchronously with an undefined delay

I've been lurking for about a hour trying to find a solution or a pattern to do it (title reference).. Let me give you an example for what I mean: Client-to-Server: Hey, I want information about ...
2
votes
1answer
61 views

jquery .when(f1, f2).then() returns object array for f1 but responseText for f2. Why?

I have a jQuery .when() that makes two ajax calls, then passes the data along to another function: function getTableData() { $.when(ajaxCall1(), ajaxCall2()).then(doStuff); } Both ajax methods ...

1 2 3 4 5 61
15 30 50 per page