none
EP ver. 1.0 cannot get this Java drop down menu to work RRS feed

  • Question

  • I'm using EP ver. 1.0 and cannot get this Java drop down menu to work. It's the seventh line that does not work. This my first time using Java. I got it from this link - http://www.javascript-array.com/scripts/simple_drop_down_menu/

    <head>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <!-- #BeginEditable "doctitle" -->

    <title></title>

    <!-- #EndEditable -->

    <link rel="stylesheet" title="CSS" type="text/css" href="styles/style3.css" media="screen" />

    <script scr="dropdown menu.js" language="javascript" type="test/javascript"></script>

    </head>

     

    When I hover over the scr="dropdown menu.js" I get the following -

    In XHTML 1.0 Transitional the attribute ‘scr’ is not permitted for the <script> tag.

     

    Another message I get is -

    The Dynamic Web Templet ‘file:///C:/website name.com/master.dwt ’ cannot be attached because it contains no editable regions.

    The Java drop down menu do not open the drop down menu.

    Any Help will be great,

    Jack.

    Thursday, November 11, 2010 5:51 PM

Answers

  • What is EP? I'm not aware of any of the Expression Studio products with those initials.

    Java® is not javascript. They are entirely different languages. Please do not mix the two terms, lest you introduce unnecessary confusion about which you are referring to.

    The hover message about your script tag is correct. To designate the source file for a resource, use "src," not "scr."

    The error message about your DWT means just what it says. You need to learn how DWTs work before you try to use one. Refer to Tina Clarke's DWT tutorial at http://www.expression-web-tutorials.com/expression-web-dwt.html to get an introduction to their use.

    cheers,
    scott


    Please remember to "Mark as Answer" the responses that resolved your issue. It is common courtesy to recognize those who have helped you, and it also makes it easier for visitors to find the resolution later.
    • Marked as answer by jgbjobs Thursday, November 11, 2010 8:16 PM
    Thursday, November 11, 2010 6:07 PM

All replies

  • I believe scr should be src.
    src = source.

    As for the dwt message, add some editable regions just like it is telling you.


    Expression Web MVP
    Thursday, November 11, 2010 6:01 PM
  • First, java is NOT javascript. They are very different things, and considering the number of users who disable java, or do not have it installed, java should be avoided for web sites, especially navigation.

    For your javascript problem, note that scr should be spelt src -
    <script src="dropdown menu.js" language="javascript" type="test/javascript"></script>


    Ron Symonds
    Microsoft MVP (Expression Web)

    www.rxs-enterprises.org/fp
    Thursday, November 11, 2010 6:01 PM
  • What is EP? I'm not aware of any of the Expression Studio products with those initials.

    Java® is not javascript. They are entirely different languages. Please do not mix the two terms, lest you introduce unnecessary confusion about which you are referring to.

    The hover message about your script tag is correct. To designate the source file for a resource, use "src," not "scr."

    The error message about your DWT means just what it says. You need to learn how DWTs work before you try to use one. Refer to Tina Clarke's DWT tutorial at http://www.expression-web-tutorials.com/expression-web-dwt.html to get an introduction to their use.

    cheers,
    scott


    Please remember to "Mark as Answer" the responses that resolved your issue. It is common courtesy to recognize those who have helped you, and it also makes it easier for visitors to find the resolution later.
    • Marked as answer by jgbjobs Thursday, November 11, 2010 8:16 PM
    Thursday, November 11, 2010 6:07 PM
  • We can't access a link on your computer. You need to publish a page attached to the DWT so we can see the code, the stylesheet and the js file. It can be a temporary location but it has to be on the web.
    MS MVP Expression Tutorials & Help http://by-expression.com & Expression Web forums
    Thursday, November 11, 2010 6:50 PM
  • paladyn,

    Thanks for the great site and thanks for all the help.

    Jack.

    Thursday, November 11, 2010 8:16 PM
  • Sigh...
    Expression Web MVP
    • Proposed as answer by Steve Easton Friday, November 12, 2010 12:47 AM
    Friday, November 12, 2010 12:47 AM