borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (retrieving data from database)Next Topic (Word) New Topic New Poll Post Reply
AndreaVB Forum : VBA (Access, Excel, Word, ...) : How get the code source (with dhtml, javascript) from a web page ?
Poster Message
pegase
Level: Trainee

Registered: 06-12-2005
Posts: 1

icon How get the code source (with dhtml, javascript) from a web page ?

Hello,
I try to get the code source (with dhtml, javascript) from a web page like https... to get back the tables of my account but I have only a frame (the first frame of the page)... I have this macro vba: (which works well with the other pages)  
IE.navigate "https://www.MyAccount.htm"
Do Until IE.readyState = READYSTATE_COMPLETE
DoEvents
Loop
nFile = FreeFile
Open "C:\Compte.htm" For Output Shared As #nFile
Print #nFile, IE.document.documentElement.innerHTML
Close #nFile

Have you a means there to get back vba the code source of the complete page and not only the first frame (or layer?)?
Thank you for your help

06-12-2005 at 02:03 AM
View Profile Send Email to User Show All Posts | Quote Reply
stickleprojects
Level: Moderator


Registered: 09-09-2002
Posts: 891
icon Re: How get the code source (with dhtml, javascript) from a web page ?

Hi,
The VBA client-side code may be got, by opening a connection to the included file in the html source, however, the serverside stuff is hidden (on purpose) on the server. I don't think you can get to it without hacking.
Kieron


____________________________
Build it better, faster, quicker, easier.. then fix it (non-offical MS mission statement)

07-02-2006 at 08:46 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VBA (Access, Excel, Word, ...) : How get the code source (with dhtml, javascript) from a web page ?
Previous Topic (retrieving data from database)Next Topic (Word) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder