I am working on a web page with a Google Map. The user types a Lat and Long into text boxes, I listen for the change event and move a marker to the location selected. That’s all good.
The page is rendered as a K2 Blackpearl smartform. K2 is an MVC application that provides an environment for declarative web form development. The form also has an Ajax K2 Location lookup, which the user can use to select an airport. Once the user has selected a location, I use K2 to transfer the Lat and Long into the location text boxes. The problem is when a framework updates a field no change event is fired and I don’t know of a way for K2 to signal to the browser that it has made a change. The page is already loaded and I don’t know how to trigger a script at that point.
I listened for ajaxComplete on the document but didn’t see a hit (although this might be too early because K2 still has to transfer data to the fields after the ajax call).
I am wondering if there is a way in Chrome to inspect what events modify those fields, with the intent of triggering my change event on them? I know there is a Monitor Events extension but I'm not sure if that's the best method to solve the problem.
Aucun commentaire:
Enregistrer un commentaire