Skip to main content
Inspiring
April 2, 2022
Question

HTML5 Canvas - Clickable records from MySQL database

  • April 2, 2022
  • 1 reply
  • 295 views

I have a dynamic text field populated from a MySQL database.

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

I now want to make the records returned from the database clickable.  The number of records will also need to be scrollable.  The clickable records are patient names.

 

Would would be the best method of presenting this data to achieve the above?  A list instead of a text field comes to mind.  If so, how would that be implemented?

 

    This topic has been closed for replies.

    1 reply

    FlatChatAuthor
    Inspiring
    April 2, 2022

    A better way might be to dynamically create movieclips for each returned record and display these inside another movieclip (or some other container) which is scrollable. 

     

    How would I do that?

     

    Other suggestions?