$.ajax({ type: "POST" , url: "GetNewHash.aspx" , data: { orderid : $("#orderid").val() , amount : $("#amount").val() , dtnow : $("#time").val() , Gateway_MerchantConfigID : $("#Gateway_MerchantConfigID").val() } , async: false , success : function (response) { $("#hash").val(response); } });
- jake On Fri, Sep 5, 2008 at 3:36 PM, nananannae2 <[EMAIL PROTECTED]> wrote: > > can someone help me get this to work please? i need a post to a page > that returns a string to set but it's my first time using it > > $("#hash").val( > $.ajax({type: "POST" > ,url: "GetNewHash.aspx" > ,data:"orderid="+ $("#orderid").val()+"&amount="+ $ > ("#amount").val()+"&dtnow="+ $("#time").val() > +"&Gateway_MerchantConfigID="+ $("#Gateway_MerchantConfigID").val()" > ,async: false}).responseText); >