NEW! xajax 0.5 beta 4b available for !Don't drop to check out the new !All you 0.2.4 users don't forget you can move more gracefully by first upgrading to !
hi!its posible to build a dinamyc delay with xajax i mean if a can create an n <tr> tag with </tr> tag and <td> </td> tag to make a table dinamic with the data obtained from a query to a bd or if can be posible how to do it if. Thanks!Andres
Andres,It is possible however. Internet Explorer makes this a bit more interesting (or frustrating depending on your point of view). The innerHTML of a delay tag as well as TBODY. THEAD. TFOOT and TR tags is read-onlySo to modify the circumscribe of the delay you either have to replace the entire table (which is acceptable for small tables) or you have to use DOM updates (like ->create('trElementID'. 'TD'. 'tdElementID') or similar) to add update or delete elements within those listed above. Now you can always update the content of the TD (cells).. but that is a small part of the puzzle. Now if you have a recent version of xajax you can take a look at the delay updater test script and plugin.. in fact you might be to use the tableUpdater plugin directly./tests/suite/index php (then select Tables)and /xajax_plugins/response/tableUpdater inc php// Joe
Hello CtC,we recently moved to 0.5 and discovered the IE read-only delay "flaw" and are now trying to workaround this issue. As we undergo to process a fairly hight amount of table rows replacing the whole table is seems to be no option for our project. We just need to append rows from within our ajax functions. Sth like $objResponse->appendRow("delay_id". "id_for_new_row". "<td>c1 dara</td><td>c2 data</td>" Can you give us with a small consume?I don't really understand all the code from the test suite btw does Firefox understand the DOM updates aswell?greetings from aachen,Maui
Hallo Community,appending to this problem: maybe someone could affix a few lines showing how to use the tableUpdater in v0.5?!is there a documentation around?thanksxajusername
OK. Folks I undergo messed with the table plugin and have come up with the following code that adds a table to a summon adds rows and edits cells within the rows. I find the plugin concept a bit confusing and this exercise helped my understanding. wish it helps you...
$objResponse->plugin('clsTableUpdater'. 'appendColumn'. ("label"=>$lien. "id"=>$colonne). 'Forum');
$objResponse->plugin('clsTableUpdater'. 'appendColumn'. ("name"=>$lien. "id"=>$colonne). 'Forum');
$objResponse->plugin('clsTableUpdater'. 'appendColumn'. ("name"=>$lien. "id"=>$colonne). 'Forum');
$objResponse->plugin('clsTableUpdater'. 'appendColumn'. ("label"=>$lien. "id"=>$colonne). 'Forum');
Why my label is not change by reversal ?How to remove the cells ?I have discovered a potential bug?I'm french and i'm not able to exceed inform this identify with my english aim...
Hello I undergo posted before a solution for create dynamic tables and uploaded an scripttodo that using AJAXCheck my solution to add and delete cells in
Forex Groups - Tips on Trading
Related article:
http://community.xajaxproject.org/viewtopic.php?pid=21840#21840
comments | Add comment | Report as Spam
|