Browser Event Handler Design for Reliable JavaScript Change Events
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Some browser engines do not generate a change event after input completion in input fields, leading to JavaScript execution failures in Web browsers, compromising user convenience.
Innovation Solution
An information processing apparatus with an event handler that generates a change event upon detecting a predetermined event from the browser engine, ensuring compatibility and execution of JavaScript even when the browser engine fails to do so.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If a browser engine that does not generate change events after input completion is used, then device compatibility or browser engine selection flexibility is improved, but JavaScript execution reliability deteriorates
Solution Approach 1:
The event handler acts as an intermediary between the browser engine and JavaScript code. It receives notifications from the browser engine about input events, determines whether a change event should be generated based on the event type and input field state, and then generates the change event if conditions are met. This intermediary layer ensures that JavaScript code receives appropriate change events regardless of the browser engine's native capabilities, resolving the contradiction between browser engine compatibility and JavaScript execution reliability.
2Adaptability or versatility
If the browser engine is changed to one without change event generation capability, then system flexibility or browser engine interchangeability is improved, but user convenience deteriorates
Solution Approach 1:
The event handler implements self-service by autonomously monitoring input events from the browser engine, analyzing the event type and input field state, and automatically generating change events when appropriate. This self-service mechanism ensures that user-facing functionality remains consistent and convenient regardless of which browser engine is used, as the event handler compensates for the browser engine's limitations without requiring user awareness or action.
3Reliability
If change event generation is implemented in the event handler, then JavaScript execution reliability is improved, but device complexity increases
Solution Approach 1:
The browser software is segmented into distinct functional components: the browser engine that handles low-level input event generation, the event handler that processes and analyzes events, and the JavaScript execution environment that runs application logic. By segmenting the system this way, the complex logic for determining when to generate change events is isolated in the event handler, allowing the browser engine to remain simple while still achieving reliable JavaScript execution through the coordinated work of specialized components.
Data Source
AI summary
Provided is an information processing apparatus configured to execute a Web browser and an event handler implemented on the Web browser, the information processing apparatus including: at least one memory and at least one processor which function the event handler as: a generation unit configured to generate a change event in a case where a predetermined event is notified from a browser engine of the Web browser.


