Web Page Image Hotspot Management via JSONP Cross-Domain Communication
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Web browsers' same origin policy restricts communication across domains, limiting the ability to associate web page image hotspots with content from different domains, and existing web services lack a common interface for cross-domain functionality.
Innovation Solution
A method using JSONP requests and HTML fragments to facilitate interaction with web page image hotspots, allowing a hotspot management computing apparatus to generate and send HTML fragments that define descriptions and URLs for associated content across different domains, enabling communication between client devices and web services hosted by different domains.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If web browsers enforce same origin policy to ensure security, then security is improved, but communication between different domains is restricted
Solution Approach 1:
The patent uses JSONP (JSON with Padding) as an intermediary mechanism to enable cross-domain communication. The same origin policy is bypassed by wrapping JSON data in a function call that is safely executed in the client's context, allowing data exchange between different domains while maintaining security boundaries.
Solution Approach 2:
The hotspot management system implements a universal interface that works across multiple domains and web services. The system provides common functionality for creating, managing, and interacting with hotspots regardless of which domain hosts the web service, enabling broad adaptability and cross-domain versatility.
2Device complexity
If web services are developed for single domain to simplify development, then development complexity is reduced, but interface compatibility across domains is limited
Solution Approach 1:
The patent creates a universal hotspot management interface that can be hosted by any web service regardless of domain. The system uses standardized JSONP requests and responses that work across different domains, providing interface compatibility without requiring separate implementations for each domain.
Solution Approach 2:
The system separates the hotspot management functionality into independent, reusable components that can be deployed on different domains. The client-side JavaScript library and server-side web service are decoupled, allowing each to be developed and maintained independently while maintaining compatibility through standardized JSONP interfaces.
Data Source
AI summary
A method, non-transitory computer readable medium, and hotspot management computing apparatus that receives a JavaScript Object Notation with Padding (JSONP) request from a client computing device, wherein the JSONP request comprises an identifier associated with a selected hotspot associated with an image of a first web page. A HyperText Markup Language (HTML) fragment is generated based on the identifier, wherein the HTML fragment defines a first description associated with the hotspot and an input element associated with a Uniform Resource Locator (URL) of a second web page including a second description associated with the hotspot. The HTML fragment is sent to the requesting client computing device.


