P
pbd22
Hi.
I am wondering what do I replace the "this"
statement with to get the appropriate container/response.
When I try:
cal.prototype.dates(cal.days.day);
I get
"this.cells has no properties"
And, in the function declaration (within which lives 'dates'),
there is:
function MyCal()
{
this.cells = new Array();
...
The thing is (and this is key) I am calling
cal.prototype.dates(cal.days.day) from a completely
different script (which references a different part of the
HTML on the page).
How do I refer to the container of the
"this" in the "this.cells has no properties" error?
I am wondering what do I replace the "this"
statement with to get the appropriate container/response.
When I try:
cal.prototype.dates(cal.days.day);
I get
"this.cells has no properties"
And, in the function declaration (within which lives 'dates'),
there is:
function MyCal()
{
this.cells = new Array();
...
The thing is (and this is key) I am calling
cal.prototype.dates(cal.days.day) from a completely
different script (which references a different part of the
HTML on the page).
How do I refer to the container of the
"this" in the "this.cells has no properties" error?