| Teemu Keiski 2004-05-30, 6:39 am |
| Hi,
"Function" should be "function" (it is all lowercase in JavaScript)
--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
http://blogs.aspadvice.com/joteke
"Bryan" <anonymous@discussions.microsoft.com> wrote in message
news:1DFD9D82-5435-4F90-A91E-52076AEEC736@microsoft.com...
> I have the following in my asp.net html page:
>
> <script language="JavaScript" type=text/javascript>
> Function loader(){
> <% If Not Page.IsPostBack Then %>
> document.form1.submit();
> <% End If %>
> }
> </script><BODY onLoad="loader();" leftMargin="0" topMargin="0"><form
id="form1" runat="server">
>
> When I try to go to that page I get two error: 1) Microsoft Jscript
runtime Error Object Expected at the <BODY onLoad="loader();" leftMargin="0"
topMargin="0"> line
> 2) An Error: Expected ';' at the <script language="JavaScript"
type=text/javascript> line
>
> What's up? It seems like the code is right from all the internet examples
I've seen.
|