PDA

View Full Version : submit script help


coolbuzz
04-25-2005, 12:39 AM
Hi,

I am looking for help in submit script code.

First, can you go to
http://biz.yahoo.com/rss.html
you will see "Enter Stock Symbol(s)" box.
For example you key in YHOO you will then see http://finance.yahoo.com/rss/headline?s=yhoo

repeat it for GOOG you will see http://finance.yahoo.com/rss/headline?s=goog

Do you notice that the http://finance.yahoo.com/rss/headline?s= is a default value.

Now, anyone knows how to create a html submit script to submit to http://finance.yahoo.com/rss/headline?s=altr when i key in ALTR in the submit box?


Thanks a lot...:)

_Aerospace_Eng_
04-25-2005, 02:25 AM
where is the info going to displayed at?

coolbuzz
04-25-2005, 03:08 AM
Hi,

Thanks for your reply,

I only need to redirect to the address below when i key in ALTR in the search box.
http://finance.yahoo.com/rss/headline?s=altr

Thanks

_Aerospace_Eng_
04-25-2005, 03:13 AM
This may not be what you want because you weren't specific enough in your last post, I asked where did you want the info to appear. You didn't give me that answer.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<script type="text/javascript">
<!--
function change(feed){
window.location='http://finance.yahoo.com/rss/headline?s='+feed+'';
}
//-->
</script>
</head>

<body>
<form>
<input type="text" name="rss" size="10">
<input type="button" value="Change Feed" onclick="change(this.form.rss.value)">
</form>
</body>
</html>

coolbuzz
04-25-2005, 08:54 PM
it works, thanks a lot...:)