I'm creating a desktop application that needs to be able to dynamically update content.
I need to ajax load a php file in resources folder, but unfortunatly the HTTPClient object doesn't support the app:// protocol.
Is there any other way I can do this?
You do not need the http protocol to update the content via 'ajax'.
just include your php file like this:
<script type="text/php" src="my_file.php"/>
in my_file.php define a class or procedure to do whatever you want to do and to output the content that you want, and from html side, when your ajax event occurs (on click, or by timer, etc) just call that php function, and replace the content of your container with the output.
Maybe you could use a hidden webview and try to access it's html property after is loaded. Not sure.
I suppose I could do, but it just seems a bit of a bodge job.