Copy link to clipboard
Copied
So I have written my first extension, well almost. What I need to do us execute some PHP code to manipulate my DOM, So in theory, I want to upload my PHP file that has my function, and then execute it from the JavaScript page. Something like:
site.put(myFile.php);
site.executeFunction(myString); Yes, I know this is not a real Fx's!!
site.return(myNewString);
. Normally this is done by AJAX, but I'm not sure how to call it from the dw.DOM
Any suggestions would be greatly appreciated. Thanks
Copy link to clipboard
Copied
Hi
Sorry, but you cannot execute php code from within a dreamweaver extension.
PZ
Copy link to clipboard
Copied
Correct, but is there a way to make a call to a PHP function that exists on a server? Can I use an ajax call within an extension?
Copy link to clipboard
Copied
Hi
Again sorry, but no.
Extensions do not allow ajax calls.
PZ