"Reload the page to get the source for ..." in AJAX

I use ajax for the autocomplete field, initially it worked, but recently it has broken.

I checked firebug, initially I used to get a JSON array with data for automatic completion, but now I get the following message:

Reload the page to get the source: http: // ... [my AJAX script URL is here]

I know that support has implemented some server security changes. So what should I do to solve this problem?

+6
source share
1 answer

Like this? #result is the identifier of the elements; alternatively, you can use the class name, for example .result .

 $( "#result" ).load( "test.html" ); 
-1
source

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


All Articles