|
|
“RE: RE: Creating Custom Events with JavaScript: Decoupling” |
|||
| From: | Seth Dillingham | In Response To: | 5582 Re: RE: Creating Custom Events with JavaScript: Decoupling |
| Date Posted: | Friday, July 14, 2006 5:56:16 PM | Replies: | 1 |
| Enclosures: | None. | ||
On 7/14/06, John Hermanson said:
> One other comment/question: Is it possible for the form tag to be some > other tag type? I work in ASPX and having form tags within the existing > uber-form breaks the postback 'magic'.
You don't need a form tag at all... I only used form tags to provide an easy way for the user to generate an event.
The flashing green time boxes pulse to the rhythm of a custom event (called "time") which is generated by a timer. No form tag used there at all.
*Anything* can generate an event. The key is the javascript code, not the HTML.
Events don't have to start with HTML, and they don't have to actually do anything to the HTML. As I said in the article, an event might not do anything more than notify the listeners that that some javascript object's state has changed.
Let me know if you have any more questions, or if I didn't really answer the question you already asked.
Seth
P.S. The bug you reported has been fixed, and the sample pages have been updated. There are now two versions, cross-linked (one uses the event broker, the other does not).
There are no trackbacks.
|
TruerWords
is Seth Dillingham's personal web site. Read'em and weep, baby. |