Ajax table data
Posted: Sat Jul 08, 2006 9:00 am
I currently have a setup where the js makes a call to a php page which returns pagination information [current page and page count], and a list of <tr>'s with <td>'s populated with the requested data.
In firefox, I use the innerHTML property for a tbody to insert the data. This way, the header cells line up fine with the data.
In IE, you can't use the innerHTML property of a tbody.
Is there a library available or a method for the php returning XML and having js turn it into rows in a table? Would this way be very slow? [~25 rows with ~8 cells per page]
The resulting rows also have html tags like <a> <input> <img>, so that may affect the xml option
In firefox, I use the innerHTML property for a tbody to insert the data. This way, the header cells line up fine with the data.
In IE, you can't use the innerHTML property of a tbody.
Is there a library available or a method for the php returning XML and having js turn it into rows in a table? Would this way be very slow? [~25 rows with ~8 cells per page]
The resulting rows also have html tags like <a> <input> <img>, so that may affect the xml option