The InfoPath hosted control gives developers of third party hosted applications the ability to respond to events in the form. The InfoPath event manager provides this functionality. Read more on InfoPath Team Blog.