ejqcalculator Yii framework extension to support jquery jq-calculator plugin.


Extensions for the yii framework to support jquery jq-calculator plugin.

  • author Dimitrios Mengidis
  • version 0.1.2
Jquery plugin
  • JQ-Calculator formula track.
  • 2011 Andreas Geissel.

"Sometimes the fields of a form are part of a chain of a calculation. For example, when the price of an order position changes, its price including tax should be recalculated. Then the total price (including other additional costs) should also be updated. This means each input element (text, select box, ...) needs an onChange (or onBlur) function that recalculates the new results and triggers other (dependent) fields to update themselves."

			<input type="text" name='l[0]'/>
			<input type="text" name='r[0]'/>
 			<input type="text" id='sum0' />
 			<input type="text" name='l[1]'/>
 			<input type="text" name='r[1]' />
 			<input type="text" id='sum1' />
 		<th colspan='2'>
         Total Sum
 			<input type="text" id='total'/>

<?php $this->widget('application.extensions.EJqCalculator.EJqCalculator', array(
       '#sum0'=>'{{l[0]}} * {{r[0]}}',
       '#sum1'=>'{{l[1]}} * {{r[1]}}',
       '#total'=>'{{#sum0}} + {{#sum1}}'

For more information on how to use this extension please visit the EJqCalculator demo.

Version 0.1.1
  • Documentation added.
  • Change of the properties passed to widget structure.
    Version 0.1
  • Initial release.
1 0
1 650 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: User Interface
Developed by: tydeas_dr
Created on: Mar 31, 2011
Last updated: 10 years ago


show all

Related Extensions