Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JavaScript in ASP

Status
Not open for further replies.

JohnPham

Programmer
Jul 9, 2001
34
US
I have a javaScript function that is define in seperate file from asp file like somethingJavascript.js
I want to call that function to my asp file to load up in the cell of a table but somehow it couldn't. I am not quite sure about the syntax that I wrote:
In the top of asp file I have:
<script language=&quot;JavaScript&quot; src=&quot;somethingJavascript.js&quot;>
</script>

Then in the body of asp file
<table>
<tr>
<td valign=&quot;top&quot; width=&quot;245&quot; height=&quot;627&quot;
onload=&quot;display()&quot;>

</td></tr></table>

The display() function is in the somethingJavascript.js

Any suggestion for the syntax?

Thank you for the help in advance.


 
In your asp page..
Have you the starting as this
<%@ Language=&quot;Javascript&quot; %>


Aaron
 
OnLoad(0 is not a valid event for <TD>.

What is the purpose of display() ? br
Gerard
 
I try to have a display() function is to make such a menu or something. Since onload is not valid for the <td> tag, I guess I have no other choice.

ixian: I did have <%@ Language=&quot;Javascript&quot; %> in my code too. Thank for the help

Thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top