Welcome Guest, Not a member yet? Register   Sign In
Design help about integrating a javascript library/helper
#6

[eluser]webtigers[/eluser]
Not sure if this will answer your question ...

There are really only two ways for PHP to get data to a JS datatable (datagrid), 1) outputting the data directly to the page and then reading it from the DOM (messy, but I've seen this done) and 2) via AJAX (preferred and much cleaner).

JS datatables are typically built 100% dynamically within the DOM so finding a "wrapper" for PHP to output a datatable really doesn't exist because there isn't a "table", per se, at runtime for PHP to actually build.

This is the best example of JS making an AJAX call to populate a datatable using YUI.

http://developer.yahoo.com/yui/examples/...rjson.html

Hope this is helpful.


Messages In This Thread
Design help about integrating a javascript library/helper - by El Forum - 06-28-2010, 03:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB