navi17 5 Junior Poster

Hello,

I need to post data to another server using jquery.

Here is the code i am using

$.ajax({
	                            url:"https://www.thewiseagent.com:443/secure/webcontactAllFields.asp",
	                            type:'POST',
								data:"ID="+$ID+"&Source="+$Source+"&notifyCc="+$notifyCc+"&notifyBcc="+$notifyBcc+"&noMail="+$noMail+"&CFirst="+$first+"&CLast="+$last+"&Phone="+$Phone+"&Fax="+$Fax+"&CEmail="+$CEmail+"&Message="+$message,
								   success: function() {
											//window.location.href = "http://www.petlooza.com";

      									}
	                               });

i got error (302 object moved) in case of firefox/chorme although data is inserting.. but in case of IE data is not entering in external database. In IE i got a Access denied error.

Can anyone have alternative?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.