Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - ASP 2.0 Menu Control and javascript error when placed on a master

 
Thread Tools Search this Thread
Old 06-26-2006, 05:02 AM   #1
Default ASP 2.0 Menu Control and javascript error when placed on a master


Hi,

I have placed a <asp:menu> control inside a master page and used a style
sheet to change the appearance of the menu items when the user hovers over
them. My problem is the submenus aren't poping out and the page displays a
javascript error saying "Object Expected".

The funny thing it works on my pc but not when I migrate it to the
production server.

Thanks
Onur.



=?Utf-8?B?T251cg==?=
  Reply With Quote
Old 06-26-2006, 07:33 AM   #2
Vadivel Kumar
 
Posts: n/a
Default Re: ASP 2.0 Menu Control and javascript error when placed on a master

Most of the time the "Object expected" happens due to wrong path to JS
file is specified in your aspx file. Check the "viewsource" thru the
browser and see whether the path goes correctly or not.

Since you have given more detail, I would like to suggest you to check
the same page using FireFox and check its Javascript console for the
errors. It can exactly tell you what are all the errors thrown out in JS
level.

Let us know if you can't solve the problem.

-
Vadivel Kumar
http://vadivelk.net
  Reply With Quote
Old 06-26-2006, 11:16 PM   #3
=?Utf-8?B?T251cg==?=
 
Posts: n/a
Default Re: ASP 2.0 Menu Control and javascript error when placed on a mas

Thanks Vadivel,

That might explain a few things. I think it is one of 2 things:
1. I can't seem to find a Webreference.axd file with I assume will contain
the script needed
2. Or there is no script on the server contained in the folder where the
framwork scripts are located.

O.

"Vadivel Kumar" wrote:

> Most of the time the "Object expected" happens due to wrong path to JS
> file is specified in your aspx file. Check the "viewsource" thru the
> browser and see whether the path goes correctly or not.
>
> Since you have given more detail, I would like to suggest you to check
> the same page using FireFox and check its Javascript console for the
> errors. It can exactly tell you what are all the errors thrown out in JS
> level.
>
> Let us know if you can't solve the problem.
>
> -
> Vadivel Kumar
> http://vadivelk.net
>

  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump