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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

coding multiple events on an event handler..

Status
Not open for further replies.

uksub

Programmer
Jun 15, 2003
51
US
has anyone seen this code before... i'm just curious. i've never seen the coln used like this to attach mutiple events to an object.

Example:

<INPUT type="radio" id=System2 name=HQ$radio1 value=Q
datasrc=#DcDirectory datafld=sch_sys_cd
onclick="EnableDateFields: somehingImportantChanged: EnableWinterQuarterDates" >Quarter

see how the onclick event has events seperated by a ":"... i can't find any documentation on this syntax, but it works.

has anyone seen any or know of anything documenting this process of "multiple events" seperated by a colon? I'm just curious.

Thanx
 
It's here at my new job. I was looking through some code. It works... I've just never seen this done before, and i could'nt find any supporting documentation on it.
 

Are there 3 corresponding JavaScript functions called EnableDateFields, somehingImportantChanged, and EnableWinterQuarterDates?

If so, what parameters do they take/expect? If not, then do you get an error when the radio button is clicked?

I guess you can't post the code if it's internal?

Dan
 
Hi BillyRay,
The functions (i.e the events work). No parms are passed to the functions. I just never knew you could have mulitiple events attached to an object (seperated by a colon). And I was just wondering if anyone has seen this done before and/or if there was any supporting documentation on this syntax.
 
I can't find anything that talks about this syntax.

After trying similar code here, it simply errors in IE 6. What browser are you running in?

Maybe it's some sort of server-side directive, etc? What extension do the pages have? Are you running the code locally, or via a webserver?

I feel I need to know the answer now, too ;o)

Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top