Tagged Questions
182
votes
18answers
107k views
jQuery UI Dialog with ASP.NET button postback
I have a jQuery UI Dialog working great on my ASP.NET page:
jQuery(function() {
jQuery("#dialog").dialog({
draggable: true,
resizable: true,
show: 'Transfer',
...
14
votes
7answers
11k views
How do I build a JSON object to send to an AJAX WebService?
After trying to format my JSON data by hand in javascript and failing miserably, I realized there's probably a better way. Here's what the code for the web service method and relevant classes looks ...
52
votes
4answers
56k views
How to post an array of complex objects with JSON, jQuery to ASP.NET MVC Controller?
My current code looks like the following. How can I pass my array to the controller and what kind of parameters must my controller action accept?
function getplaceholders() {
var placeholders = ...
6
votes
3answers
20k views
JQuery ajax call to httpget webmethod (c#) not working
I am trying to get an ajax get to a webmethod in code behind. The problem is I keep getting the error "parserror" from the jQuery onfail method.
If I change the GET to a POST everything works fine. ...
2
votes
1answer
841 views
jQuery Ajax calls to web service seem to be synchronous
I have two ajax calls to a web service from jquery.
The first call (GetMessages) starts an interval in javascript (setInterval) and returns a string array of messages stored in a session variable.
...
0
votes
2answers
522 views
What should be the correct response from web service to display the Jquery token input results?
I am using a Jquery Token Input plugin. I have tried to fetch the data from the database instead of local data. My web service returns the json result is wrapped in xml:
<?xml version="1.0" ...
4
votes
6answers
28k views
Calling ASMX from jQuery
I am trying to call an ASMX method from jQuery without success. Following is my code, and I don't understand what I am missing.
File Something.js,
function setQuestion() {
$.ajax({
type: ...
17
votes
3answers
34k views
Basic Simple Asp.net + jQuery + JSON example
I'm trying to learn how to make a simple call to the server from Javascript/jQuery. I've been trying to learn and could not find a tutorial with those simple steps.
I want to send a message to the ...
3
votes
1answer
171 views
Web Forms Tabular Control for this Scenario
I am developing an asp.net website with two column layout. On the left side we have menu items. Based on the click of the menu item, contents of the right item changes (visibility is toggled). ...
22
votes
4answers
25k views
Posting JSON Data to ASP.NET MVC
Im trying to get a list of line items to a webpage using JSON, which will then be manipulated and sent back to the server by ajax request using the same JSON structure that arrived (except having had ...
5
votes
6answers
20k views
jquery datepicker ms ajax updatepanel doesn't work after post back
So I did some reading of the related questions and had some interesting stuff but did not find my answer, at least did not understand the answer.
I am very new to AJAX, javascript and sclient side ...
3
votes
1answer
9k views
Send array to MVC controller via JSON?
I am trying, and struggling, to send an array via JSON to a MVC controller action.
Here is what I have and what i've tried...
//Get checked records
var $checkedRecords = $(':checked'); //e.g. 3 rows ...
1
vote
3answers
1k views
Set Timeout For Controller Action
I have come across this thread already, but I might need something else for my situation.
I have an action that returns a ViewResult, which is called by the client's $.post()
JavaScript:
var link = ...
1
vote
1answer
3k views
Use Return Value of JSON in jQuery.Ajax Script Correctly
I have 2 DropDownList, like Master-Slave.
This is my Default.aspx:
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
...
0
votes
1answer
905 views
jQuery AutoComplete multiple Output
I am using jQuery AutoComplete to fetch results from a DataBase based on the value inputted. The user will then click a search button to tell the page to search for that specific entries details.
I ...