Stock Quote Web Component

D

Dazza

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/PriceResults.jsp?
method=get&template=F1001&ASXCodes=anz

However this screen
appears:http://www.asx.com.au/asx/markets/PriceResults.jsp?
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.jsp"<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.
 
J

Jim Buyens

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.jsp"<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.interlacken.com
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)
|/---------------------------------------------------
*----------------------------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top