Question : How to display news and stocks in to my site.

How can i provide a news and stocks in my web site. i can find a way of puting a text bux and submit with stock quotes but how can i do this so i on't have to redirect to different site. and where can i get stock quotes and news ad how. This is for only learning purposes there for it has to be free.

Answer : How to display news and stocks in to my site.

>>learning purposes

is this for homework?  if so, not a problem, but it will change the way I go about answering your question...

what i can say regardless is that I would look into doing it with XMLHTTP.  With XMLHTTP you can grab content from across servers or on other sites.  The only thing you have to make sure of is that the site you are taking the content from doesn't mind.

EXAMPLE:  for the stocks, you could have a text box where the user inputs a stock symbol.  you would then have a site that has stock quotes....something like yahoo finance where the stock symbol is part of the URL...
ex:  http://finance.yahoo.com/q?s=amzn

taking the user's input into the text box, you append it to the URL, grab the needed content from the page using XMLHTTP, and return it on your page.  

NOTE:  i am NOT saying to use Yahoo, I don't know what their policy is on using their content.  It might be illegal.  I used it simply as an example.


As far as the news feeds to your site, you can use XML or RSS feeds, and then use xslt and asp to format the news feed for your own site.  check www.newsisfree.com for free feeds.


BRUNO
Random Solutions  
 
programming4us programming4us