JavaScript file to call PHP script

Closed

Description

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.

Skills: Javascript, PHP

See more: 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, php call url, php script work order database, call php javascript, convert php file javascript file, order javascript steps

Project ID: #4971669

Awarded to:

mastnavoday

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 in 1 day
(0 Reviews)
0.0

19 freelancers are bidding on average $23 for this job

waelfree

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 in 1 day
(64 Reviews)
6.0
PhungTran

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

$30 USD in 1 day
(191 Reviews)
5.8
danieloraca

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 in 3 days
(50 Reviews)
5.2
eddie09

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% More

$30 USD in 1 day
(14 Reviews)
4.9
eComOS

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 in 0 days
(31 Reviews)
4.5
kamrankhatti

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 in 1 day
(11 Reviews)
4.4
Tomcat253

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 in 1 day
(20 Reviews)
4.3
thanhhungqb

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. More

$24 USD in 2 days
(24 Reviews)
4.3
akjajoo123

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 in 1 day
(11 Reviews)
3.9
WebProgrammerBD

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 More

$25 USD in 0 days
(8 Reviews)
3.7
karunaitsoft

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 More

$25 USD in 3 days
(5 Reviews)
3.6
kundanntl

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

$25 USD in 3 days
(6 Reviews)
3.5
vrushabh

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 More

$25 USD in 5 days
(4 Reviews)
2.7
iglobalvn

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 More

$30 USD in 1 day
(4 Reviews)
2.6
madhuhc

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 in 1 day
(4 Reviews)
2.2
KenKnack2012

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 More

$22 USD in 3 days
(1 Review)
0.4
munzirbm

I can do this fast To know more about my skills goto fiverr.com/munzir and fiverr.com/dveloper there you should see my works and feedbacks I have more than 2 years of experience in software development Out of whi More

$15 USD in 3 days
(0 Reviews)
0.0
animaroy51

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 hand.if u r interested to work with me then u send an email in my mail More

$25 USD in 3 days
(0 Reviews)
0.0
tipsclick

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 in 1 day
(0 Reviews)
0.0