<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
 Hi,<span class="Apple-tab-span" style="white-space:pre"></span><div><br class="webkit-block-placeholder"></div><div>I am trying to figure out a strange situation in Drupal 5.6<span class="Apple-tab-span" style="white-space:pre"></span></div><div><div><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div><br class="khtml-block-placeholder"></div><div>If I use the following:</div><div><br class="webkit-block-placeholder"></div><div><div>&lt;?php</div><div>  drupal_add_js(</div><div>    '$(document).ready(function(){</div><div>    $("p").fadeIn("slow");</div><div>    });',</div><div>    'inline');   </div><div>?&gt;<span class="Apple-tab-span" style="white-space: pre; ">        </span></div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div>This does not get added to the header automatically.</div><div><br class="webkit-block-placeholder"></div><div>If I add:</div><div><br class="webkit-block-placeholder"></div><div>print drupal_get_js() it then inserts all the scripts at the point where it finds the code (just after body) in page.tpl.php</div><div><br class="webkit-block-placeholder"></div><div>The only solution is to substitute print $scripts with print $drupal_get_js() in the head section.</div><div><br class="webkit-block-placeholder"></div><div>Now I don't mind doing that put it would be good to know why this does not work or if anyone else encountered this.</div><div><br class="webkit-block-placeholder"></div><div>This is a clean Drupal 5.6 installation with the Garland theme...</div><div><br class="webkit-block-placeholder"></div><div>Best,</div><div><br class="webkit-block-placeholder"></div><div>Ronald</div></div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div><div><br class="webkit-block-placeholder"></div><div><br></div></div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><br class="Apple-interchange-newline"></span></span></span> </div><br></div></body></html>