codetoad.com
��ASP Shopping Cart,�Forum�&�BBS
��- all for $20 from CodeToad Plus!
��Home�||�ASP�|�ASP.Net�|�C++/C#�|�DHTML�|�HTML�|�Java�|�Javascript�|�Perl�|�VB�|�XML�||�CodeToad�Plus!�||�Forums�||�RAM
Search Site:
Search Forums:
Query on onLoad �pbhagavan at 10:23 on Friday, March 18, 2005

I have defined a function in .js(JavaScript) File and included this file in .jsp file as follows
<script language="JavaScript" src="/forum//EnterKey.js"></script>

and i am calling the function as follows:
<BODY onLoad="setFocusOnFirstTextField();">

But at the time of page load the error comes as object Expected

Can please tell me what is the problem with this.

Re: Query on onLoad �raik at 14:29 on Friday, March 18, 2005

If u want to avoid from error declare ur funtion in Head tag of HTML and then call on load

Re: Query on onLoad �pbhagavan at 04:16 on Monday, March 21, 2005

Thanks for your reply. Actually i had declared the function in the Header itself.








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
�� Use of VB .NET
�� Cookies and new pages
�� need help with e-mail validation
�� Problems with DHTML dropdown menus
�� Re: Passing values from a select box to a text box
�� lowerCase to UpperCase
�� Re: Javascript validation that will stop a ` (apostrophe) being entered
�� Re: pop-up Javascript calendar
�� nested classes


Recent Articles
Communicating with the Database (Using ADO)
MagicGrid
Simple Thumbnail Browsing Solution
Type Anywhere
A Better Moustrap: FmtDate to replace FormatDateTime
ASP.NET Forum Source Code
Internal Search Engine
Javascript Growing Window
Simple date validation
Search engine friendly URLs using ASP.NET (C#.NET)


Site Survey
Help us serve you better. Take a five minute survey. Click here!

� Copyright codetoad.com 2001-2005