add ajax content to page?
-
I’ve written a script with AJAX that calls on a php file to fetch content from a database and present it inside a div when a form button is pressed. The script is entirely javascript and HTML.
I have tested the script, and it works perfectly well in its own right.
I would like to create a wordpress page that runs this script.
I have pasted the ajax script into the page editor (using the HTML view) and saved the draft. When I preview the page, the script does not fetch the data and/or change the content of the div when the button is pressed.
I don’t understand why this should be, and so I’m posting to ask if anybody here can explain why and possibly offer a solution.
Many thanks.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘add ajax content to page?’ is closed to new replies.