Coder Social home page Coder Social logo

Error when calling $$.post about quojs HOT 2 CLOSED

soyjavi avatar soyjavi commented on July 30, 2024
Error when calling $$.post

from quojs.

Comments (2)

soyjavi avatar soyjavi commented on July 30, 2024

$$.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).

from quojs.

jitendrapatidar avatar jitendrapatidar commented on July 30, 2024

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;
        });

from quojs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.