jQWidgets Forums

jQuery UI Widgets Forums Grid url for JqxGrid.

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 12 years, 8 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • url for JqxGrid. #12378

    boole
    Member

    Hi,

    I have the following javascript source var for my grid in my index.php. I have index.php and DAL folder under the source files in netbeans. When I have url : ‘/DAL/data.php’ is not working for me. what is the right way of assigning my data.php to url if it is located in different folder.

    var source =
    {
    datatype: “json”,
    datafields: [
    { name: ‘ProductName’ },
    { name: ‘QuantityPerUnit’ },
    { name: ‘UnitPrice’, type: ‘float’ },
    { name: ‘UnitsInStock’, type: ‘float’ },
    { name: ‘Discontinued’, type: ‘bool’ }
    ],
    root: “Products”,
    record: “Product”,
    id: ‘ProductID’,
    url: ‘/DAL/data.php’
    };

    Thank you.

    Ramesh

    url for JqxGrid. #12402

    Peter Stoev
    Keymaster

    Hi Ramesh,

    The URL that you specify in the source object is the URL that is passed to the jQuery’s Ajax function for making Ajax request for data. The URL is required to be specified correctly. In your case the path to the data.php file from the index.php file.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.