0

Hey ,

I tried to send some data to different page and want to use it response ...

But the problem i face is the code is working properly on my local host but when i put it over web it always gave me an error ...

catalog_no=$('#srno').val();
        //alert(catalog_no);
        query="select * from new_prod where ccatalog='"+catalog_no+"'";
        alert(query);
            $.ajax({
                 url : 'http://mocktests2011.com/ankur/ajex_sent1.php',
                type : 'POST',
                data : {'queryString': query},
                dataType : 'application/json',
                success : function (result){
                $('#amount').val(result['p_price']);
                $('#pname').val(result['p_name']); // The value of your php $row['adverts'] will be displayed
                },

                error : function () {
                   alert("error");
                }
            });

Here it the live link for the same
http://mocktests2011.com/ankur/bills.php

3
Contributors
11
Replies
30
Views
4 Years
Discussion Span
Last Post by pritaeas
0

What's the error? Its not evident when I click on your link. I dont know how your web app is expected to behave...

0

This Code always Run this code block on server...

 error : function () {
alert("error");
}

and about the page , first you have to choose order for --- Pawan Sharma,

than the uppar drop list updated through $.post but when i select any catalog from the list .. its name and price must be come automatically from database...

its working properly on localhost but not on server ...

0

yes .. as it work properly on the wampserver (localhost)...

and second i also try it for without value still working on localhost but not on server ....

0

Hmmm.

The 503 Service Unavailable error is an HTTP status code that means the web site's server is simply not available at the moment. I'd contact your provider and report this issue.

0

not working ....

What have you tried? Without access to that particular script it's impossible to help you work towards a solution.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.