简体   繁体   中英

Send more data in fcbkcomplete

i have this question, i want to send a data like ajax but in fcbkcomplete.

Example:

in ajax

    $.ajax({
        url: 'sys_pacientes/find_ciudades',
        data : {
            tag: $('#tag').val(),
            Anothertag: $('#tag').val()
        },
        dataType: 'json',
        success: function(data){

        }
    });

In fcbkcomplete i cant send more data than i already send, that data is (tag and _=1516258)this is a random number that the function send).

I want to send that data when i type and ajax send a request for search what i type.

My friend to send a new data i have to add this in to the jquery.fcbkcomplete.js:

line: 477

$.getJSON(options.json_url, {"tag": xssDisplay(etext),"newData": $('#dataSelected').val()}, function(data) {

Where "newData" is the new element i send via ajax to getpost in php.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM