Solved

Permission Denied - Webbrowser Control

Posted on 2004-08-25
15
3,842 Views
Last Modified: 2013-12-25
I believe this question was asked before..Not quite sure if there is a solution or not...

I'm trying to access a web page that contains 2 frames...

Set F0htmlDoc = WebBrowser1.Document.frames(0).Document
Set F1htmlDoc = WebBrowser1.Document.frames(1).Document

When I access WebBrowser1.Document.frames(0).Document  I get a 'permission denied..'

Their was a similar question asked.....
Solution Title: Accessing Frames in a Browser Object...
asked by rdrunner on 11/23/2003 03:14AM PST  

which, in one of the comments he says...

"Well i found a work around (messy but working) I just redirect the top frame to the url of the inner frame and i am able to mess with the page like i desire... Messy but working :) And since its only for personal use i can live with it... Anyway... Thanks for the link to the Article..."

I'm not quite sure how he was able to do this since the frame can not be accessed...

Any help would be greatly appreciated......

Thanks,

CDiscenna
0
Comment
Question by:cdiscenna
  • 8
  • 7
15 Comments
 
LVL 11

Expert Comment

by:bingie
Comment Utility
Hi,

Could you please post the link to the page in question?
0
 

Author Comment

by:cdiscenna
Comment Utility
0
 
LVL 11

Expert Comment

by:bingie
Comment Utility
:)

A link to the page you need to access that has the frames
0
 

Author Comment

by:cdiscenna
Comment Utility
Sorry... It's getting late here...
The page I need to access is after a logon page... I can give you the logon & passwd, however
I'n not sure I should post it here...
0
 

Author Comment

by:cdiscenna
Comment Utility
The Logon page behaves the same.... if you go to http://www.landsafe.com/index.html
click on "Appraiser" then the "Appraiser Link"
0
 

Author Comment

by:cdiscenna
Comment Utility
Checking to see if you had any luck ?
0
 
LVL 11

Expert Comment

by:bingie
Comment Utility
If your just looking to log in to to the log in page, use this:

wb.Navigate2 "https://appraiserlink.landsafe.com/webapp/AppraiserLink/login_page.do"

Do Until Not wb.Busy
    DoEvents
Loop

wb.Document.All("username").Value = "username"
wb.Document.All("password").Value = "password"
wb.Document.All("login").Click

Make sure your webbrowser is named wb and your replace the above username and password with the correct credentals

0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 

Author Comment

by:cdiscenna
Comment Utility
On most pages I'm able to send events, change values' etc....
I'm by far no expert in web dev... I would like to why I can't alter or send events to the page referenced above..

When I  look at the source I see no reference to the text box for username and passwd nor, the button for login, or anything that remotely resembles .... Unless I need to be looking somewhere else ??

Thanks for the reply....
0
 
LVL 11

Expert Comment

by:bingie
Comment Utility
This is the HTML to use:

          <TD>Username:</TD>
          <TD><input type="text" name="username" value=""></TD>
        </TR>
        <TR>
          <TD WIDTH="40"></TD>
          <TD WIDTH="40"></TD>
          <TD>Password:</TD>
          <TD><input type="password" name="password" value=""></TD>
        </TR>
        <TR>
          <TD WIDTH="40"></TD>
          <TD WIDTH="40"></TD>
          <TD COLSPAN="2" HEIGHT="10"><IMG SRC="/images/b.gif" HEIGHT="1" WIDTH="1"></TD>
        </TD>
        <TR>
          <TD WIDTH="40"></TD>
          <TD WIDTH="40"></TD>
          <TD COLSPAN="2"><input type="submit" name="Login" value="Login"></TD>
        </TR>

You need to concern yourself with the <input> tag, which indicates an input object - text box, radio button, checkbox, submit button, etc.

Here the page uses 2 text boxes,

   <input type="text" name="username" value="">
   <input type="password" name="password" value="">

This is for both the username and password. VB uses the name tag to determine which control will receive the data from VB. The type attribute controls which type of input control it is.

Thus, the two names are "username" and "password" which we reference in VB with:

   wb.Document.All(Control_Name)Value = "username"

which is

   wb.Document.All("username").Value = "username"
   wb.Document.All("password").Value = "password"

The submit button's html is

   <input type="submit" name="Login" value="Login">

and we reference this in VB with

   wb.Document.All("login").Click

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Some information to read:

http://www.w3schools.com/html/html_forms.asp   All about the input tag

http:/Visual_Basic/Q_20987338.html
http:/Visual_Basic/Q_20996910.html
http:/Visual_Basic/Q_20997557.html
http:/Visual_Basic/Q_20992009.html
0
 

Author Comment

by:cdiscenna
Comment Utility
I completely understand the above...

That's not the problem.....
When I view the source for this page this is what I get........
Shoud I be looking elsewhere for input tags ????

<html>
<head>
<title>LandSafe, Inc.</title>
      <meta name="description" content="Founded in 1994, LandSafe is a wholly owned subsidiary of Countrywide Credit Industries, Inc. Through its various subsidiaries, LandSafe offers high-value-added real estate closing services, using technology and automation to reduce costs. The services include appraisals, credit reporting, flood determination, home inspections and title and escrow products. For more information about LandSafe and its products and services, please call 877-LS-CLOSE or visit LandSafe on the Web at www.landsafe.com">
      <meta name="keywords" content="appraisal services, home inspection services, credit services, title services, flood determination, real estate closing services">
      <meta name="robot" content="all">
      <meta name="revisit-after" content="30">
      <meta name="distribution" content="global">
      <meta name="rating" content="general">
      <meta name="language" content="en-us">
<script language="JavaScript" src="/js/cookie.js"></script>
<script language="JavaScript">
<!--
function unload()
{
      var st = getCookie('Survey');
      if( st != 'taken' ){
            window.open('http://legacy.landsafe.com/products/survey/Survey1001987/SurveyStart.asp?WebSurveyGroupID=4',
                              'SurveyWindow','width=800,toolbar=no,status=no,scrollbars=yes,resizable=yes');
      }
      var today = new Date();
      var zero_date = new Date(0,0,0);
      today.setTime(today.getTime() - zero_date.getTime());
      
      var todays_date = new Date(today.getYear(),today.getMonth(),today.getDate(),0,0,0);
      var expires_date = new Date(todays_date.getTime() + (8 * 7 * 86400000));
      setCookie('Survey','taken',expires_date);
}

//-->
</script>
</head>
<frameset rows="100%,*" onUnload="unload()" scrolling="no" border="0" frameborder="no" framespacing="0">
<frame src="/landsafe/index.html" name="the_main" scrolling="auto" border="0" frameborder="0">
<frame src="/UntitledFrame-7"></frameset><noframes></noframes>
</html>
0
 
LVL 11

Accepted Solution

by:
bingie earned 500 total points
Comment Utility
Your looking at the source for the main frame at http://www.landsafe.com/index.html

The login page's address is actually https://appraiserlink.landsafe.com/webapp/AppraiserLink/login_page.do (right click on the page and goto properties - the link is there, or right click - View Source)
0
 

Author Comment

by:cdiscenna
Comment Utility
bingie,

Thanks for the above...

The logon page may not be that important because the customer has a user id and passwd and is signed up for the service...I don't think it will be  a problem for him to login.... The main problem is as follows....

The source below is what appears after the login page...Apparently from what I can tell, is that every 3 minutes the  page is refreshed.... Most of the the time it'll come back exactly the same, other times it will display additional info with check boxes, buttons, text, etc.... I need to trap the page with the additional info, send events etc....

If you could take a look at source below and tell me the best way to handle this.... I would very much appreciate...

I asked the customer, when he gets one of these to save the source for me.... Let me know if you need any additional
info.

Thanks much for your help.....

C. Discenna

<html>
<head>
   <base href="http://appraiserlink.landsafe.com/webapp/AppraiserLink/appraiserlink-default-layout.jsp">
      <title>View Advertised Orders</title>
   <link rel="stylesheet" type="text/css" href="/css/style-core.css">
   <link rel="stylesheet" type="text/css" href="/css/style-orders.css">
   <link rel="stylesheet" id="buttoncss" type="text/css" href="/css/button.css">
   <script language="JavaScript" src="/js/common.js"></script>
   <script language="JavaScript" src="/js/cmd.js"></script>
   <script language="JavaScript" src="/js/button.js"></script>
</head>
<body style="margin: 0em 0em" valign="top">
<span id="ruler" style="display:none" class="small_button"></span>
<table border="0" cellspacing="0" cellpadding="0" align="center" width="800">
   <tr>
            <td>
         <!-- Header -->
<img name="header_feedback" src="/images/outer_header.gif" width="800" height="121" border="0" alt="">
<DIV style="LEFT: 560px; POSITION: relative; TOP: -56px; COLOR : #FFD700">
   <a href="dashboard_page.do" title="Home" onmouseover="this.style.color='#ffffff'" onmouseout="this.style.color='#FFD700'" style="COLOR : #FFD700;">Home</a>
   |
   <a href="support_page.do" title="Help" onmouseover="this.style.color='#ffffff'" onmouseout="this.style.color='#FFD700'" style="COLOR : #FFD700;">Help</a>
   |
   <a href="mailto:appraisal@landsafe.com" title="Feedback" onmouseover="this.style.color='#ffffff'" onmouseout="this.style.color='#FFD700'" style="COLOR : #FFD700;">Feedback</a>
   |
   <a href="logout.do" title="Logout" onmouseover="this.style.color='#ffffff'" onmouseout="this.style.color='#FFD700'" style="COLOR : #FFD700;">Logout</a>
</DIV>

      </td>
         
   </tr>
   <tr>
      <td class="breadcrumbs">
               
                  <a href="dashboard_page.do">Home></a>&nbsp;
               
                  Advertised Orders&nbsp;

      </td>
   </tr>
   <tr><td></td></tr>
   <tr>
      <td>

<script language="JavaScript" src="/js/cmd.js"></script>
<script>

   onLoad();
   function onLoad()
   {
      window.setTimeout("doRefresh()", 300000);
   }

   function doRefresh()
   {
      window.location.reload(true);
   }

</script>

<form name="viewAdvertisedOrdersForm" method="post" action="/webapp/AppraiserLink/viewadvertisedorders.do">

 <tr>
  <td width="100%">
    <h1>Advertised Orders</h1>
  </td>
 </tr>

  <tr>
    <td><br>
    <br><br></td>
  </tr>
 
  <tr valign="top">
  <td>
  <table class="table-simple" cellspacing="0" cellpadding="0" width="100%" border="0">

    <tr>
      <td class="table-heading" width="20">
        &nbsp;
      </td>
 
        <TR>
          <TD colspan="10" align="middle">
          <strong><br>No advertised orders are available for the coverage area defined in your profile.  Please update your coverage area to ensure you are presented the greatest number of orders possible.  Update your coverage area <a href="viewCoverageSummary.do">here</a>.</td>
        </TR>
    </table>
  </td>
  </td>
  </tr>
<input type="hidden" name="parm" value="">
<input type="hidden" name="parm2" value="">
</form>
      </td>
   </tr>
   <tr>
            <td>&nbsp;</td>
      </tr>
   <tr>
      <td>
         <!-- Footer menu bar -->

<p class="menubar">
   <a href="http://www.landsafe.com" target="_new" title="Visit LandSafe.com">LandSafe</a>&nbsp;&nbsp;&nbsp;&nbsp;
   <a href="http://www.landsafe.com/landsafe/privacy/index.html" target="_new" title="Learn about your privacy and security at LandSafe">Privacy</a>&nbsp;&nbsp;&nbsp;&nbsp;
   <a href="logout.do" title="Logout of AppraiserLink">Logout</a>&nbsp;&nbsp;&nbsp;&nbsp;
   <a href="/help/aprhelp.html" title="Learn more about using AppraiserLink effectively">Help</a>
</p>

      </td>
   </tr>
   <tr>
            <td>
         <!-- Footer -->

<img src="/images/footer.gif">

      </td>
   </tr>
   <tr>
            <td>&nbsp;</td>
      </tr>
      <tr>
            <td>
         <p class="copy-centered">
                        &copy; Copyright 2004 LandSafe, Inc.<br>
                        Trade/Service marks are the property of LandSafe, Inc. and/or its subsidiaries.<br>
                        Not all services or products are available in all states.<br>
                        Call 1-877-LS-CLOSE for information.<br>
                        Compliance with Privacy Laws.
</p>

<p class="copy">
   By using this system, you agree to comply with all federal, state and local laws, rules, regulations and ordinances relating to
   privacy rights in connection with your performance under this Agreement including, without limitation, the Gramm-Leach-Bliley Act
   ("GLBA"). You shall implement such security measures as necessary to (a) ensure the security and confidentiality of the "nonpublic
   personal information" of "customers" and "consumers" (as defined in GLBA) of LandSafe which you hold, (b) protect against any threats
   or hazards to the security and integrity of such nonpublic personal information, and (c) protect against any unauthorized access to
   or use of such nonpublic personal information. Further, you warrant that you have implemented measures to meet the objectives of GLBA
   and the standards adopted pursuant thereto, as now or hereafter in effect. Upon request, you will provide evidence to LandSafe to
   confirm that these obligations have been satisfied, which may include LandSafe’s review of systems, security procedures, audits,
   summaries of test results, and other equivalent evaluations of you.
</p>

            </td>
      </tr>
</table>
</body>
</html>
0
 
LVL 11

Expert Comment

by:bingie
Comment Utility
I saved the above as a HTML doc and there are no input tags.

Can you get a copy with the inputs you described above?

You will have to iterate through all the tags, if available, and then determine the inputs required.
0
 

Author Comment

by:cdiscenna
Comment Utility
bingie,

Thanks for all the help... I believe I can handle it from here...

one last question... do i click 'Accept' or 'Split Points' ?
0
 
LVL 11

Expert Comment

by:bingie
Comment Utility
You can click "Accept" on which ever comment helped you the most, dont forget to leave feedback - i'll leave some for you :-)

Thanks - and if there is anything else i can do, let me know. You can post here or send me an email @ bingie "at" experts-exchange.com to point me towards your question.

Bingie
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now