I was writing a little script to make my Click to Call product talk nicely with JQuery and encountered many problems – so I thought I would put some of the problems and my solutions to them.
Firstly, the goal was to create a ‘dynamic’ version of the click to call service – which previously has been hardcoded using element ID’s with remote javascript.
So the first goal was removing all that and using classes and relying on the DOM to make sure I had the correct elements selected.
The Click to Call system uses a timer with a curl request to the switch to monitor progress of the call – so I needed to make sure I had state and kept track of which ‘click to call’ form was being used.








