JavaScript file to call PHP script

This project was successfully completed by mastnavoday for $15 USD in a day.

Get free quotes for a project like this
Employer working
Completed by:
Skills Required
Project Budget
$10 - $30 USD
Completed In
1 day
Total Bids
Project 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.

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online