How to load XML file with pressing on a button
Posted: Mon Jan 11, 2021 8:52 pm
Hi all,
I have a problem with loading XML > on the fly <
I have it working that if my app starts it loads an XML (from a php file that echo's to XML), and can get that read just fine.
But i need to get it working too if i press a button, that i can do something like this:
LoadXML(#XML_Something, "http://localhost/somephpfile.php?name=something")
For retrieving some specified data from the database.
I know that i need a callback for LoadXML() :
But how can i do this, when loading() already is used for other preloading XML files?
I cant (and would be bad design) to load the whole database in xml before my app starts.
Is there any solution to loading XML when pressing a button?
Any help or other solution is very much appreciated!
I have a problem with loading XML > on the fly <
I have it working that if my app starts it loads an XML (from a php file that echo's to XML), and can get that read just fine.
But i need to get it working too if i press a button, that i can do something like this:
LoadXML(#XML_Something, "http://localhost/somephpfile.php?name=something")
For retrieving some specified data from the database.
I know that i need a callback for LoadXML() :
But how can i do this, when loading() already is used for other preloading XML files?
I cant (and would be bad design) to load the whole database in xml before my app starts.
Is there any solution to loading XML when pressing a button?
Any help or other solution is very much appreciated!