jquery-ajax

jQuery Ajax issues on Macs

I only have about 2 yrs experience of web development under my belt, so I may be missing something quite simple.... I created a heavy javascript file that I dropped into the header of my company's intranet. It uses jquery and ajax calls to create a messenger similar to facebook or gmail's messenger. When the page loads, every 20 sec th...

AJAX request with Rails 3 and jQuery is being processed as HTML. :O

Hi, I have a form that i want submitting with AJAX, using rails 3 and jquery. The problem that I am facing is that rails is responding to the AJAX request as HTML too. After a little search I found that this has something to do with the correct Accept headers not being passed. How do i fix this? This is the controller code respond_t...

JQuery Ajax 500 Internal Error

I'm just starting to use the JQuery library so bear with me if I am missing something obvious. I have a webserivce with a couple of test methods... [WebService(Namespace = "http://localhost/WebServices")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] // To allow this Web Service to be called from script, using ASP.NET AJ...

jQuery Ajax call not working

Hi i am just trying to make a simple Ajax call using jQuery this is my JavaScript: //Starts the game function startGame() { $.ajax({ type: "POST", url: "Default.aspx/StartGame" }); } my button: <input type="image" value="twist..." src="images/play.png" class="playButto...

Getting array to .ajax on success

I'm trying to return data as an array to my .ajax function on success so I can do do multiple things, but I can't get to work for anything except a single value. Like return $foo. But when I return $array, the page never loads up. ...

JQuery.Ajax call to Asp.Net MVC JsonResult gives 12031 error, Json webservice works fine

I have the following 2 jQuery Ajax calls. The first is a call to a Asp.Net Json Webservice and always works. The second is a call to a ASP.Net MVC action that return an json result. This call always fails with Status=12031 the first time the page is loaded. The responseText is empty. After a refresh de second call usually works fine. jQ...

jQuery: remove whole parent table

Hi. I have images in seperate tables with Delete button and I would like to remove the table of which delete button was clicked. I have tried $(this).closest("table").remove() and $(this).parents("table").remove() but without success. Nothing happens. here's the HTML: <table class='".($i % 2 ? "tbl_img_light" : "tbl_img_grey")."> <tr>...

jQuery AJAX request returning null in IE only

I'm trying to GET an HTML document using the jQuery ajax() method. When I try and parse the returned data using $(data) all browsers other than IE are returning a DOM element, where as IE is returning NULL. I've checked 'data' and it's a string as expected. Any ideas what might cause this? I'm guessing it could be errors in the markup...

How do I know if a server has JSONP turned on?

How do I know if a server has JSONP turned on? It is not my server, but I try to access some information from the rendered html. Thanks in advance. ...

Filling a DropDownList with an AJAX response and getting the selected value on the server with ASP.NET WebForms

I'm having trouble with this simple scenario. First, I'm using ASP.NET WebForms. I'm making an ajax call using jQuery after the user select a value on a first dropdown (select). This call will return me an array of values with which I fill a second DropDownList. After a postback, of course the DropDownList has no items. I have tried ...

jQuery + Ajax + Loading Spinner Image = Too Fast!

I'm using jQuery in my ASP.NET MVC 2 page. It's a super simple post that gets a date in return. The process itself runs very quickly. I want to use a spinner image to show the user something is going on. All works fine in Firefox, testing locally. However, in IE 8, the spinner image doesn't display long enough; it just flickers. Th...

Frustrating loop in Internet Explorer with jQuery live method

Hello all: Long time reader, first time poster. Working on a web site at http://www.howardpitch.com/, and I'm having a really frustrating time with the quiz on the front page. You select one of four answers and click the "Check My Answer" button. This will tell you if you were right or wrong and present you with a button for the next...

jQuery $.ajax only working on first click inside of $.click

So heres my problem. On the first fire of my code it works perfect but I reload the submit button using javascript (rather then refreshing the page). Everything that doesn't have to do with ajax runs fine on the second click but I can not for the life of me get the ajax to run the next time the button is clicked. Here is my code: $("...

MVC Controller Not Binding Id Param On Post

I have a Model that has several properties. When I submit a form, I pass along the values for those properties (generated by the jQuery $.serialize() method) and they are automatically bound. This works without a problem. However, now I want to add an Id to the string, and I have to do it manually since it's not a form field. I've done s...

Using .post and retrieving json data silently errors

I have been dealing with this one for a few hours and am baffled at the work around: I have a page that contains a form which sends a .post and retrieves html to replace a certain table. It works fine with a string with no crlf, but if there is a crlf, it does not replace the html in the table... Of course, it silently errors. I have...

jquery ajax call make fillthe jquery dialog

Hi Everyone.I have a requirement where i need to show the list of data in a jquery dialog once a some link is clicked .I can easily collect the data that has to be shown in the dialog on page load and display the data in the dialog.I will place those data in a hidden div and simply pop it up when the user clicks on the link.But my requi...

which jquery i can use?

hey guys i want to create one display form in which at the bottom images with some text are display in a sliding format. And when user take mouse pointer onto image that time at the top that image look bigger compare to bottom image.& with image some text also appear with "readmore" button. when you click "readmore" then it redirect to o...

simple modal contact form wordpress plugin gives "404 not found" on submit

I had this simple modal contact form working fine but must have broke it somewhere along the way and can't figure out where. Now when I hit submit I get a 404 Not found. In Firefox the 404 message never shows and from the Error Console I'm seeing the following error repeated: Error: uncaught exception: [Exception... "Component retur...

JQuery $.ajax problem at safari

Hi all, I am working on a .net web project (with using c#). there is a drop down list on the page. the drop down list's onchange method calls a jquery function and this function makes an ajax call. with ajax call the handler returns the html of a renderable user control. then the jquery function locates the returned html into page. thes...

How does jQuery's synchronous AJAX request work?

Does jQuery.ajax({async: false}) still use the XMLHttpRequest object? If so, how is the request synchronous? Is there just some mechanism inside the function definition that allows the asynchronous request put out by the XHR to be wrapped in a synchronous wrapper? I ask because I want to wrap asynchronous function calls into a synchro...