Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to hide/unhide label in IE
Message
From
25/12/2015 18:07:40
 
 
To
08/12/2015 09:47:17
General information
Forum:
Visual FoxPro
Category:
West Wind Web Connection
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows 10
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01628643
Message ID:
01629300
Views:
54
for working on IE objects you must access to the document object.this is done after navigating to the URl (or local file)
and passing the transitionnings(want to say IE downloadcomplete event).
try this code
*on the google page ,this code hides the "gmail,images,google apps,connection..." in the div given by its id:"gbw" 
*(can see the www.google.com/ code source and find it...CTRL+F)

declare integer Sleep in kernel32 integer
declare integer BringWindowToTop in user32 integer

local apIE
apIE=newObject("internetexplorer.application")
with apIE
.navigate("www.google.com/")
do while apie.busy or apie.readystate#4       &&transitionnings
sleep(200)
enddo
sleep(1000) 
bringwindowtotop(.hwnd)
*here you acess to document object
.document.getElementbyID("gbw").style .visibility="hidden"    &&to hide object  
*.document.getElementbyID("gbw").style .visibility="visible"   &&to make visible
.visible=.t.    &&mandatory to see the window (otherwise it stays in taskmanager and must kill it manually)
endwith  
open this page (www.google.com/) on IE navigator in a new TAB and see the difrences!
if you have the ID of any element of a web page you can apply this code to hide it.

Note : can use .document.getElementbyID("gbw").style .display="none" &&this disable the object and hide it.
Previous
Reply
Map
View

Click here to load this message in the networking platform