jQWidgets Forums
jQuery UI Widgets › Forums › Grid › PHP Buffer As Data Source – Let the flames begin!
Tagged: jqwidgets, jqxgrid, php datagrid
This topic contains 5 replies, has 2 voices, and was last updated by AllThumbsGeek 12 years ago.
-
Author
-
Gents,
1. I am a noob at jqWidgets, jquery and PHP – but not programming (Perl, C, Forth, Assemblers of lots of CPUs, some Ruby…) and I do not know the correct terms for jqxWidgets/jquery/PHP, but I am trying to learn.
2. How do I pass server side PHP buffer (text) as a data source back to display in jqxGrid? I know this will involve something more than I have been able to Google.
It’s like this:
Click Button, PHP generates data buffer cleverly named $buffer. Send $buffer to jqxGrid to display new data. Bonus includes using this data source for jqxChart with the time value/date based raw data.Ambitious for a noob, but oh so satisfying when it works.
Hi AllThumbsGeek,
For working with PHP you may check out the available PHP demos and also the PHP integration help topics in the documentation.
Best Regards,
Peter StoevjQWIdgets Team
http://www.jqwidgets.com/Peter,
Thank you for replying and I do appreciate references to demos for answers and furthering my own education. From the greyed out demos I see on this site do I just just json encode the $buffer and then figure out what connect.php should be? Am I missing something obvious to the casual observer?
Thanks,
ATG
Hi,
connect.php is included in the download package in the phpdemos folder. The data.php in the samples returns the data to be displayed in JSON format using the json encode PHP function.
Best Regards,
Peter StoevjQWIdgets Team
http://www.jqwidgets.com/Peter,
I will try to be more specific, maybe this will help. I have a process I call via PHP pclose/popen that sequentially collects network data, similar to a Linux traceroute but with a great deal more data. This process takes about 20 minutes to complete and provides stdout and a text file as results. In Perl I have written a parsing routine that I have used for years to sort what I want from the text file. I am now hoping to capture the stdout as a data source and use both your jqGrid and jqChart controls to show those vastly less patient than I that the tests are running and show incremental updates every couple minutes.
I am trying to use the jqWidgets but am too new to this to follow your guidance in reading the PHP Integration demos and understanding your lead.
Thank you for your patience.
ATG
Peter,
*WOW* you are fast! Thank you, I will go take a look see.
Thanks again!
ATG
-
AuthorPosts
You must be logged in to reply to this topic.