Stock Picker

Stock Picker

After checking the Ajax readyState, a JavaScript function loads the initial set of stocks from an XML file. Once a type of stock is selected, the second 'Select Stock' dropdown is populated based on stock type. The main data at the bottom defaults to first stock listed. Once a different stock is selected the javascript reloads the stock detail by sending the ajaxSendRequest, to call the PHP file and load the stock detail from each stocks' individual XML file.

Select type:

Select stock:

Share price:
Market cap:
Trading volume:
% change:
P/E ratio: