<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1017761" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1017761</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/now-javascript-getting-really-stupid-or-it-me#comment-1103978</link>
    <description> &lt;p&gt;Try using forms[0] instead of gotosearchresults.&lt;/p&gt;
&lt;p&gt;Why aren&#039;t you just using this onSubmit, btw? You&#039;re trying to submit a form from an anchor tag? No can do, buckaroo.&lt;/p&gt;
 </description>
     <pubDate>Wed, 06 Mar 2002 03:04:05 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1103978 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/now-javascript-getting-really-stupid-or-it-me#comment-1103958</link>
    <description> &lt;p&gt;The saga continues...&lt;/p&gt;
&lt;p&gt;Ok, I&#039;ve tried moving the &amp;lt;script&amp;gt; block into the header. So it loads before the  block where it&#039;s called&lt;br /&gt;
That doesn&#039;t work.&lt;/p&gt;
&lt;p&gt;Now I&#039;ve tried sticking this;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;#&quot;&gt;Show results&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;in the body&lt;/p&gt;
&lt;p&gt;I click on the link and I get the same error.&lt;/p&gt;
&lt;p&gt;It&#039;s something to do with the javascript not believing that the form is an object when it is.&lt;/p&gt;
&lt;p&gt;AAAAARRRRGGGGHHHHHHHHHH!!!!!!!!!!!!!&lt;/p&gt;
&lt;p&gt;(thanks for all the replies !)&lt;br /&gt;
cheers&lt;br /&gt;
Andy&lt;/p&gt;
 </description>
     <pubDate>Tue, 05 Mar 2002 22:42:28 +0000</pubDate>
 <dc:creator>andymac</dc:creator>
 <guid isPermaLink="false">comment 1103958 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/now-javascript-getting-really-stupid-or-it-me#comment-1103951</link>
    <description> &lt;p&gt;because it reads it in order. The function isn&#039;t there yet. &lt;strong&gt;onLoad&lt;/strong&gt; means &lt;em&gt;on load&lt;/em&gt;! When the page is loading, not when the page has finished loading, then do it.&lt;/p&gt;
 </description>
     <pubDate>Tue, 05 Mar 2002 21:58:35 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1103951 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>extra space</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/now-javascript-getting-really-stupid-or-it-me#comment-1103936</link>
    <description> &lt;p&gt;It may be that there is a space between &#039;java&#039; and &#039;script&#039; in the unload statement. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Tue, 05 Mar 2002 19:43:26 +0000</pubDate>
 <dc:creator />
 <guid isPermaLink="false">comment 1103936 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/now-javascript-getting-really-stupid-or-it-me#comment-1103848</link>
    <description> &lt;p&gt;I&#039;ll try it, but I don&#039;t follow why it doesn&#039;t work as I think it should. If the onload event fires after the document has fully loaded then the function has been declared. It also doesn&#039;t explain why it fails if I do onload=&quot;document.gotosearchresults.submit();&quot;. Then there&#039;s no function, just the object being referenced directly.&lt;br /&gt;
It also doesn&#039;t explain why it works on another project but doesn&#039;t on this one !&lt;/p&gt;
&lt;p&gt;All very odd. I&#039;m currently looking at Javascript as a necessary evil &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;cheers&lt;br /&gt;
Andy&lt;/p&gt;
&lt;p&gt;(Can you spot I&#039;m an ASP person &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;)))&lt;/p&gt;
 </description>
     <pubDate>Mon, 04 Mar 2002 20:53:21 +0000</pubDate>
 <dc:creator>andymac</dc:creator>
 <guid isPermaLink="false">comment 1103848 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/now-javascript-getting-really-stupid-or-it-me#comment-1103844</link>
    <description> &lt;p&gt;You can&#039;t call a function you haven&#039;t declared yet. Put the JavaScript code in the head element.&lt;/p&gt;
 </description>
     <pubDate>Mon, 04 Mar 2002 20:42:53 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1103844 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/now-javascript-getting-really-stupid-or-it-me#comment-1103808</link>
    <description> &lt;p&gt;Hi Jack,&lt;br /&gt;
  I don&#039;t understand why you couldn&#039;t do it on an onload. As I understand it onload fires off once the form is fully downloaded. As this code works perfectly fine on another project (I&#039;d Cut&amp;amp;Pasted the code) - that&#039;s the really strange thing.&lt;/p&gt;
&lt;p&gt;thanks again&lt;br /&gt;
Cheers&lt;br /&gt;
Andy&lt;/p&gt;
 </description>
     <pubDate>Mon, 04 Mar 2002 11:10:41 +0000</pubDate>
 <dc:creator>andymac</dc:creator>
 <guid isPermaLink="false">comment 1103808 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/now-javascript-getting-really-stupid-or-it-me#comment-1103807</link>
    <description> &lt;p&gt;I removed the onload and everything worked fine.&lt;br /&gt;
So, I think you cannot submit a form through an onload in a body. Seems logical too, because if it could be done it would be very easy to let a mailserver crash by (accidently) bombing it.&lt;/p&gt;
&lt;p&gt;Anyway I&#039;m not sure, so maybe wait for an answer from the real gurus on this forums &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Mon, 04 Mar 2002 11:06:14 +0000</pubDate>
 <dc:creator>Jack Michaelson</dc:creator>
 <guid isPermaLink="false">comment 1103807 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/now-javascript-getting-really-stupid-or-it-me#comment-1103806</link>
    <description> &lt;p&gt;Hi,&lt;br /&gt;
  Thanks for the quick response...&lt;/p&gt;
&lt;p&gt;(1) Yep, the &quot;action=x&quot; is just there cos I&#039;ve not written the page that it&#039;s going to yet !&lt;br /&gt;
(2) There is a submit button because I was just testing that it wasn&#039;t some other problem. Pressing the submit button works fine. It will be removed on the final version&lt;/p&gt;
&lt;p&gt;cheers&lt;br /&gt;
Andy&lt;/p&gt;
 </description>
     <pubDate>Mon, 04 Mar 2002 10:55:01 +0000</pubDate>
 <dc:creator>andymac</dc:creator>
 <guid isPermaLink="false">comment 1103806 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/now-javascript-getting-really-stupid-or-it-me#comment-1103804</link>
    <description> &lt;p&gt;I have some questions about the script:&lt;br /&gt;
-I assume that you placed the &#039;x&#039; of action=&quot;x&quot; there on purpose, just to show us the script?&lt;br /&gt;
-Why do you submit the form onload &lt;strong&gt;and&lt;/strong&gt; have a submit button?&lt;/p&gt;
 </description>
     <pubDate>Mon, 04 Mar 2002 10:38:43 +0000</pubDate>
 <dc:creator>Jack Michaelson</dc:creator>
 <guid isPermaLink="false">comment 1103804 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
