JavaScript file to call PHP script

I have an app that must communicate to a particular database server. I've built a PHP script that does this nicely. Data is sent to it and it sends data back. But because of the Same Origin Policy it doesn't work unless the app is running from the same server. In order to get around the Same Origin Policy I need some kind of a JavaScript solution. Ideally a simple JavaScript file (.js) that calls the php script URL, sending and receiving the data.

I don't necessarily need a full code solution just the steps required to solve this problem.

Find attached the php script.

Keahlian: Javascript, PHP

Lihat lebih lanjut: javascript call php, origin it solution, find javascript, need js file, javascript full url, call url script, script call url, receiving file, script php file hosting, app simple server full, script steps, simple work order script, simple url file, url call javascript, javascript problem solution, simple javascript database, php code call url, solve javascript, script php file hosting ftp curl, file sending

Tentang Pemberi kerja:
( 59 ulasan ) Vernon, BC, Canada

ID Proyek: #4971669

Diberikan kepada:


Hi, this is simple project and can be done easily. You have to use JSONP to load data from PHP files for cross-domain. Do it yourself or I can do it for you. Thanks

$15 USD dalam 1 hari
(0 Ulasan)

19 freelancer menawar dengan rata-rata $23 untuk pekerjaan ini


Hi, I can help you ... Let us start 1- we can make Jquery script that will call php file and return output 2- we can connect directly to DB if we can by change IP

$30 USD dalam 1 hari
(64 Ulasan)

Hello, I can make it work for you ! Lets talk if you are interested with my bid. Thank you so much !

$30 USD dalam 1 hari
(191 Ulasan)

Hi, I have only one word for you: AJAX! :) YOU ca-n call that pop file with Ajax and use the Echo-ed respinse Daniel

$25 USD dalam 3 hari
(50 Ulasan)

Easy, we just need to use AJAX, and pass the cookie value via PHP. I assure I can complete this less than 1 day, I'm not cheap like others but very reasonable price. No upfront payment is required, I provide 100% Lebih banyak

$30 USD dalam 1 hari
(14 Ulasan)

Hello cmatrixvw, I have read your requirements, I'm a PHP Expert Developer and I am very confident to do this project. I guarantee complete satisfaction before payment. Please check PM for more details, Thank you!

$20 USD dalam 0 hari
(31 Ulasan)

Oh I got it, we need to put jQuery AJAX jo fix this issue, I can do this for you, lets finish this task. Waiting for your feedback. Thanks Kamran

$30 USD dalam 1 hari
(11 Ulasan)

I would be happy to provide you the service and solution you require. I can begin immediately and be finished before end of business day today.

$25 USD dalam 1 hari
(20 Ulasan)

Dear sir, I had solve the problem exactly like your project. My customer have a php script to receive and send data, but in other server. I can help you on this project. To solve it, we must transfer to JSON data. Lebih banyak

$24 USD dalam 2 hari
(24 Ulasan)

try to put this line in your php script and let me know, if it still not solves your problem header('Access-Control-Allow-Origin: *');

$15 USD dalam 1 hari
(11 Ulasan)

We use Ajax to communicate between JavaScript and PHP. You can call Ajax by 2 ways (a) Using general Javascript code (b) Using JQuery. JQuery provide easy function to call Ajax function. I can help you any time Lebih banyak

$25 USD dalam 0 hari
(8 Ulasan)

Hello mate, I am a wordpress developer . I have 4 Year of experience in web development. I have create many website for the small and large business. I have Strong knowledge of wordpress PHP, Html, OsCommerce,Css, J Lebih banyak

$25 USD dalam 3 hari
(5 Ulasan)

Hi Gone through file I can help you to solve it with the help of js. Let finish it today. Thanks Keg

$25 USD dalam 3 hari
(6 Ulasan)

Dear sir, As you do not know my skills, I would like to do demo for you. I will try to create demo for you, before you bid period ends. If you like it, you may select me other wise reject my bid. If you are inter Lebih banyak

$25 USD dalam 5 hari
(4 Ulasan)

Greetings!!!! From Iglobalvn Software Solution Co. Ltd. I have read the project post and clear with the same We are very much sure to provide a top quality result on time and will not let you down in any case for s Lebih banyak

$30 USD dalam 1 hari
(4 Ulasan)

HI, I am a web developer for more than 1.5 years, I have done many such things in recent years, I can help u in this. Let me see it.. Is ur data in JSON format. . ? Thanks in advance. Madhu

$15 USD dalam 1 hari
(4 Ulasan)

Dear Sir/Madam, I am Karthik from India having 2 Years of experience in Web Design & Development with 31 portfolios which was created from the scratch of designing to the final development including 2 E-Commerce & 1 Lebih banyak

$22 USD dalam 3 hari
(1 Ulasan)

I can do this fast To know more about my skills goto [login to view URL] and [login to view URL] there you should see my works and feedbacks I have more than 2 years of experience in software development Out of whi Lebih banyak

$15 USD dalam 3 hari
(0 Ulasan)

Hello, I am Experienced PHP/Jquery/Mysql/Javascript/Ajax developer.i have been working this fields for last 6+yrs.i have done many projects in one [login to view URL] u r interested to work with me then u send an email in my mail Lebih banyak

$25 USD dalam 3 hari
(0 Ulasan)

i can do this with just ome more thing that you will provide me. May you give me database to test this script?

$15 USD dalam 1 hari
(0 Ulasan)