Patent ID: 8645848

Claim:
A method for dynamically generating menus, comprising: displaying a web page by a browser; providing, by the browser, a user with an opportunity to request a menu identified by a menu placeholder in the web page; generating a request for a menu content of the menu; receiving, in response to the request, the menu content over a network after displaying the web page; generating, by the browser, an HTML code that identifies at least one menu item in a first portion of the received menu content based on the browser executing a second portion of the menu content, wherein the second portion of the menu content comprises an executable script by: (a) identifying, by the executable script executed by the browser, whether a web page object in the web page is unreadable by an accessibility application for visually impaired users, wherein the accessibility application comprises a screen reader configured to turn HTML into spoken words, wherein the web object that is identified as unreadable is further identified to be replaced by a replacement object that is readable by the accessibility application; and (b) executing, by the browser, the executable script from the second portion of the menu content; (c) based on executing of the script and an identification of the web object that is to be replaced, executing by the browser a function that was defined by a parent window of the web page, wherein parameters to the function includes the identification of the web object that is to be replaced; and (d) based on executing the function, generating, by the browser, the HTML code in a form of the replacement object that is readable by the accessibility application based on the web page object that is identified as unreadable; replacing, by the browser, the web page object with the replacement object by copying the generated HTML code into the displayed web page at a location of the placeholder to enable the accessibility application to read the replacement object as a replacement for the web page object that is identified as unreadable; and displaying an HTML component based on the newly inserted HTML code to display the menu.