Click to See Complete Forum and Search --> : Expert.. Need Help... How to grab another html to get information


ThunderBirdUT
01-31-2008, 09:24 AM
Hello.. I am very sorry I have bad grammar and just try to understand. :(


I do not know what it's called...

- The printer has own webpage for status.
- I own new html web page.
- How do I make code to GET printer's webpage information ?
Like: Printer's webpage have 5 bar for scale of toner, How I get that bar information into my new webpage? like grab? or import? or grab by line and column # or something else?

thanks for helps.
ThunderBirdUT

Robert Wellock
01-31-2008, 12:15 PM
You mean you have a printer with a web interface panel that shows a graphic indicator of printer status and toner levels? Well, it sounds like beyond the scope of HTML as HTML is static you'd probably need something like JAVA.

nickelleon
01-31-2008, 01:09 PM
Thats a cool feature on a printer haha. I wonder if it has an API to connect to? Either way, ya, its out of the scope of what HTML can do.

ThunderBirdUT
01-31-2008, 02:23 PM
You mean you have a printer with a web interface panel that shows a graphic indicator of printer status and toner levels? Well, it sounds like beyond the scope of HTML as HTML is static you'd probably need something like JAVA.



Yes. it has web interface panel.

Look at this picture look like:
10367

You see the Toner 5 Bars Each.

That's what I want to grab this bars into my own website when bars change to reduce and show on my own website same exact what it doing.

hope it explain to understand.

So I use barmenu VIEW > SOURCE it showing as I found where is the bars are:

<td align="left" valign="top" width="350">
<table>
<tr class="staticProp">
<td>
<td nowrap valign="top"><img src="/images/en01.gif"></td>
<td nowrap align="left" valign="top">Toner</td>
<td nowrap valign="top"></td>
</td>
<td>
<table border="0" cellpadding="1" cellspacing="0">
<tr class="staticProp">
<td>Black</td>
<td>:</td><td valign="middle"><img src="/images/tonner_on.gif"><img src="/images/tonner_on.gif"><img src="/images/tonner_on.gif"><img src="/images/tonner_off.gif"><img src="/images/tonner_off.gif"></td>
</tr>
<tr class="staticProp">
<td>Cyan</td>
<td>:</td><td valign="middle"><img src="/images/tonner_on.gif"><img src="/images/tonner_off.gif"><img src="/images/tonner_off.gif"><img src="/images/tonner_off.gif"><img src="/images/tonner_off.gif"></td>
</tr>
<tr class="staticProp">
<td>Magenta</td>
<td>:</td><td valign="middle"><img src="/images/tonner_on.gif"><img src="/images/tonner_on.gif"><img src="/images/tonner_off.gif"><img src="/images/tonner_off.gif"><img src="/images/tonner_off.gif"></td>
</tr>
<tr class="staticProp">
<td>Yellow</td>
<td>:</td><td valign="middle"><img src="/images/tonner_on.gif"><img src="/images/tonner_off.gif"><img src="/images/tonner_off.gif"><img src="/images/tonner_off.gif"><img src="/images/tonner_off.gif"></td>
</tr>
</table>
</td>


You see the reds.. that is where I wanted to copy from this webpage into my new webpage for example:

Scan for '<td valign="middle">' then reading all texts into TEXT1 string until stop reading at '</td>' then on my new webpage show with TEXT1 string. that's it.