Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when calling $$.post #55

Closed
thomasvalera opened this issue Mar 6, 2013 · 2 comments
Closed

Error when calling $$.post #55

thomasvalera opened this issue Mar 6, 2013 · 2 comments

Comments

@thomasvalera
Copy link

I have a $$.post sending a command to backend.php.
This backend does not echo any data and all works as expected.

$$.post("backend.php", {command: 'next'}, function(response) {});

Only when I echo something from the backend and thus change the code by:

$$.post("backend.php", {command: 'state'}, function(response) {alert(response);});

I get the following error:

Uncaught TypeError: Object # has no method 'call'

I have seen this closed issue 31 but I don't see what I do differently!

Already thanks for your help.

@soyjavi
Copy link
Owner

soyjavi commented Mar 7, 2013

$$.post("backend.php", {command: 'next'});

El miércoles, 6 de marzo de 2013 a las 23:46, thomasvalera escribió:

I have a $$.post sending a command to backend.php.
This backend does not echo any data and all works as expected.
$$.post("backend.php", {command: 'next'}, function(response) {});

Only when I echo something from the backend and thus change the code by:
$$.post("backend.php", {command: 'state'}, function(response) {alert(response);});

I get the following error:

Uncaught TypeError: Object # has no method 'call'

I have seen this closed issue 31 but I don't see what I do differently!
Already thanks for your help.


Reply to this email directly or view it on GitHub (#55).

@soyjavi soyjavi closed this as completed Mar 25, 2013
@jitendrapatidar
Copy link

hi i 'm jitendra patidra i have use $$.post i have get this type error TypeError: settings.error.call is not a function
my code in

var Urls = sitesetting.webRoot + "/HomePagejTemplates/CheckWishListItem.ashx?ItemId=" + ItemId;
$$.post(Urls,function (data) {
var result = json;

            $$("#WL_" + ItemId + "").removeClass('fa-th-list').addClass('fa-refresh fa-spin');

            if (result == 'False')
            {

                var Url = sitesetting.webRoot + "/HomePagejTemplates/AddToWishList.ashx";
                var parameter = { ItemId: ItemId, QTY: 1, itemsize: itemsize };
                $$.json(Url, parameter, function (datas) {

                    $$("#WL_" + ItemId + "").removeClass('fa-refresh fa-spin').addClass('fa-th-list');
                });
            }
            else {
                $$("#WL_" + ItemId + "").removeClass('fa-refresh fa-spin').addClass('fa-th-list');

            }
            //"WL_" + ItemId + "" fa-refresh fa-spin
            //return;
        });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants