0

Hi All,

We 've 20 promotional websites and we want to centralize the contact us form.
We have contact us form that is kept in Server 2 and all the other web sites kept in server 1, now i need to include the contactus form server1 inside server 2 websites.
For this i am using PHP Curl function to include the cross domain file (contact us Form).
Now the problem is when i submit the form i want to call a ajax function to save the details in DB and to send mails, but ajax function is not getting triggred in the form.

Please find the attached code illustration

Thanks and Regards,
Deepak ajax_call2

2
Contributors
1
Reply
19
Views
4 Years
Discussion Span
Last Post by radow
1

Hi. If you try send data with some domain on to another domain, then this can't do in JavaScript. You must to use JSONP or iframe, for crossdomain requests.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.