Ciao a tutti, vorrei richiamare una Function che mi ritorni un valore da questo script:
codice:
<script type="text/javascript">
$(document).ready(function(){
// CASE 1: without callback
// $(".flying").flytoCart();
// CASE 2: with callback
$(".flying").flytoCart( function(){ //do something to add the product to the shopping cart
//alert(this.id + " add to the shopping cart"); document.getElementById("pippo").innerHTML='CIAO'
/*
// CASE 3: with callback and overwrite default options
$(".flying").flytoCart( function(){
alert("Finish with "+this.id);
},
{velocity:10000, destination: '.shoppingcart'} );
*/
});
</script>
facendo in modo che al posto ti CIAO scriverò il codice che mi sono ricavato dalla Function nel Vb.
Grazie a tutti.