RizlaUK
03-15-2008, 12:58 PM
i think the web object is in need a overhaul, it certainly lacks some very important functions/events that are available in other dev apps that use this control
My Suggestions:
Functions:
Web.GetHtmlCode("Web1") : Get the html code from the gadget.
Web.SetHtmlCode("Web1",strHTML) : Set the html code from the gadget.
Web.GetScroll("Web1") -- RETURNS A TABLE (X,Y)
Web.SetScroll("Web1",X,Y)
Web.BlockPopups("Web1",true) -- Block popup windows.
Web.BlockPopupMenu("Web1",true) -- Block standard the popup menu.
-- read only attributes
Web.GetPageTitle("Web1") -- Get the current title for the displayed page.
Web.GetStatusMessage("Web1") -- Get the current statusbar message.
Web.GetSelectedText("Web1") -- Get the currently selected text inside the gadget.
Events:
On Popup: (web object tries to open new page in IE)
On Menu (or Right Click)
and the on navigate event should also have a download progress constant "e_URLProgress" which would return the % of the page loaded
these functions are avalable in the IE ActiveX control so i wonder if we will ever see them in AMS, or would it be worth me coding my own IE plugin
My Suggestions:
Functions:
Web.GetHtmlCode("Web1") : Get the html code from the gadget.
Web.SetHtmlCode("Web1",strHTML) : Set the html code from the gadget.
Web.GetScroll("Web1") -- RETURNS A TABLE (X,Y)
Web.SetScroll("Web1",X,Y)
Web.BlockPopups("Web1",true) -- Block popup windows.
Web.BlockPopupMenu("Web1",true) -- Block standard the popup menu.
-- read only attributes
Web.GetPageTitle("Web1") -- Get the current title for the displayed page.
Web.GetStatusMessage("Web1") -- Get the current statusbar message.
Web.GetSelectedText("Web1") -- Get the currently selected text inside the gadget.
Events:
On Popup: (web object tries to open new page in IE)
On Menu (or Right Click)
and the on navigate event should also have a download progress constant "e_URLProgress" which would return the % of the page loaded
these functions are avalable in the IE ActiveX control so i wonder if we will ever see them in AMS, or would it be worth me coding my own IE plugin