enyo / opentip

Opentip is an open source javascript tooltip based on the protoype framework.
http://www.opentip.org
1.25k stars 401 forks source link

Ajax post data #126

Open eickhardt opened 9 years ago

eickhardt commented 9 years ago

Just a quick one. I'm trying to fetch the data for the tip using ajax, but the data I'm trying to send in the POST request is not being received on the server side. Here's the code:

    var tip = new Opentip(
        $(this),
        { 
            target: true, 
            tipJoint: "right", 
            background: "white", 
            borderColor: "lightgray",
            showOn: 'creation',
            hideOn: 'click',
            ajax: translations_url, // is valid url
            ajaxMethod: 'POST',
            data: {
                meaning_id: meaning_id,
                _token: token,
                html: true
            }
        }
    );

Help would be greatly appreciated.

EleRam commented 9 years ago

I also tried ajaxData and same result...