Results 1 to 3 of 3

Thread: Javascript Error in user control/master page .NET 2.0

  1. #1
    Join Date
    Aug 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Javascript Error in user control/master page .NET 2.0

    I have a header user control in a master page where I want to use the AnyLink Drop Down Menu but I get the error


    Home is the name of a menu array:

    Code:
    var home = new Array()
    home[0]='<a href="spotlight.aspx">Spotlight</a>'
    home[1]='<a href="news_insights.aspx">News and Insights</a>'
    home[2]='<a href="calendar.aspx">Calendar of Events</a>'
    
    //Contents for menu 2, and so on
    var menu2 = new Array()
    menu2[0]='<a href="learning_modules.aspx">Learning Modules</a>'
    menu2[1]='<a href="library.aspx">Library</a>'
    menu2[2]='<a href="learning_history.aspx">Learning History.</a>'
    
    var menu3 = new Array()
    menu3[0]='<a href="job_aids.aspx">Job Aids</a>'
    menu3[1]='<a href="links.aspx">Links</a>'
    The link calling the home drop down menu:

    Code:
    <a href="/index.aspx" onmouseover="dropdownmenu(this, event, home, '150px');" onmouseout="delayhidemenu();"><asp:ImageButton ImageUrl="/images/header/nav_home.gif" width="146" height="46" id="imgHome" runat="server" /></a>
    Now this is the way the link is rendered:

    Code:
    <a href="/index.aspx" onmouseover="dropdownmenu(this, event, home, '150px');" onmouseout="delayhidemenu();"><input type="image" name="ctl00$Header2$imgHome" id="ctl00_Header2_imgHome" src="/images/header/nav_home-over.gif" style="height:46px;width:146px;border-width:0px;" /></a>
    the ASP:Image button is rendered as an input type of image. Is this the problem? I don't see anything else that looks kooky...

    Thanks for any help.

  2. #2
    Join Date
    Aug 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    solved... I was missing a set of double quotes...

  3. #3
    Join Date
    Aug 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    hi, please tell me where you put the double quotes and solved the problem. I have the same problem. I don't want the id is changed because js dont' find it.

    Thanks

    my english is not so good, so excuses me if i make mistakes.
    Last edited by Luch07; 08-10-2007 at 10:49 PM. Reason: typing error

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •