Timeline for getJSON on Wordpress Page
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 28, 2017 at 13:36 | answer | added | Daniel C | timeline score: -1 | |
Nov 27, 2017 at 18:51 | comment | added | Shibi | Check the network console see what the response code for this file when you do this request. | |
Nov 27, 2017 at 18:43 | comment | added | Daniel C | Thanks Tom. I am calling a REST API from a third party service provider (Eventbrite). When I do this on my localhost without Wordpress it works fine. I understand Wordpress has some additional issues that I need to translate properly.. but just trying to see if there's a basic way to get this script to work on Wordpress page without reinventing the wheel. | |
Nov 27, 2017 at 18:05 | comment | added | Tom J Nowell♦ |
Looks like a path issue, that path has no / at the beginning so it'll always be relative. But why are you using standalone PHP files in a WP site to handle requests? Is there a reason WP AJAX or the REST API aren't options? Keep in mind that by joining up variables and HTML in JS you're opening yourself up to injection attacks, jQuery( '<h4>', { 'text': ... } ) is just as simple but 100x more secure
|
|
Nov 27, 2017 at 17:46 | review | First posts | |||
Nov 27, 2017 at 19:09 | |||||
Nov 27, 2017 at 17:45 | history | asked | Daniel C | CC BY-SA 3.0 |