Solved

Datagrid in PHP AJAX

Posted on 2009-07-15
4
367 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

813 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now