.ajax response isn't retained
I've got a problem which has been exercising me now for a couple of hours.

I'm using AJAX to update a div. The response div updates for a second then reverts to its original value. However, when I uncomment the alert in line 4 below, everything works perfectly and the response div updates correctly.

Here's my code:

    <script type="text/javascript">
    	jQuery(document).ready(function($) {
    		$('#bidform-0').change(function(){		
    			//alert('$bidvalue');
    			var $bidvalue=$('#your-bid-0').val();
    				jQuery.ajax({
    					url:"<?php bloginfo('wpurl'); ?>/wp-admin/admin-ajax.php",	   
    					type:'POST',
    					data:{action:'my_special_ajax_call', bidvalue:$bidvalue },
    					async:false,
    					success:function(results)
    					{
    					//alert(results);
    					$("#rem-0").html(results);
    					}
    				});
    			}
    		);
    	});								  
    </script>


    <form id="bidform-0" name="bidform-0" action="">
    Enter: <input type="text" name="your-bid-0" id="your-bid-0" /><input type="submit" value="Bid" /><input type="hidden" name="post-id" value="25" />

The PHP that gets called:

    function implement_ajax() {
    if(isset($_POST['bidvalue']))
    {
    	$current_user = wp_get_current_user();
    	$currentuser = $current_user->ID;
    	$currentbids = get_user_meta( $currentuser, 'bids', true );
    	$currentbids--;
    	update_user_meta( $currentuser, 'bids', $currentbids );
    	echo $currentbids;
    	die();
    	} // end if
    }

You'll note that I'm using Wordpress 3.1...

Grateful for any thoughts.

.ajax response isn't retained
===

I've got a problem which has been exercising me now for a couple of hours.

I'm using AJAX to update a div. The response div updates for a second then reverts to its original value. However, when I uncomment the alert in line 4 below, everything works perfectly and the response div updates correctly.

Here's my code:

    <script type="text/javascript">
    	jQuery(document).ready(function($) {
    		$('#bidform-0').change(function(){		
    			//alert('$bidvalue');
    			var $bidvalue=$('#your-bid-0').val();
    				jQuery.ajax({
    					url:"<?php bloginfo('wpurl'); ?>/wp-admin/admin-ajax.php",	   
    					type:'POST',
    					data:{action:'my_special_ajax_call', bidvalue:$bidvalue },
    					async:false,
    					success:function(results)
    					{
    					//alert(results);
    					$("#rem-0").html(results);
    					}
    				});
    			}
    		);
    	});								  
    </script>


    <form id="bidform-0" name="bidform-0" action="">
    Enter: <input type="text" name="your-bid-0" id="your-bid-0" /><input type="submit" value="Bid" /><input type="hidden" name="post-id" value="25" />

The PHP that gets called:

    function implement_ajax() {
    if(isset($_POST['bidvalue']))
    {
    	$current_user = wp_get_current_user();
    	$currentuser = $current_user->ID;
    	$currentbids = get_user_meta( $currentuser, 'bids', true );
    	$currentbids--;
    	update_user_meta( $currentuser, 'bids', $currentbids );
    	echo $currentbids;
    	die();
    	} // end if
    }

You'll note that I'm using Wordpress 3.1...

Grateful for any thoughts.
