Jquery Ajax hitting error function

448
December 10, 2016, at 1:23 PM

I have a Jquery ajax code which works on some website and same code don't work when i use on other website.

<script type="text/javascript">
    function check_domain( d, e){
        $.ajax({
                type: "POST",
                url: "ajax.php?domain=" + d,
                success: function(data){
                    var ele = $("." + e);
                    ele.find("td.td_emails").html(data);

                },
                error: function() {
                    alert('Error occurs!');
                }
        });
    }
</script>

i am calling this function in html like this

<script type="text/javascript">check_domain("http%3A%2F%2Fwww.1smile.co.uk%2F", "tr_12");</script>

But it go to ajax error function rather going to success function on some domains and on other it works fine. Please point out the error.

Rent Charter Buses Company
READ ALSO
trying to stop jQuery from firing table tr onclick event if I click a checkbox

trying to stop jQuery from firing table tr onclick event if I click a checkbox

I've got a table which has a checkbox in each rowI made an event handler for the click to move to another page, but I want to stop it from moving if I've clicked the checkbox

421
How to wrap rows to multiple lines in free jqgrid or other table

How to wrap rows to multiple lines in free jqgrid or other table

In narrow screen mobile devices jqgrid table should wrapped into multiple linesFor example, table in wider screen

413
Sortable list numbers are not showing in order while dragging (using jQuery)

Sortable list numbers are not showing in order while dragging (using jQuery)

I have the following jQuery\Javascript\HTML code for a sortable list, and it works fine, except while dragging the wrong numbers displayFor example, when dragging character2 to the character1 slot, the number '3' is displayed

343