Choices. New widgets. New problems.

As you might have noticed by now, there are new versions of the Euro Stocks widget. The old (version 0.6) one has been entirely replaced by version 1.0, which doesn’t share any of the old code (except maybe for the update functionality). It’s been built from ground up. You might wonder why there no longer is an intraday option, why the stock codes have been changed and why the preferences are no longer global.

First, I would like to elaborate on the functionality of the original (0.6) Euro Stocks widget. I’ll break it up in two parts: the chart of the stocks’ performance (be it intraday or history) and the risers/fallers.

The chart of the 0.6 is pulled from an address of the following type (this is one for a historic chart):
http://charts.production.euronext.com/h_chart.html
?ISIN=NL0000303600
&ID_EXCHANGE=3
&QUALITY=DLY
&DISPLAY=1
&GRID=1
&PERIOD=4
&VOL=1
&SCALE=1
&SUPP_INFO=1

Now I’m not going into details (I guess you can figure them out for yourselves, as I did), but this one was easy to “reverse-engineer”. So I did and created version 0.5. To emphasize the point I’m making: this is just an image the widget pulls from a webserver.
The reason version 0.6 gives a lot of “Error in chart” for custom stocks, is because of the part “&ID_EXCHANGE=3″. Some stocks are listed at several indices with the same ISIN code. They can only be recognized from eachother by an extra identifier: the MEP code, which is 1 for PAR (Paris), 2 for AMS (Amsterdam), 3 for BRU (Brussels) and 5 for LIS (Lisbon) (don’t ask me why they skipped 4). Originally, the Euronext webpage would only give an “Error in chart” response when the ISIN code was actually listed at multiple indices, but not for single-listed stocks. Since a couple of months, it responded with an error for any custom ISIN code (except for the indices).

The Risers/Fallers however, are an entirely different story. What the widget does (in a nutshell) is get the webpage of the selected index by XMLHttpRequest, parse the responsetext to cut out the risers/fallers table, put that string into a hidden div so the HTML renderer recognizes the table (and nested tables) and then, by using a reference to the now recognized table nodes, cut out the risers table, respectively the fallers table and put both on their own div, allowing them to be hidden or shown.
Now, whether you understood (part of) the above or not, what it boils down to: the risers/fallers functionality of the 0.6 is entirely dependent on a consistent Euronext webpage. And guess what? It isn’t in time. So I either had the option to rewrite the explained functionality (particularly the “parse the responsetext to cut out the risers/fallers table”) or redesign the widget entirely.

So there I was, with two problems. One: showing a custom stock always resulted in “Error in chart”. Two: the need to update the widget every time the Euronext webpage changes to allow the risers/fallers to display.
Now, although I’m more than happy to make these widgets (I’m however not the least interested in stocks), I wasn’t planning on making it my daily business, keeping them updated on a regular basis.

The thing I needed to make a widget work the way I wanted it to (using up-to-date values, to draw a graph live in Dashboard) wasn’t found easy. That might be because I’m not “into” stocks. But after some looking around on the WWW I finally found what I needed at Yahoo! Finance. Downloadable lists of comma separated values (“csv’s”), of the current as well as historic rates.

I decided to entirely redo the design of the widget, with a user interface that would be “like” Apple’s (Quote’s) Stocks widget, but in my “words”. Now that’s exactly what version 1.0 has become. It lacks one major thing: intraday results. That is because I haven’t found a data source yet that offers intraday trading results on the internet for free. If you know one, let me know!

So the major difference, between 0.6 and 1.0, is the “live” drawn chart. In 0.6 it’s “only” an image, pulled from a Euronext webserver, but in 1.0, it’s a client-side created graph. This means that as long as I don’t find an intraday data source, the widget won’t incorporate an intraday chart. It just won’t. However, I’m almost ready to post the new Euro Stocks Chart, which will (still) feature an intraday chart, the custom ISIN codes will work again (allowing you to choose the index it is listed at), it will remember the last X custom ISIN codes and will allow you to open multiple instances of itself and remember the preferences for each of them.

So, what it comes down to: new widgets, new problems, still no absolute aggregate of all functions. Stay tuned.

Leave a Reply


lowe's free printable 10 coupons blogs

3 by 2 printable labels

crossword puzzles printable online

free printable plasp daily programs

printable bowflex instruction manual

free printable valentine's cards for kids

word problem worksheets printable

printable coloring sheets on disney characters

printable christmas tree coloring pages

free blank printable place cards templates

printable valentines for wife

printable word search for little kids

printable handout on hypertension

free printable christmas puzzles and trivia

preschool printable mazes

lite brite printables

delta planer joiner printable coupon

free printable decoupage for card makeing

virginia hotel walk-in discount printable coupon

printable spanish ornaments

printable apple border

uttrakhand almora printable maps

espn printable tournament bracket

daily house cleaning chart printable

free printable harmonica tablature

free printable brats borders

articles of confederation printables

free printable worksheets for kindergarten

setting printables

printable cornhole brackets

new home printable cards

printable color by numbers coloring pages

printable activities for literacy centers

printable tags online

nhl playoff scoring printable box scores

printable job application target

free printable two's lesson plans

calendar 2006 free printable large

free kids dental hygiene printables

free alphabet train letter printables

printable handicapped placard

printable adhd test

free math fact flash cards printables

k-12 printables

chirstmas countdown printables

free printable december 2008 calendars

free printable handwriting sheets

printable picture finds

free printable military greeting cards

easy printable guitar music

easy free pumpkin patterns printable

taylor swift printables

tide free printable coupons

printable letterheads

free printable thank you cards personalized

free online printable travel games

spanish choral reading printable activities

free tinker bell printable coloring pages

printable cross stitch graph

printable self evaluation depression

printable trig tables

coin printables for kids

printable 2008 ncaa basketball brackets

columbus ships printables

free printable calanders 12 months

printable photo folder

printable cardboard

manufactors printable coupons

printable murder mystery stories

printable dental cartoon characters

printable ged study sheets for government

printable percent off harbor freight coupon

littlest pet shop printable birthday invites

free printable la times crossword puzzles

printable wall poster

gymboree printable coupons codes

free printable diagram of skeleton

bill form free printable sale

printable tanograms

africa map printable

free printable bible graphics for children

printable fill in puzzles pets

printable good behavior tickets for children

pepperidge farm printable cake coupon

game stop printable

printable food pyramid trackable

custom name preschool printables

free super mario printable birthday invitations

printable tap drill charts

corduroy roy printable coloring page

pre-school and printables

make a printable coupon

teacher printable wordplay classifying

breast self examination printable

mini yearly printable calendar

printable lyrics bird with broken wing

printable test for children

wanted printable

awards for love romance printable

printable narritive poster or chart

printable ny times crosswords

free printable frog coloring pictures

free printable eastern color book

printable coupon for arbys 15108

printable eagle patterns

printable bookmarks monochrome

printable branson mo map

blank printable venn diagram

printable christmas crafts

cristmas printables

christmas certificate printable

printable power of attorney papers

free printable wall art

free origional letter people printables

how to draw a nose printable

philadelphia cream cheese printable coupons

printable fireman badge templates

printable large grid graph paper

free printable photo firefighter birthday invitations

fee printable organizer

printable iowa tax form

florida panthers printable schedule

printable b w flag of germany

perforated printable invitations

pokemon coloring sheets and printables

printable personanlized childrens storybooks

printable diet diary

fun educational printable activities

kids dyas of the week printables

free printable patterns of trees

printable coordinate planes first quadrant

printable bowl games schedule

printable retail coupons gymboree

printable acrylics art lesson

free printable holiday greetings

printable valintine cards

easter and egg and printable

free printable coloring pages of sonic

uno printable coupons

goodnight moon printable

printable plastic canvas 7 count graph

bumblebee printables

printable pampers diapers coupons

merry christmas printable thank you note

2009 mens ncaa printable bracket

printable 4th grade eog sample

printable coupon for palais royale

joann fabrics 50 off printable

free printable personalized christmas invitations

printable english lessons

free printable hexagon templates

printable cleaning list

the body shape or outline printables

free online printable address labels

waffle house printable coupons discounts virginia

printable free baby card

nordstroms printable coupon

printable shredded wheat coupons

make a printable coupon

quicken printable check register

free printables from megraw hill

printable picture of texas flag

printable circuit city coupon code

printable picture subtraction problems

home made birthday gift card printable

printable coupons whole foods

printable hard word search puzzles

printable euchre score cards

free printable santa clause color sheets

printable micro cache log

doritos printable coupons

danny and sandy printable pictures

music free printable lesson

free printable birthday cards from kids

free printable educational games for children

free teaching printables about bears

elementary writers notebook free printables

free printable yahtzee pad

printable pictures for infants

wolf printable coloring pages

printable coupon for ovaltine

hardee's printable coupon

free printable written doctors excuses

free printable piano sheet

reliable printable coupons

printable worksheets on non-fiction text features

children's magical printables

free printable office business forms

birthday cake coloring page printable

chinese dragon printable pages

printable sudoku solver

printable ncaa 2008 tournament bracket womens

free printable schedule calendar

national geographic printable arctic hare

office printables

2008-2009 printable school calendar

printable navy seal workout

cashmere printable coupons

printable graduaton cards

printable xmas pictures for colouring