JQuery.post form submit odd error only firefox

I searched high and low for an answer to this, but unfortunately I was stuck. The problem only occurs in Firefox (tested IE, Chrome and Safari also work fine, there are no errors). I’ll cover the sequence of events in detail to keep the publication of all my code.

  • An ASP.NET MVC 3 application that loads a basic form into a jQuery user interface dialog
  • Custom jQuery for hijax submit form (serialization of the form and then $ .post for the server - no compiler errors during debugging and message in Firebug without errors)
  • Http GET (automatically) receives a response object from the server (+ success text and XHR), the response in this case is plain HTML (again, it displays in Firebug without errors)
  • Custom jQuery to change the dialog HTML code from it, the current HTML code for the Html response is where it fails.

I used javascript warnings to debug the sequence of events, and once the message (and get) is complete, everything is simple ... sort of stops.

As I said, only in firefox! Very strange, just wondering if there are any known bugs with ajax and firefox, or has anyone heard of a similar situation?

I should also add that on other parts of my site this works great in all browsers! The only difference between this form and other forms that successfully fulfill this function is that the response from this form is again the same page, but is being updated , not a new "page". (I use the "page" because I got it all while working with Javascript turned off and for graceful degradation)

HELP! Or laugh, or good.

UPDATE

- , firefox - firefox ! - firefox ? , , "re-direct" html- ? , , Firefox !

+3
2

, .

, , - $.ajax $.post async : false

, -.

Rob

+2

[OutputCache(Location = System.Web.UI.OutputCacheLocation.None)] GET? .

0

Source: https://habr.com/ru/post/1792753/


All Articles