Link to home
Start Free TrialLog in
Avatar of codemongrol
codemongrol

asked on

Object Expected

I have a links in my asp page that points to different crystal reports.  On the page the user can hoover over the link, and view a description of the report. When they go to hoover over the report name I am receiving the error object expected.  
The following is the link I build, and the javascript that I call:


<A target="_blank" ONMOUSEOUT="javascript:dis();return false;" ONMOUSEOVER="javascript:test(<%=n%>,'bob');return false;" Href="/ReportFinder/<%=rs337(0)%>.rpt"><%= MyArray(I)%></a>


<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function test(z,who)
{

add.value= who
add.style.width=500
add.style.top = 350 + z
add.style.left = 400

}
function dis()
{
add.value=""
add.style.height=0
add.style.width=0
}
//  End -->
</script>

<font size=2 face="arial narrow">
<input type=button name="add" style="position:absolute;background-color:yellow;color:black;border-color:black;height:0;width:0">


Any help would be grateful!!



Avatar of codemongrol
codemongrol

ASKER

I also need to mention that each person belongs to a group that sees only certain reports.  Most pages are working, but people that belong to our Design Center Group are receiving the object expected error message on their page.  I am a part of the administration group, and the hoover links work fine for me.  I use no security other then what the end use can see according to my SQL tables.  This information is then compared to report names that are in reports directory.  All this code has been working fine until I added the javascript functions that are called from the mouse events.

Thx
Mike
ASKER CERTIFIED SOLUTION
Avatar of Asp
Asp

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of fritz_the_blank
Is this page posted somewhere so that we can play with it?

Fritz the Blank
DANNGGGGGGG you guys are QUICK!!!!! I posted and then in 5 minutes I had an answer.  You fixed my nightmare ASP.  I have been working on this since yesterday afternoon. Tnx so much!!