<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1046157" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1046157</link>
    <description></description>
    <language>en</language>
          <item>
    <title>This is not exactly what I</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/getting-json-callback-function-fire-when-page-loads#comment-1247280</link>
    <description> &lt;p&gt;This is not exactly what I mean: Basically, if I have a normal HTML webpage with a script tag in the head or body:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;script src=&amp;quot;http://php-page-that-generates-JSON/?param=1&amp;amp;callback=callbackfunction&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;then I create a function with the same name as the callback parametre (&quot;function callbackfunction()&quot;) then this function automatically gets fired once the page has loaded.&lt;/p&gt;
&lt;p&gt;EDIT: actually it does work I just need to define the function before including the json file!&lt;/p&gt;
&lt;p&gt;If you look at the Yahoo webservice, this is what it does:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://developer.yahoo.com/common/json.html#callbackparam&quot;&gt;http://developer.yahoo.com/common/json.html#callbackparam&lt;br /&gt;
&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Fri, 19 Feb 2010 12:24:05 +0000</pubDate>
 <dc:creator>benf</dc:creator>
 <guid isPermaLink="false">comment 1247280 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>It&#039;s not really a web</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/getting-json-callback-function-fire-when-page-loads#comment-1247272</link>
    <description> &lt;p&gt;It&#039;s not really a web service.  It&#039;s just a PHP script that returns JSON instead of HTML.&lt;/p&gt;
&lt;p&gt;All you need to do is do an AJAX postback and process the returned JSON.  This is the best AJAX example w/o using a framework like jQuery:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.w3schools.com/PHP/php_ajax_database.asp&quot; title=&quot;http://www.w3schools.com/PHP/php_ajax_database.asp&quot;&gt;http://www.w3schools.com/PHP/php_ajax_database.asp&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Thu, 18 Feb 2010 22:30:16 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1247272 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
