Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

attachEvent in DHTML behaviors using Javascript

Status
Not open for further replies.

ChainsawJoe

Programmer
Dec 5, 2000
154
GB
I'm manually data binding an XML recordset and creating html code from a javascript function - it loops thru the recordset, creating the cells and rows in the table (I know I could have done this using
Code:
dataSrc= . .
but that doesn't seem to like attaching events - then again, neither does this), but the last cell in the table is a button which, within the javascript, I'm using
Code:
DaButton.attachEvent("onclick",loseit)
- all
Code:
loseit()
does is an alert. I've checked the attach is successful (
Code:
status = DaButton.attach . . .
showing up 'true' in the status bar), but the button does nothing. WHY?!?!?!
PLEASE help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top