[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.frontpage.programming

Stock Quote Web Component

=?Utf-8?B?cm9kY2hhcg==?=

4/20/2004 5:12:00 AM

Hi,

I was wondering if someone would be kind enough to look at
my html coding below and tell me where I'm going wrong. I
am attempting to create a stock quote web component that
retrieves prices from the Australian Stock Exchange.

If it were to work correctly the component should take me
to the following screen (using stock code ANZ as an
example):
http://www.asx.com.au/asx/markets/PriceRe...
method=get&template=F1001&ASXCodes=anz

However this screen
appears:http://www.asx.com.au/asx/markets/PriceRe...
F1001%26ASXCodes=anz

Close but no cigar!! My HTML code for this component is as
follows:
<table border="0" cellpadding="0" cellspacing="0"
style="border-collapse: collapse" width="28%">
<form METHOD="GET&template" TARGET="_top"
action="http://www.asx.com.au/asx/markets/PriceResults...
>
<tbody><tr>
<td width="26%" align="left"><b><font
FACE="Arial,Helvetica" SIZE="3">ASX Stock
Quote</font></b></td>
</tr><tr>
<td width="26%" align="left"><b><font FACE="Arial,
Helvetica" COLOR="#808080" SIZE="-1">Enter Symbol(s)
</font></b>&nbsp;<input TYPE="TEXT" SIZE="8"
MAXLENGTH="255" NAME="F1001&ASXCodes" VALUE><input
TYPE="SUBMIT" VALUE="Go"></td>
</tr></tbody></form></table>

Many thanks for your help.

1 Answer

Jim Buyens

4/21/2004 6:14:00 PM

0

Howdy. Try this:

<table border="0" cellpadding="0" cellspacing="0"
style="border-collapse: collapse" width="28%">
<form method="GET" target="_top"
action="http://www.asx.com.au/asx/markets/PriceResults...
>
<input type="hidden" name="method" value="get">
<input type="hidden" name="template" value="F1001">
<tr>
<td width="26%" align="left"><b>
<font face="Arial,Helvetica" size="3">ASX Stock
Quote</font></b></td>
</tr>
<tr>
<td width="26%" align="left"><b>
<font face="Arial, Helvetica" color="#808080"
size="-1">Enter Symbol(s) </font></b>&nbsp;
<input type="TEXT" size="8" maxlength="255"
name="ASXCodes" value> <input type="SUBMIT"
value="Go"></td>
</tr>
</form>
</table>

Basically, because the method and template fields are
constant, you should make them hidden form fields. the
name of the text bos is then ASXcodes.

In a quqery string such as:

?method=get&template=F1001&ASXCodes=anz

? marks the beginning of the query string.
& separates each name=value pair.

Jim Buyens
Microsoft FrontPage MVP
http://www.inter...
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------






>-----Original Message-----
>Hi,
>I was wondering if someone would be kind enough to look
at
>my html coding below and tell me where I'm going wrong. I
>am attempting to create a stock quote web component that
>retrieves prices from the Australian Stock Exchange.
>
>If it were to work correctly the component should take me
>to the following screen (using stock code ANZ as an
>example):
>http://www.asx.com.au/asx/markets/PriceRe...
>method=get&template=F1001&ASXCodes=anz
>
>However this screen
>appears:http://www.asx.com.au/asx/markets/PriceR...
?
>F1001%26ASXCodes=anz
>
>Close but no cigar!! My HTML code for this component is
as
>follows:
><table border="0" cellpadding="0" cellspacing="0"
>style="border-collapse: collapse" width="28%">
><form METHOD="GET&template" TARGET="_top"
>action="http://www.asx.com.au/asx/markets/PriceR...
"
>>
><tbody><tr>
><td width="26%" align="left"><b><font
>FACE="Arial,Helvetica" SIZE="3">ASX Stock
>Quote</font></b></td>
></tr><tr>
><td width="26%" align="left"><b><font FACE="Arial,
>Helvetica" COLOR="#808080" SIZE="-1">Enter Symbol(s)
></font></b> <input TYPE="TEXT" SIZE="8"
>MAXLENGTH="255" NAME="F1001&ASXCodes" VALUE><input
>TYPE="SUBMIT" VALUE="Go"></td>
></tr></tbody></form></table>
>
>Many thanks for your help.
>
>.
>