Solved

Datagrid in PHP AJAX

Posted on 2009-07-15
4
370 Views
Last Modified: 2012-05-07
Hi

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?
0
Comment
Question by:nohman27
  • 2
  • 2
4 Comments
 
LVL 2

Accepted Solution

by:
SaWey earned 500 total points
ID: 24864603
0
 

Author Comment

by:nohman27
ID: 24864839
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.
0
 

Author Comment

by:nohman27
ID: 24865235
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
0
 
LVL 2

Expert Comment

by:SaWey
ID: 24869511
Which class are you using?

It should be quite simple, edit the js so it send the selected value of the combobox.
<?php
 
if($data_is_for_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

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction Got endorsements from your clients?  Great!  There is almost nothing better than word-of-mouth advertising.  But how can you do that on the internet?  Sure you can make a page for endorsement quotations and list them all, but who is …
Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question