Wrox Programmer Forums
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old August 8th, 2006, 09:32 AM
Registered User
Join Date: Aug 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Java Script error?

 am new to ASP.net and i have created a web user control. I want a welcome image and some buttons to be used in every form, so i have place it in the .ASCX. Now on the mouse over event of the button i want the button to be highlighted
so i have placed small javascript code in the <TD> of a table such as below:

<TD> <img src="images/btn_home.jpg" name="btn_home" width="52" height="30" id="btn_home" onMouseOver="MM_swapImage('btn_home','','images/btn_home_dn.jpg',1)" onMouseOut="MM_swapImgRestore()">

But when the proj. is executed and i move the cursor on the button i receive an error message "Microsoft JScript runtime error: object expected".

I Have no idea about the error.

It would be great if any one could assist me on my mistake and give me a solution or a better alternative
Old August 8th, 2006, 09:40 AM
Friend of Wrox
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi

hi there... can you see if in the hmtl that you received the object is still the same?? (btn_home still has this name... B/c for example ASP.net 2 changes the names of the objects..)

did the JS fuctions works ok????



Similar Threads
Thread Thread Starter Forum Replies Last Post
Java Script srkarthik_82 General .NET 0 December 28th, 2006 05:03 AM
java script nalla ASP.NET 1.0 and 1.1 Professional 8 June 23rd, 2006 06:24 AM
java script madangcse@gmail.com Javascript How-To 1 March 22nd, 2006 04:10 AM
Java vs Java Script functions joemorrison74 J2EE 0 July 6th, 2005 04:28 PM
java script zouky JSP Basics 1 September 27th, 2004 01:54 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.