Trouble traversing the DOM
Permalink
I was elaborating upon the jQuery "find" that comes default in the Concerte5 ccm.search.js (concrete/js folder) inside the function titled "ccm_activateEditablePropertiesGrid" around line 174.
I got caught with a class not being found (and therefore manipulated) by this function. The function is "find"ing class names in table rows and performing something on .click. The <td class=...> that I want manipulated is still on the same row, albeit there are some IF statements controlling the display of some table cells on a js page reload (properties.php in the tools/files folder) - which I think causes the loss of DOM traversing per usual. I know this because I can cut/paste my td code in front of the IF's and choose a parent() or parents() function and it works. I tried all obvious jQuery traversing methods. I was surprised that I could not even make the #ID find it. But then I thought I've read somewhere that events need unbinding to be able to take a new search method.
I know this is a little vague, but I was hoping for an overview comment that might help me search in the right direction.
Rick
I got caught with a class not being found (and therefore manipulated) by this function. The function is "find"ing class names in table rows and performing something on .click. The <td class=...> that I want manipulated is still on the same row, albeit there are some IF statements controlling the display of some table cells on a js page reload (properties.php in the tools/files folder) - which I think causes the loss of DOM traversing per usual. I know this because I can cut/paste my td code in front of the IF's and choose a parent() or parents() function and it works. I tried all obvious jQuery traversing methods. I was surprised that I could not even make the #ID find it. But then I thought I've read somewhere that events need unbinding to be able to take a new search method.
I know this is a little vague, but I was hoping for an overview comment that might help me search in the right direction.
Rick