Welcome Guest, Not a member yet? Register   Sign In
Flexigrid, XML and 4D = Problems
#1

[eluser]T!Du$[/eluser]
Hi,

First of all, I apologize for my worst english...

So, I've found a JQuery Plug-in that allows me to create a dynamic table (Flexigrid).

I've been trying to use it with 4D (a programming language).

But I've only had problems trying to make it work...

I show you my code and explain you where is my problem, here we go :

Code:
$("#TestTableauJQuery").flexigrid({
        height: 200, //default height
        width: 'auto', //auto width
        resizable: true, //resizable table
        url: 'ReservationSpryRecherche/'+string, //ajax url
        method: 'POST', // data sending method
        dataType: 'xml', // type of data loaded
        errormsg: 'Connection Error',
        nowrap: true, //
        procmsg: 'Processing, please wait ...',
        nomsg: 'No items',
        colModel : [
                {display: '1', name : '1', width : 100, sortable : true, align: 'left'}
                ],
            buttons : [
                {name: 'Add', bclass: 'add', onpress : test},
                {name: 'Delete', bclass: 'delete', onpress : test},
                {separator: true}
                ],
        minColToggle: 1, //minimum allowed column to be hidden
        autoload: true,
        blockOpacity: 0.5
    });
    
    function test(){
        alert('hello world');
    }


The biggest problem is this part, for me :

Code:
url: 'ReservationSpryRecherche/'+string, //ajax url

I've put my 4D function. This function create the XML document and send it or in text format or like a xml document... Is it correct ?

Thank you


Messages In This Thread
Flexigrid, XML and 4D = Problems - by El Forum - 08-18-2010, 09:57 AM
Flexigrid, XML and 4D = Problems - by El Forum - 08-19-2010, 02:54 AM



Theme © iAndrew 2016 - Forum software by © MyBB