Solved

Datagrid in PHP AJAX

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
echo button 13 45
Export MYSQL to .CSV Add Column Names PHP 2 21
Creating Image Thumbnails Using PHP 3 15
Wordpress Body Class 5 9
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
OverviewThis article demonstrates a simple search form using AJAX. The purpose of the article is to demonstrate how to use the same code to render a page and javascript (JQuery) and AJAX to make subsequent calls to refine the results. The princip…
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 count occurrences of each item in an array.

707 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

13 Experts available now in Live!

Get 1:1 Help Now