D
Daz
Hello everyone. I have a simple problem which can be solved quite
simply, I am just going about it the wrong way. I would like to wipe
every row from within a named table, but I am not too sure how to do
it.
Each of these rows, are part of a JavaScript Object, which is bound to
the table by objectName.bind('idOfTableToBindTo').
I have tried to destroy the objects themselves, but they still remain.
Perhaps I am doing something wrong... I have tried to make a function
that will loop through all of the 'tr' elements withing the table, and
failed dismally. I know that this can be done, I just can't seem to
figure out how.
As my object can be bound to the table, but still remains when I delete
the variable pointing to the object (which I thought would delete the
object itself).
Is there any way that I can put a function within my object that will
make it destroy itself?
I would assume that an object can't destroy itself, and that it needs
to be done externally, but I am not sure, as I am just assuming.
Please could someone suggest a method I can use to loop through all of
the childElements in a table and delete them?
Also, is there a way to actually delete the object itself, rather than
just the variable pointing to it. It may be the case that it's already
deleting the object, but it doesn't look like it. The more I think
about what it's doing, the more I confuse myself about the entire
issue.
All the best.
Daz.
simply, I am just going about it the wrong way. I would like to wipe
every row from within a named table, but I am not too sure how to do
it.
Each of these rows, are part of a JavaScript Object, which is bound to
the table by objectName.bind('idOfTableToBindTo').
I have tried to destroy the objects themselves, but they still remain.
Perhaps I am doing something wrong... I have tried to make a function
that will loop through all of the 'tr' elements withing the table, and
failed dismally. I know that this can be done, I just can't seem to
figure out how.
As my object can be bound to the table, but still remains when I delete
the variable pointing to the object (which I thought would delete the
object itself).
Is there any way that I can put a function within my object that will
make it destroy itself?
I would assume that an object can't destroy itself, and that it needs
to be done externally, but I am not sure, as I am just assuming.
Please could someone suggest a method I can use to loop through all of
the childElements in a table and delete them?
Also, is there a way to actually delete the object itself, rather than
just the variable pointing to it. It may be the case that it's already
deleting the object, but it doesn't look like it. The more I think
about what it's doing, the more I confuse myself about the entire
issue.
All the best.
Daz.