http://finance.yahoo.com/
offers a wide range of financial data.
Would anyone have (or know where I can get) a sample of code that
I can use to link to a specific element of data (e.g., Last Trade) on http://finance.yahoo.com/ or similar Web site. I would like the information
to update as financial information changes (i.e., a "real time" link).
I have some experience with standard Web pages but no knowledge of
JavaScript, perhaps you could point me in the direction of a few resources
(Web articles, books, etc.) where I can learn to do the type of coding
required to
achieve this type of link.
The following is a part of the HTML code on http://finance.yahoo.com/ that
identifies "Last Trade" of "54.00"
Last Trade:</td><td class="yfnc_tab ledata1"><big>< b><span
id="yfs_l10_vlo ">54.00</span></b></big></td></tr><tr><td
class="yfnc_tab lehead1" width="48%">
Thanks! 9 1779
Leslie Coover wrote:
http://finance.yahoo.com/
offers a wide range of financial data.
Would anyone have (or know where I can get) a sample of code that
I can use to link to a specific element of data (e.g., Last Trade) on
http://finance.yahoo.com/ or similar Web site. I would like the information
to update as financial information changes (i.e., a "real time" link).
I have some experience with standard Web pages but no knowledge of
JavaScript, perhaps you could point me in the direction of a few resources
(Web articles, books, etc.) where I can learn to do the type of coding
required to
achieve this type of link.
The following is a part of the HTML code on http://finance.yahoo.com/ that
identifies "Last Trade" of "54.00"
Last Trade:</td><td class="yfnc_tab ledata1"><big>< b><span
id="yfs_l10_vlo ">54.00</span></b></big></td></tr><tr><td
class="yfnc_tab lehead1" width="48%">
So if the user has the page open for a long time, you want the 54.00 to
change as the data on Yahoo! finance changes?
One way to do this would be this. The browser requests the page from
your server. Your server gets the data from the Yahoo! finance site by
a web service or screen scraping. You serve the page to the browser
with this initial data. Using JavaScript, the browser occassionaly
makes AJAX requests to your server for updates to this element. (This
repetitive type of request is called polling.) Your server gets the
current data from the Yahoo! site. Then your server returns the new
value to the browser as the AJAX response. The JavaScript in the
browser changes the value in the HTML and then the user sees the
up-to-date value.
javascript : The Definitive Guide 5th Edition by Flanagan from O'Reilly
Section 15.7 (changing the contents of the document) and chapter 20
(AJAX).
After you read that you may want to check out an AJAX library like that
from Yahoo! UI or Matt Kruse. However by this point you will know how
to write your own ajax library minus the browser bugs.
Peter
Peter Michaux wrote:
Leslie Coover wrote:
http://finance.yahoo.com/
offers a wide range of financial data.
Would anyone have (or know where I can get) a sample of code that
I can use to link to a specific element of data (e.g., Last Trade) on http://finance.yahoo.com/ or similar Web site. I would like the information
to update as financial information changes (i.e., a "real time" link).
[...]
One way to do this would be this. The browser requests the page from
your server. Your server gets the data from the Yahoo! finance site by
a web service or screen scraping.
[...]
After you read that you may want to check out an AJAX library...
And if it is made available in a web page for your visitors, you may
want to find a good lawyer - commercial sites don't nomally like you
using their content without an agreement and probably payment. :-)
--
Rob
Thanks for reply
So (for sure) I can get this real-time data to my own Web site using
JavaScript?
What is ASP VBScript and ASP.NET all about?
A (probably more difficult, but actually better) option (for me) would be to
"script" directly into an MS Access db (on PC, no server issues). Do you
know anything about this? I know some Visual Basic code, could it be used
with some "scripting language"? I know very little about this but I am
assuming one can use JavaScript, ASP VBSScript and ASP.NET with HTML to do
various things, but I have no idea which works best for what, if they can be
used with code such as Visual Basic, or if there are other code sets that
are more effective.
Since I will need to put a lot of time and effort into leaning new codes I'd
like to set off on the right path, do you have any other suggestions besides
learning JavaScript? The reason scripting into MS Access would be better is
because it would make a better analysis tool, my objective is to analyze
financial data. But, if that is just too complicated I would settle for
"collecting " the data on my Web site.
"Peter Michaux" <pe**********@g mail.comwrote in message
news:11******** *************@b 28g2000cwb.goog legroups.com...
Leslie Coover wrote:
>http://finance.yahoo.com/
offers a wide range of financial data.
Would anyone have (or know where I can get) a sample of code that
I can use to link to a specific element of data (e.g., Last Trade) on
http://finance.yahoo.com/ or similar Web site. I would like the information to update as financial information changes (i.e., a "real time" link).
I have some experience with standard Web pages but no knowledge of JavaScript, perhaps you could point me in the direction of a few resources (Web articles, books, etc.) where I can learn to do the type of coding required to
achieve this type of link.
The following is a part of the HTML code on http://finance.yahoo.com/ that identifies "Last Trade" of "54.00"
Last Trade:</td><td class="yfnc_tab ledata1"><big>< b><span id="yfs_l10_vl o">54.00</span></b></big></td></tr><tr><td class="yfnc_ta blehead1" width="48%">
So if the user has the page open for a long time, you want the 54.00 to
change as the data on Yahoo! finance changes?
One way to do this would be this. The browser requests the page from
your server. Your server gets the data from the Yahoo! finance site by
a web service or screen scraping. You serve the page to the browser
with this initial data. Using JavaScript, the browser occassionaly
makes AJAX requests to your server for updates to this element. (This
repetitive type of request is called polling.) Your server gets the
current data from the Yahoo! site. Then your server returns the new
value to the browser as the AJAX response. The JavaScript in the
browser changes the value in the HTML and then the user sees the
up-to-date value.
javascript: The Definitive Guide 5th Edition by Flanagan from O'Reilly
Section 15.7 (changing the contents of the document) and chapter 20
(AJAX).
After you read that you may want to check out an AJAX library like that
from Yahoo! UI or Matt Kruse. However by this point you will know how
to write your own ajax library minus the browser bugs.
Peter
"Leslie Coover" <lc******@cox.n etwrote in
news:PF******** ****@newsfe15.l ga:
A (probably more difficult, but actually better) option (for me) would
be to "script" directly into an MS Access db (on PC, no server
issues).
So, what you *really* want to do is collect the information in a DB. In
that case, forget about Javascript--you will be better off using a server-
side scripting language such as ASP or PHP or ColdFusion. Those languages
offer direct access to the web (to scrape the number you want off Yahoo's
page) as well as direct access to a DB (to store the number). You'd set it
up to "poll" Yahoo as mentioned above, and just let the numbers dribble
into your DB.
RobG wrote:
Peter Michaux wrote:
Leslie Coover wrote:
http://finance.yahoo.com/
>
offers a wide range of financial data.
>
Would anyone have (or know where I can get) a sample of code that
>
I can use to link to a specific element of data (e.g., Last Trade) on
> http://finance.yahoo.com/ or similar Web site. I would like the information
to update as financial information changes (i.e., a "real time" link).
[...]
One way to do this would be this. The browser requests the page from
your server. Your server gets the data from the Yahoo! finance site by
a web service or screen scraping.
[...]
After you read that you may want to check out an AJAX library...
And if it is made available in a web page for your visitors, you may
want to find a good lawyer - commercial sites don't nomally like you
using their content without an agreement and probably payment. :-)
I'm innocent. I was just answering the question. :)
Peter
Leslie Coover wrote:
>
Since I will need to put a lot of time and effort into leaning new codes I'd
like to set off on the right path, do you have any other suggestions besides
learning JavaScript?
Don't mess with ASP, PHP, etc for the server side. Use Ruby on Rails.
Don't use the JavaScript that comes as part of Rails. Don't even use it
when it starts to look easy and friendly.
Alternatives for Ruby/Rails are Perl/Catalyst or Python/TurboGears.
However Rails is the original and the others are probably further
behind in development. I haven't tried them
Don't mess with Flash on the client side. Just use HTML/CSS/JavaScript.
Use MySql or Postgre for the database. I haven't used Postgre but the
Postgre people definitely think they are better then the MySql people.
Get the Pragmatic Programmers books for Ruby and for Ruby on Rails.
Get the O'Reilly books for HTML, CSS and JavaScript.
Make sure you validate your HTML, CSS and use jslint.com to check your
JavaScript.
-Peter
Peter Michaux said the following on 10/26/2006 2:11 AM:
Leslie Coover wrote:
>Since I will need to put a lot of time and effort into leaning new codes I'd like to set off on the right path, do you have any other suggestions besides learning JavaScript?
Don't mess with ASP, PHP, etc for the server side. Use Ruby on Rails.
Biased are we?
Don't use the JavaScript that comes as part of Rails. Don't even use it
when it starts to look easy and friendly.
Absolutely.
Alternatives for Ruby/Rails are Perl/Catalyst or Python/TurboGears.
However Rails is the original and the others are probably further
behind in development. I haven't tried them
Then how can you say they are "probably behind"? They may be, they may
not be but without ever seeing them you can't even proposition which is
true.
If your argument for Ruby is that it was first, then you should be
biased towards ASP on the server as it was first.....
Don't mess with Flash on the client side. Just use HTML/CSS/JavaScript.
And worry with all the browser differences? Flash doesn't suffer that
limitation.
Get the O'Reilly books for HTML, CSS and JavaScript.
Not sure about the HTML and CSS, but if the O'Reilly books on CSS and
HTML are of the same quality as the O'Reilly book on JS then avoid all
three of them. The least bad JS book out is David Flanagan, as referred
to in the group FAQ.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javas cript FAQ - http://jibbering.com/faq
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Randy Webb wrote:
Peter Michaux said the following on 10/26/2006 2:11 AM:
Leslie Coover wrote:
Since I will need to put a lot of time and effort into leaning new codes I'd
like to set off on the right path, do you have any other suggestions besides
learning JavaScript?
Don't mess with ASP, PHP, etc for the server side. Use Ruby on Rails.
Biased are we?
Yes. I've tried some other ways of developing web pages (Perl and PHP)
and like Rails the best.
Alternatives for Ruby/Rails are Perl/Catalyst or Python/TurboGears.
However Rails is the original and the others are probably further
behind in development. I haven't tried them
Then how can you say they are "probably behind"? They may be, they may
not be but without ever seeing them you can't even proposition which is
true.
I have looked at TurboGears briefly. It looks like it is behind and in
certain areas may never catch up because Python doesn't have certain
features Ruby does. These Ruby features are part of what gives Rails
it's magic. There are probably things in TurboGears that are better
than Rails. Perl is older so I imagine that it would have an even
harder time competing with Ruby. There are Cake and other similar PHP
frameworks to consider too. They are all cloning Rails for a reason.
I'm sure someone will out do Rails soon or have already but the huge
Rails community examining the code and improving it is an important
part of picking it as a framework.
Peter
"Jim Land" <RrrrFfffTttt(N O)@(SPAM)hotmai l.comwrote in message
news:Xn******** *************** **********@216. 168.3.44...
"Leslie Coover" <lc******@cox.n etwrote in
news:PF******** ****@newsfe15.l ga:
>A (probably more difficult, but actually better) option (for me) would be to "script" directly into an MS Access db (on PC, no server issues).
So, what you *really* want to do is collect the information in a DB. In
that case, forget about Javascript--you will be better off using a server-
side scripting language such as ASP or PHP or ColdFusion. Those languages
offer direct access to the web (to scrape the number you want off Yahoo's
page) as well as direct access to a DB (to store the number). You'd set
it
up to "poll" Yahoo as mentioned above, and just let the numbers dribble
into your DB.
Correct
I know the word "scripting" is a very general word in IT, I may be misusing
it.
Is there one scripting language that you would recommend that would work
with MS Access (i.e., VBA) to create interconnectivi ty to remote
Web sites, somewhat like the relationship between HTML and JavaScript?
If I want to concentrate on one language should I choose ASP, PHP,
Coldfusion or
VBScript or something else?
I plan to use this at home, my connection to the Internet is through a
local service provider.
Thanks! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Stanimir Stamenkov |
last post by:
Here's an example:
<form action="bogus" method="post">
<p>
<a href="prev.cgi"><input type="submit"
name="prev" value="< Back"></a>
<a href="next.cgi"><input type="submit"
name="next" value="Next >"></a>
</p>
</form>
|
by: WittyGuy |
last post by:
Hi all,
Though I know the concepts of both abstract class & virtual
function (like derived class pointer pointing to base class...then
calling the function with the pointer...), what is the real
implementation usage of these concepts? Where these concepts will be
used. Please provide some illustration (real-time), so that it can be
easily comprehended.
Thanks,
wittyGuy
|
by: RobG |
last post by:
A little while ago I opined that do/while loops are harder to
read than for loops, and therefore I preferred using for loops.
However, it was pointed out that do/while has significant
performance benefits as evidenced by:
<URL:http://www.websiteoptimization.com/speed/10/10-2.html>
(There's a bug in the page, testLoop is both a function name
and the name of the form but if you download the page & rename
|
by: Russ |
last post by:
I'm interested in setting up a web page where live data can be
displayed in real-time on the web page.
For example: I would like to display a (nice looking) graph of some
data value versus time and have the graph update every second without
the user having to do anything like hit a refresh button. The data to
plot is readily available from an application running on the server - I
can expose it in whatever way is needed (currently easily...
|
by: Raymond Hettinger |
last post by:
Proposal
--------
I am gathering data to evaluate a request for an alternate version of
itertools.izip() with a None fill-in feature like that for the built-in
map() function:
>>> map(None, 'abc', '12345') # demonstrate map's None fill-in feature
The motivation is to provide a means for looping over all data elements
| |
by: Fred Exley |
last post by:
I have a traditional application using a database and procedural code that
works fine. I'm re-writing it using the OOP methodology, just to see how
this may be the better way to do things. I think I've got a pretty good
grasp of the three pillars of OOP, and have objects properly defined using
inheritance, encapsulation, etc. as appropriate. Now it's time to do some
processing using real data, and the data resides on a relational...
|
by: Henry |
last post by:
Does anybody have a real-world sample of buiding a treeview control using
data from database tables? All the sample code I have found either builds
the treeview manually or uses a file directory as the sample.
I have trouble translating those samples to working with data coming from my
database, so I am hoping that someone could show me a sample of code that
builds a tree from say a dataset.
Many controls you can bind to a datasource,...
|
by: Martin Hughes |
last post by:
Hi guys,
I was wondering if anyone could give me some advice.
I am looking to develop an ASP.NET application that will enable several workstations to access real time telemetry data received from a vehicle on a track.
The data flow would be as follows:
|-- Workstation 1
|
by: Kurt Mueller |
last post by:
Am 08.10.2008 um 06:59 schrieb Hendrik van Rooyen:
OK, this is gives an impression of SPEED.
In your application the REAL-TIME requirements
are isolated and implemented in the custom controller.
And the HMI which has to be fast enough (SPEED, not HARD-REAL-TIME)
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |