tags:

views:

28

answers:

0

hi, in my page i have two places i want to use ajax request but when i pressed one of them the second's loading starts too... my codes like this, i want to work them when the related form submited.

jQuery(document).ready(function(){

  jQuery('form#comment').submit( ajaxProcess2 )

        jQuery('div#alert').ajaxStart(function (){
        jQuery('div#alert').html('<img src="img/loader.gif"/> receiving')
        })
  jQuery('form#rateform').submit( ajaxProcess )

        jQuery('div#rateresult').ajaxStart(function (){
        jQuery('div#rateresult').html('<img src="img/loader.gif"/> sending')
        })

        });