• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Newbie Q: How to upload a php file and execute a function, return results?

New Here ,
Aug 28, 2009 Aug 28, 2009

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

TOPICS
Extensions

Views

1.6K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 28, 2009 Aug 28, 2009

Copy link to clipboard

Copied

Hi

Sorry, but you cannot execute php code from within a dreamweaver extension.

PZ

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 28, 2009 Aug 28, 2009

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 28, 2009 Aug 28, 2009

Copy link to clipboard

Copied

LATEST

Hi

Again sorry, but no.

Extensions do not allow ajax calls.

PZ

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines