I am new to magento module development. I want to request ajax call from magento backend.. Here I made module... Here is the screenshot
I have fields like this:
<tpropay translate="label" module="tpropay">
<label>Tpro3</label>
<sort_order>670</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>0</show_in_store>
<comment><![CDATA[
<button class="scalable" onclick="return check(); ">Sync Products Now</button> ]]></comment>
<fields>
<active translate="label">
<label>Enabled</label>
<frontend_type>select</frontend_type>
<source_model>adminhtml/system_config_source_yesno</source_model>
<sort_order>1</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>0</show_in_store>
</active>
</fields>
</tpropay>
Now I want ajax call when user click on button? Confused about how to include javascript and send ajax call... Any help would be appreciated