How to add ajax to customer sales order history to Magento 1.9

     

We have some customers that place a lot of orders (10 a day) and so their order history takes a long time to load. I am trying to add a date range filter to help them to find an order.


The problem I have is setting up the ajax so the date range is passed to the new phtml file (historytable.phtml) which just replaces the existing table.


Thanks. Any help gratefully received.


Config.xml


          0.1.0                standard      SPV_Historyajax   historyajax                     historyjax.xml             


Module XML


            true   local           

Script in my sales/history.phtml