Solved

Datagrid in PHP AJAX

Posted on 2009-07-15
4
373 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this. Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it i…
Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

691 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