Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get Hidden Text values from returning page

Status
Not open for further replies.

DougP

MIS
Dec 13, 1999
5,985
US
I have a web page that calls UPS WEB site to return the tracking information. On that page is the Reference 1 “PO-2101” which is our PO and the actual UPS tracking number “1Z blah blah blah”

The UPS tracking number is in a hidden text box on that page.

<INPUT TYPE=&quot;HIDDEN&quot; NAME=&quot;line1&quot; VALUE=&quot;1Z3670451550845123,313092b7c3014d7b00decd94f5622e1509202020,,2020202020202020202020202020202020202020,I,,20011020,065100,ANAHEIM,CA,US,,,,,,20011019,YORBA LINDA,CA,US,NEXT DAY AIR EARLY AM,,,1,20011022,,,,mpts,AR,,,,,,,,,,,2020202020202020202020202020202020202020202020202020202020202020202020,2020202020202020202020202020202020202020,,,,,,,,&quot;>

it’s the first 18 characters in text box &quot;line1&quot;

How can I get that value ???
By using a form.request????

Can someone assist in this??

DougP, MCP

Visit my WEB site to see how Bar-codes can help you be more productive
 
Ya know, though... it really seems to me as if there should be a way to do this.

I mean, you have a cached copy of the page on the client's computer. I just can't believe that there is no way to extract a little piece of text out of it. It's just too simple.

I'm not giving up on this. I'm still thinking.

penny.gif
penny.gif
 
Just something I noticed. I said this:
Welllll, it appears I have been talking o u t o f m y a s s.
but my post toned that down to:
Welllll, it appears I have been saying the wrong thing. &quot;Programming is like sex, one mistake and you have to support it forever.&quot;

John

johnmc@mvmills.com
 
Thanks for you Help Link9
I really appreciate it
Once upon a time I created a Visual Basic .EXE app that would somehow open a WEB page and save it to a file and then parse through it looking for something.

Not sure how, I'll look back at my notes.
DougP, MCP

Visit my WEB site to see how Bar-codes can help you be more productive
 
If thats acceptable then it can easily be done. Just open up IE with a VB program, go to whatever page you want, sendkeys or execwb your way to file saving, open the file, parse.

PS Just because I was wrong doesn't mean I wasn't trying, I mean, wheres the LOVE? ;-) &quot;Programming is like sex, one mistake and you have to support it forever.&quot;

John

johnmc@mvmills.com
 
Any method will be fine at this point
total Browser solution is great
I want to scan the 1Z barcode have it go to UPS WEB site find the PO and return it so I can save it to a database DougP, MCP

Visit my WEB site to see how Bar-codes can help you be more productive
 
Open up VB, put a button down and paste this into the code:
Code:
Private Declare Sub Sleep Lib &quot;kernel32&quot; (ByVal dwMilliseconds As Long)

Private Sub Command1_Click()
  Dim ie As SHDocVw.InternetExplorer
  Set ie = CreateObject(&quot;InternetExplorer.Application&quot;)
  ie.Visible = True
  ie.Navigate &quot;[URL unfurl="true"]www.google.com&quot;[/URL]
  Do While ie.Busy
    Sleep 1000
  Loop
  Const fileName = &quot;temp.html&quot;
  SendKeys &quot;%fa&quot; & fileName & &quot;{TAB}{DOWN 3}{TAB 5}&quot;, True
  SendKeys &quot;{DOWN 3} {TAB}{DOWN}~{TAB 3}~&quot;, True
End Sub
This will save your page as a file. This may not work depending on what OS you are running, so for a bulletproof way to do it, you will have to figure out how to do this with ExecWB, which you can use to save the file.

[and still no love...] &quot;Programming is like sex, one mistake and you have to support it forever.&quot;

John

johnmc@mvmills.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top