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 MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to get a value from a hidden text box

Status
Not open for further replies.

DougP

MIS
Dec 13, 1999
5,985
US
I am calling the same page over and over.

I want to be able to get the value out of a hidden text box on that page.
------------------- Here is my code ----------------------
<html>
<%@ Language=VBScript %>
<head>
<title>test</title>
</head>
<body>
<a href=&quot;#&quot; onclick=&quot;window.open('</body>
</html>
--------------------------------
This is part of waht is returned
------------------------------
<HTML>
<HEAD>
<META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html;charset=iso-8859-1&quot;>
<TITLE>UPS Package Tracking</TITLE>
</HEAD>
<BODY BGCOLOR=&quot;#FFFFCC&quot; TEXT=&quot;#333333&quot; LINK=&quot;#0033CC&quot; ALINK=&quot;#3399FF&quot; VLINK=&quot;#990000&quot;>

<FORM ACTION=&quot; METHOD=&quot;POST&quot;><A NAME=&quot;top&quot;></A>
<INPUT TYPE=&quot;HIDDEN&quot; NAME=&quot;TypeOfInquiryNumber&quot; VALUE=&quot;R&quot;>
<INPUT TYPE=&quot;HIDDEN&quot; NAME=&quot;HTMLVersion&quot; VALUE=&quot;4.0&quot;>
<INPUT TYPE=&quot;HIDDEN&quot; NAME=&quot;InquiryNumber&quot; VALUE=&quot;PO-2101&quot;>
<INPUT TYPE=&quot;HIDDEN&quot; NAME=&quot;ReferenceNumber&quot; VALUE=&quot;PO-2101&quot;>
<INPUT TYPE=&quot;HIDDEN&quot; NAME=&quot;SenderShipperNumber&quot; VALUE=&quot;367045&quot;>
<INPUT TYPE=&quot;HIDDEN&quot; NAME=&quot;sort_by&quot; VALUE=&quot;status&quot;>
<INPUT TYPE=&quot;HIDDEN&quot; NAME=&quot;line1&quot; VALUE=&quot;1Z3670451550845123,...
...
-----------------------------
I want to be able to get the left 18 characters which is &quot;1Z3670451550845123&quot; the shipping number out of &quot;line1&quot; the last text box shown above.

any Ideas????
TIA DougP, MCP

Visit my WEB site to see how Bar-codes can help you be more productive
 
You could open said page in a frame and then use the DOM to navigate to that hidden input. Something like:

myFrames.frames(&quot;upsTracking&quot;).document.all(&quot;line1&quot;).value
&quot;A computer scientist is a person who knows when it is time to hit the computer.&quot;

John

johnmc@mvmills.com
 
Ok here is my code I can't seem to get the number
--------------------
<html>
<%@ Language=VBScript %>
<head>
<title>test</title>
</head>
<frameset rows=&quot;138,*&quot;>
<frame name=&quot;banner&quot; scrolling=&quot;no&quot; noresize target=&quot;contents&quot; src=&quot;boeingtop.htm&quot;>
<frameset cols=&quot;149&quot;>
<frame name=&quot;main&quot; src=&quot; </frameset>
<noframes>
<body>
response.write main.frames(&quot;
</body>
</html>
-------------------------------
I want the 1Z..... number returned in a Text box or Variable so I can save it to a Database

TIA
DougP, MCP

Visit my WEB site to see how Bar-codes can help you be more productive
 
I answered this better in the ASP forum. &quot;A computer scientist is a person who knows when it is time to hit the computer.&quot;

John

johnmc@mvmills.com
 
Hi,

You have to read in the querystring values into your script. For example; the querystring shows (from the ? onward) InquiryNumber shows a value of PO-2101. To read this into your next page do this;

<input type=&quot;hidden&quot; name=&quot;InquiryNumber&quot; value=&quot;<%= Request.QueryString(&quot;InquiryNumber&quot;) %>&quot;>

and so on....

As you know, every item in the querystring is seperated first by the ? and then by all the & symbols. This is how to read in the values you need.

Hope this helps.

 
Osirisweb,
I'm not creating the page, UPS is
the value I want is not part of the string I am passing
the value is returned on the page in a hidden tecxt box.

I need to get the value out of a foreign page that I have no control over. DougP, MCP

Visit my WEB site to see how Bar-codes can help you be more productive
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top