Determining relative path with jQuery

<span class="com">// Initiate asynchronous load of xml data:</span><span class="pln">
jQuery</span><span class="pun">.</span><span class="pln">ajax</span><span class="pun">({</span><span class="pln">
    type</span><span class="pun">:</span> <span class="str">"GET"</span><span class="pun">,</span><span class="pln">
    url</span><span class="pun">:</span> <span class="str">"/wp-content/themes/mytheme/data.xml"</span><span class="pun">,</span><span class="pln">
    dataType</span><span class="pun">:</span> <span class="str">"xml"</span><span class="pun">,</span><span class="pln">
    success</span><span class="pun">:</span><span class="pln"> parseDataXML
</span><span class="pun">});</span>

 

How Much Do Average Apps Make?

What we see here is that while decent amounts of money can be made on an app, a hard-working developer on iOS will be able to get a new car, while Android and Microsoft developers will be forced into the used car market if they plan to take those earnings on the road. At $4,000 in average revenue per app, Apple has a lead but it still begs the question as to how many developers can actually make a living directly from apps on any platform.