• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 381
  • Last Modified:

Datagrid in PHP AJAX


I am trying to build a data grid in PHP using AJAX. I need to be able to see records, and edit  and update them from the grid using AJAX. I cannot find that many helpful examples.

Can anyone point me in the right direction?
  • 2
  • 2
1 Solution
nohman27Author Commented:
The site is a little hard to follow and I was unsuccessful downloading the code from one of the mirrors. Let me try the mirror link above.
nohman27Author Commented:
Excellent got the datagrid working, thanx!

However...do you know how to make a field in the datagrid store values in a combo box, instead of just editing text. I dont want to give users too much control
Which class are you using?

It should be quite simple, edit the js so it send the selected value of the combobox.
    $combobox = '<select name="combobox_name">';
    foreach($combo_items as $item){
         $combobox .= "\n<option value=\"{$item}\">{$item}</option>";
    $combobox .= "\n</select>";

Open in new window

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now