LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

This page uses frames, but your browser doesn't support them. Sorry!

When I use Data Socket Read to view a web page HTML, I receive an error stating "<p>This page uses frames, but your browser doesn't support them. Sorry!</p>
".

How can I read the HTML of all or a specific frame of a web page?

0 Kudos
Message 1 of 11
(37,851 Views)

Are there sites out there that still use frames? Egads!

 

Essentially you have to know the actual page that's contained within a frame. A frame page is just a placeholder for other pages. If you actually get the source for a frame page you would see that it lists other pages as being contained within a frame. In essence, it's like having multiple browser windows inside of a single page.

0 Kudos
Message 2 of 11
(37,847 Views)
I'm actually try to read a web page that is resident within a piece of equipment and that page still uses frames.  I've tried to use a vi that I found posted , get_HTML.vi.  I returns the html from the top frame but I don't know how to format the input to request the lower level frames.
0 Kudos
Message 3 of 11
(37,838 Views)
There is no special way to format the input. You just need to request the specific page that's being displayed in the frame. If you've gotten the page you can look at the source code (i.e., the HTML code) and see the name of the page. Then you just need to request that page instead of the frame page.
0 Kudos
Message 4 of 11
(37,831 Views)

You are probably getting some html that looks something like this:

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
   "http://www.w3.org/TR/html4/frameset.dtd">
<HTML>
<HEAD>
<TITLE>A simple frameset document</TITLE>
</HEAD>
<FRAMESET cols="20%, 80%">
  <FRAMESET rows="100, 200">
      <FRAME src="contents_of_frame1.html">
      <FRAME src="contents_of_frame2.gif">

  </FRAMESET>
  <FRAME src="contents_of_frame3.html">
  <NOFRAMES>
      <p>This page uses frames, but your browser doesn't support them. Sorry!</p>
  </NOFRAMES>
</FRAMESET>
</HTML>

 

(although your frameset and frame tags will amost certainly be different)

 

What you will need to do is parse out the <FRAME> tag src elements and fetch those pages instead.

 

e.g. if the home page is http://mysite.com/index.html and the frame tag is <FRAME src="frame1.html">, you will need to fetch http://mysite.com/frame1.html

 

Shaun

0 Kudos
Message 5 of 11
(37,821 Views)
Problem solved!  Once I realized the actual page name and that it was a *.cgi page, my get_html.vi worked really well.  Thanks to everyone for the help.
Message 6 of 11
(37,680 Views)

I have got same problem in my application.

 

i.e i am requesting to a page which with username & password if it is valid password than balance of that user i shwon in another window .

0 Kudos
Message 7 of 11
(31,584 Views)

I had the same question and solved it through the method. You can apt-get install php libapache2-mod-php and then restart apache2 and nagios.

0 Kudos
Message 8 of 11
(23,536 Views)

@shew82 wrote:

You are probably getting some html that looks something like this:

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
   "http://www.w3.org/TR/html4/frameset.dtd">
<HTML>
<HEAD>
<TITLE>A simple frameset document</TITLE>
</HEAD>
<FRAMESET cols="20%, 80%">
  <FRAMESET rows="100, 200">
      <FRAME src="contents_of_frame1.html">
      <FRAME src="contents_of_frame2.gif">

  </FRAMESET>
  <FRAME src="contents_of_frame3.html">
  <NOFRAMES>
      <p>This page uses frames, but your browser doesn't support them. Sorry!</p>
  </NOFRAMES>
</FRAMESET>
</HTML>

 

(although your frameset and frame tags will amost certainly be different)

 

What you will need to do is parse out the <FRAME> tag src elements and fetch those pages instead.

 

e.g. if the home page is http://mysite.com/index.html and the frame tag is <FRAME src="frame1.html">, you will need to fetch http://mysite.com/frame1.html

 

Shaun



I had the same question and solved it through the method. You can apt-get install php libapache2-mod-php and then restart apache2 and nagios.

0 Kudos
Message 9 of 11
(23,536 Views)

Hi nagins,

 

how exactly is your comment related to LabVIEW programming?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 11
(23,531 Views)