PDA

View Full Version : IE Web Object Overhaul


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

rexzooly
03-15-2008, 01:05 PM
i seconded that :yes

More control over the web object would open AMS open to almost more
options. as web apps become more populer it would be easlyer to ended them to the software also no boarder opens like Flat, None, standard.

and how links are handled would also be a nice catch.

Intrigued
03-15-2008, 08:46 PM
I like these suggestions too. Nice call!

ShadowUK
03-16-2008, 02:59 AM
I'd love this as well, so I could do String.Find on Web.GetPageCode

FoxLeader
03-16-2008, 11:22 AM
Yep, this would be one of my top wishes for AMS.

Darryl
03-18-2008, 08:15 PM
Thank you, I've submitted all of your Web object suggestions for consideration.

REF: 17310

christhomas
10-27-2008, 07:33 PM
A couple more points for inclusion please ;)

I'd like to second the extra options for the web windows borders. The current always on thick border has really cramped my style in my app.

A big one for me, if possible. Make window scroll bars optional. This has played **** with my current app. I use a small IE window to show info to the user. If I am not very very carefull with my HTML placement, I get stinking great scroll bars at the top and/or the sides of the window. I don't need them, so I should be able to dis-able them?

Cheers

CT

RizlaUK
10-27-2008, 09:06 PM
just set "overflow:hidden" in the head of your html pages