[thelist] Need help with Javascript...

Phil Essing essing at vdl2.com
Wed Jul 31 23:04:01 CDT 2002


Once again, I come to you Javascript gurus out there, for help.  Ok,
without going into a long drawn-out description of what I'm ultimately
trying to accomplish, I'll try to keep it to only what's necessary.

I'm trying to pass a value from one function to another, and I keep
getting a "x is not an object" error.

Here's a code fragment:

// Populate the calendar
for (j=vFirstDay; j<7; j++) {
	strDate = this.format_data(vDay);
	vCode = vCode + "<td><A HREF=\"javascript:fillForm('" + strDate
+ "');\">" + strdate + "</A></td>";
	vDay=vDay + 1;
}

This loop is only one part of the function that builds the vCode
variable, which represents all the HTML for a calendar.  I'm trying to
pass strDate to another function that parses the variable and then
updates 3 separate form fields.  I do have an idea why I get the error
(it's trying to send the value of strDate and not strDate itself), but
have no idea how to solve the problem.

Thx in advance for any guidance.

-phil

------------------------------------------------------------------------
-----------------
Phil Essing
User Interface Specialist
phil at sector404.org

VDL2 inc.
700, rue Wellington  .  Montreal, QC  .  H3C 1T4
tel.: 514.599.5712  .  fax: 514.599.5724
------------------------------------------------------------------------
-----------------





More information about the thelist mailing list