Creating BSE dashboard using AJAX - Free BSE stock ticker
We all have seen stock tickers. Some of us even wanted to create one for our personal use or may be use on web sites.
But sometimes it gets irritating to wait for your favourite stock to come up and keep glued to the ticker just to wait for the stock.
We also were so we decided to have a complete dashboard showing all details and refreshed without refreshing the page.
As of now we have only implemented BSE indexes detail.
So we come up with an idea.
To use knowledge
To use technolgoy
To have data dashboard with all the details automatically refreshed
Without a need to have heavy applets, requiring too many parameters passing.
We arrived at a solution and we are sharing it as out technology and knowledge sharing initiative.
You can see it live here Bhavya IT BSE dahsboard
Once implemented this is how it will look
Join the group and download the files (bsedashboard.html, date.js, prototype.js, up.gif, down.gif), keep them in same folder and click bsedashboard.html, it will work independently even on your local machnine.
It only works in IE due to cross domain access issue.
If it does not appear you need to do following to allow data sources access across domains
Open your IE
Go to Tools -> Internet Options
Select Security tab
Select Custom Level at the bottom
Go to Miscellaneous section and check Enable under Access data sources across domains
When running on IE you may get active content security alert something like
When you click allow blocked content you will see an alert
Click yes and you are ready to run your BSE dashboard
Join the group and download complete working sample. Just open the html and your BSE dashboard will start working right away.
If you use it in any form we have no issue but will appreciate comments, links on your web site, active participation in discussion to make it better and more user friendly.
Complete code listing for your quick reference *