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!
How to load XML file with pressing on a button
Re: How to load XML file with pressing on a button
you can use
In YourCallback() you can parse the result with ParseXML().
Greetings ... Peter
Code: Select all
HTTPRequest(#PB_HTTP_Get, "http://localhost/somephpfile.php?name=something", "", @YourCallback())
Greetings ... Peter
Re: How to load XML file with pressing on a button
Thanks, never thought of that. Its working flawless!