HTML5 Canvas - Transferring MySQL data

Engaged ,
Apr 01, 2022 Apr 01, 2022

Copy link to clipboard

Copied

I want to transfer data to and from a MySQL database.  

 

Normally I would do this via JQiuery AJAX and use PHP scripts and MySQL queries.

 

$.ajax({
        type: "POST",
        url: "scripts/some_script.php",
        data: {
            data: some_data,
        },
        success: function(data) {
          //do stuff
        }
    });

 

Can I do this in Animate with JavaScript?

 

If so, how exactly?  I assume I would need to add the JQuery framework...

 

Views

74

Likes

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

correct answers 1 Correct answer

Adobe Community Professional , Apr 01, 2022 Apr 01, 2022
add the jquery path to your global>include script panel

Likes

Translate

Translate
Adobe Community Professional ,
Apr 01, 2022 Apr 01, 2022

Copy link to clipboard

Copied

add the jquery path to your global>include script panel

Likes

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
Engaged ,
Apr 01, 2022 Apr 01, 2022

Copy link to clipboard

Copied

I could also add the JQuery framework as a link in the html file I guess....

Likes

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
Engaged ,
Apr 01, 2022 Apr 01, 2022

Copy link to clipboard

Copied

LATEST

Cool, I got that working with the Global Include Script.

 

    $.ajax({
        url: "scripts/get_patients.php"
    }).then(function(data) {
        root.patients.text = data;
    })

Now I just need to get the dynamic text scrollable and entries clickable...  another question.

Likes

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