Webmaster Key - Discussion Forums


Welcome, Guest. Please login or register.
Did you miss your activation email?
February 09, 2012, 06:57:15 PM

Login with username, password and session length
Welceome to Forums!

Important information for guests and new members:

In order to understand the full benefits of becoming an active member of this forum, please review the following information on guest and new member restrictions. These forum changes have been prompted by an overwhelming and unreasonable amount of bot postings and incoherent guest spam messages. We wish to prevent these events from happening in the future and make our community a more comfortable place for all of our members.

For guests:

Guests are not allowed to open new topics, polls, or posts attachments.
If you wish to open up new discussions on this forum, we encourage you to register.

For new members:

New members with less than five posts are not allowed to modify additional profile information such as avatars, contact information, biographies, and signatures. However, new members are encouraged to post their own topics or reply to topics initiated by other members. Become active on the forums and 5 posts should be an easy task!

We are a diverse community with members from all over the world. We encourage new ideas and interesting conversation. Do not be afraid to post webmaster/computer-related questions or problems, as our active members are always willing to help when they are able. Interested? Join us.

+ Webmaster Key Forums
|-+ Webmaster Corner
| |-+ Site Design and Web Authoring
| | |-+ Coding Talk
| | | |-+ FireFox Extension Development Question
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Stumble Upon! Digg It! del.icio.us! Add to Technorati! ReddIt!  Send this topic Print
Author Topic: FireFox Extension Development Question  (Read 2521 times)
Andy
Administrator
Veteran
*****
Posts: 5 752



« on: January 19, 2009, 11:58:31 AM »

What I want to do is code a FireFox plugin / extension to display intraday charts of stock prices extracted from a Dynamically Updating Java Applet (one that is already running on a web page). Is this possible?

Sure it may be difficult to do, but I just need to know if it is possible at the moment since I don't know much about how Java works. What I don't want to do is continually poll a URL.

Firefox extensions seem to use Javascript to modify the page or new window, so I guess I will use Javascript to inspect the DOM of the web page at regular intervals with a timer or implement a listener function on incoming internet data.

Very early days so far, I only worked through a tutorial of how to make a "hello world" plugin so far.

So if you have any tips on how to go about doing this, please comment  Smiley
Report to moderator   Logged

Manu
Key Keeper
Sr. Member
****
Posts: 437


« Reply #1 on: January 19, 2009, 06:09:16 PM »

You might find this interesting - http://www.madan.org/tickertool/

It really depends. First you should decide where will you display the charts. If you want to display indices, you much decide which one. It should be possible as there are hundreds if not thousands of windows vista sidebar widgets which yields just the same. Secondly, if individual stock's chart, then how do a user search for the same etc. etc.

The professional traders I know use their sophisticated software. The less frequent Internet savvy traders that I know mostly use Google finance or their fav. websites to track and see intraday charts. They use firefox search engine plugin for their fav. tool.

Report to moderator   Logged
Andy
Administrator
Veteran
*****
Posts: 5 752



« Reply #2 on: January 19, 2009, 11:32:07 PM »

Thanks for the suggestions but I want to code my own so I can access and process the data stream with code.

An example of an existing solution: http://www.sharescope.co.uk/sharescript.php
Report to moderator   Logged

Andy
Administrator
Veteran
*****
Posts: 5 752



« Reply #3 on: January 20, 2009, 01:33:09 PM »

It seems like it may not be possible to grab the text from a Java Applet since it is not part of the visible code or in the DOM.

So it may require sniffing the HTTP stream of data delivered to the browser from the server. Then I would expect the data to be encrypted in some way. Oh dear! Also, I had the idea to hack the JAVA runtime code if it is open source and recompile my own version that outputs text to another application, that would be the ideal way to do it I think.

Also a super computer could be used to perform OCR (Optical Character Recognition) on rapidly changing and scrolling images showing text to do what I wanted.

Grabbing delayed stock price results is probably easier since I used to download text files of 15 minute delayed prices in a list format from a particular site. But 15 minutes is a long time when you are day trading.

I may have to give up on this idea, but at least I got some idea about how you create a FireFox extension/plugin.

Update: it's possible by finding the data in memory. But the data may change location with each new instance maybe? So your code could scan the computer memory for a pattern that signals the start of the data that you are looking for. But this would be not be possible in a FF extension.
« Last Edit: January 22, 2009, 09:43:59 AM by Andy » Report to moderator   Logged

Pages: [1] Go Up Stumble Upon! Digg It! del.icio.us! Add to Technorati! ReddIt!  Send this topic Print 
+ Webmaster Key Forums
|-+ Webmaster Corner
| |-+ Site Design and Web Authoring
| | |-+ Coding Talk
| | | |-+ FireFox Extension Development Question

Jump to:  
« previous next »


Our Partners
RelmaxTOP Ranking System Web Hosting RelmaxTOP Ranking System
Staff Sites
12Noon[12Noon Gallery] Andy[Urgentclick]
Tamuril[Tamuril's Digital Art Exhibit] Sensovision
Powered by MySQL Powered by PHP We are hosted by Relmax Inc. |Our Privacy Policy | Sitemap
Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC
Forum design by Tamuril © 2005.
Valid XHTML 1.0! Valid CSS!