Results 1 to 2 of 2

Thread: JavaScript

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2002
    Posts
    1

    Unhappy JavaScript

    This is probably a real newbie question, but I am very new to .NET and am trying to add a javascript menu to a web user control (this control will be a head that appears at the top of each page in the site). Unfortunately, I can't seem to get the menu to appear at all.

    Is there a special way to add javascript? This script works in a plain old HTML page, but does not do anything when I pasted it into the HTML view of the aspx page.

    Please help!

  2. #2
    Hyperactive Member
    Join Date
    Dec 2001
    Location
    Dublin, Ireland
    Posts
    262
    I did a very complicated menu from one I got off dynamicdrive.com.
    It required alot of javascript code for each menu in the head section.
    Basically I wrote a dll that has a shared function that returns the javascript as a string that is embeded into the head section.

    If you look at my menu at http://www.sdublincoco.ie and view the source you will see a large amount of javascript code. The codebehind just has:-

    <script language="javascript">
    <%=MyDllName.MyClassName.SharedFunction %>
    </script>

    Simple as that. Return a proper string that is javascript code and you have it.

    By the way the tickers on that site are user controls with header and image properties. If anybody would like the source I'd be happy to send it on.

Posting Permissions

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



Click Here to Expand Forum to Full Width