Posts: 534
Threads: 265
Joined: Jul 2014
I have file in extand .js. And i need go to to my php file and do some things and then continious what is next in my .js file.
Posts: 4,878
Threads: 85
Joined: Jun 2007
Reputation:
0
I dont know much about JS, but i know that it is client-sided, and PHP is server-sided. This limits the possible communication between them, probably you can only do this by calling the php URL on the server from JS and parse the output.
Posts: 534
Threads: 265
Joined: Jul 2014
Posts: 3,004
Threads: 12
Joined: May 2011
or just add the <script></script> tags ...
It outputs html, html proccess js code between <script> tags then add the tags and it will proccess the javascript code ...
Works perfectly for me.
Posts: 534
Threads: 265
Joined: Jul 2014
You mean
function()
{
<script src="url"></script>
}