ok i am working with wp-ecommerce and i want to change a function in my theme to be an ajax call. I am curious as to how to do that with this form.
<form name='change_country' id='change_country' action='' method='post'>
<?php echo wpsc_shipping_country_list();?>
<input type='hidden' name='wpsc_update_location' value='true' />
<input type='submit' name='wpsc_submit_zipcode' value='Calculate' />
I have looked around and found some info about it. here is the link to the page for the form.
Now i am wondering if it can even be changed to an ajax call.
So this is what i am trying to accomplish:
1st step: onchange event-no problem, i can do that.
2nd step: when it changes do i send the post variables via ajax to the same form? basically document.getElementById('whatever').value? Then have the ajax call the requesting page to update the post variables required for wp-ecommerce? this is where i am a little lost as you can tell.
basically i want it to update the post variables on the wpsc-shopping_cart_page.php page without refreshing.
Thanks for looking