Open MostTimeLurker opened 11 years ago
It is actually not impossible. You can also do:
$ajax->tr_id = array('innerHTML' => 'Your HTML');
and
$ajax->td_id = array('innerHTML' => 'Your HTML');
As documented in http://cjax.sourceforge.net/examples/js_properties.php
Though your question is focused around the "main property" feature (http://cjax.sourceforge.net/examples/main_property.php), and yes you are right, for the main property to operate properly for these HTML tags it should be as you suggest. I must of missed it, I'll change it to reflex the changes.
Thank you!,
It replaces the innerHTML. What is the click event attached to?. If it is within the innerHTML then yes it will replace whatever you have in there. The whitespaces + are only for encoding purposes so that there wont be any errors, it is reverted once it is processed.
it's impossible to update a TR or TD, since they have no "value"-Property, only "innerHTML".
To fix that, in function "this.property" (file ax/core/js/cjax.js), just put something like
(the default is already in the file, around line 400)