jQWidgets Forums

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts

  • dexteraniz
    Participant

    Thanks peter.


    dexteraniz
    Participant

    Hi peter,

    I save it in a variable and since im trying to export csv without internet i use jquery DATA URI to download the csv file. but it only works in FF and chrome. Did jqwidgets have this same code functionality that is compatible with IE, FF and chrome? or related codes that download the csv file without internet connection.

    This is my sample code of jquery Data URI to download csv file without internet connection.

    function exportCSV(product, feature) {
    var usageGrid = $j(‘#’ + toSafeName(product + ‘_-‘ + feature));
    var exportFile = usageGrid.jqxGrid(‘exportdata’, ‘csv’);
    exportCSVReport.apply(exportFile, [exportFile, usageGrid.attr(‘id’) + ‘.csv’]);
    }

    function exportCSVReport(csv, filename) {
    var csvData = ‘data:application/csv;charset=utf-8,’ + encodeURIComponent(csv);
    $j(‘.feature-report-csv’).attr({
    ‘download’: filename,
    ‘href’: csvData,
    ‘target’: ‘_blank’
    });

    }

    Thanks!,
    Best Regards.


    dexteraniz
    Participant

    Thanks Peter.

    I copy the save-file.php but an error appears on my browser says that,
    “The HTTP verb POST used to access path ‘/jqwidgets/save-file.php’ is not allowed.”

    this is my code in exporting CSV
    function exportCSV(product, feature) {
    var usageGrid = $j(‘#’ + toSafeName(product + ‘_-‘ + feature));
    usageGrid.jqxGrid(‘exportdata’, ‘csv’, usageGrid.attr(‘id’), true, null, true, ‘/jqwidgets/save-file.php’);
    }

    need help.
    thanks,
    Regards.

    in reply to: Hi, Hi, #51026

    dexteraniz
    Participant

    Thank you Dimitar. 🙂

Viewing 4 posts - 1 through 4 (of 4 total)