Expression Web Forum

Expression Web Forum
Welcome to Expression Web Forum Sign in | Join | Help
in Search

Validation

Last post 09-09-2007 12:42 AM by gskywalkers. 14 replies.
Page 1 of 2 (15 items) 1 2 Next >
Sort Posts: Previous Next
  • 09-03-2007 6:52 PM

    Validation

    Well I finally did a makeover of my homepage in EW.  This is just a collection of links that I keep on my desktop so as long as it works (which it does) I'm happy, however, I passed it through Validation and got 83 errors. 

    Almost all of the errors are realated to the links because they have Ampersands in the URL.  Even the link to the Mircrosoft Discussion Site uses an Ampersand so if this causes so many validation problems, is there a way to fix it?

    http://www.scottyswebs.com/
    http://scottyswebs.com/bookbinding101/
    • Post Points: 20
  • 09-03-2007 7:05 PM In reply to

    Re: Validation

    In the source code, use

    &

    Usually, when you enter the ampersand into design mode in Expression Web, it should change to the code above. ASCII Code / HTML Entities might help out some.

    You should be able to do a find and replace in source code to fix the ampersand
    Filed under: ,
    • Post Points: 20
  • 09-03-2007 10:42 PM In reply to

    Re: Validation

    Thanks Corey.........I made all the changes and have whittled it down to 2 validation errors now, one of which I have no idea  how to fix. 


     The following tag is what is giving the error:
    <select name="menu"
                  onchange="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;"
                  value="GO">

     It says that that "value" is not permitted for the select tag when using 4.01 transitional.  Any ideas on how to fix that?

     

    http://www.scottyswebs.com/
    http://scottyswebs.com/bookbinding101/
    • Post Points: 20
  • 09-04-2007 6:52 AM In reply to

    Re: Validation

    I would try to say maybe put it all on one line and use lower case (I doubt that will help) - more of the source code might be needed for this one
    Filed under:
    • Post Points: 20
  • 09-05-2007 2:56 AM In reply to

    Re: Validation

    Hi Corey, the source code for this error is as follows:

    <form name="jump">

                  <p align="center">
        <select name="menu"
                  onchange="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;"
                  value="GO">
    <option value="http://www.microsoft.com/office/community/en-us/default.mspx?pg=1&amp;lang=en&amp;cr=US&amp;guid=&amp;sloc=en-us&amp;dg=microsoft.public.outlook.general&amp;fltr=">
        MS Oulook Discussion</option>
     <option value="http://www.microsoft.com/windowsserver2003/community/newsgroups/dgbrowser/en-us/default.mspx?dg=microsoft.public.inetserver.iis.smtp_nntp">
        Discussions in SMTP &amp; NNTP</option>
      </select></form>

    There were quite a few more option value= entries but I didn't want to fill the page with links.  I changed the word GO to lower case but EW must have switched it back.

    http://www.scottyswebs.com/
    http://scottyswebs.com/bookbinding101/
    • Post Points: 35
  • 09-06-2007 8:36 AM In reply to

    Re: Validation

    Well you have

    <p align="center">

    But you don't have this closed have the closing element.

    Also I would use

    <p style="text-align: center;">

    And then close it

    </select></p>
    • Post Points: 20
  • 09-07-2007 1:33 AM In reply to

    Re: Validation

    Hi Corey,

    I made those changes to no avail. I tried several different jump menus but I still get errors from them so I guess I can let it go or remove the form.  Thanks for your help

    http://www.scottyswebs.com/
    http://scottyswebs.com/bookbinding101/
    • Post Points: 5
  • 09-07-2007 9:01 AM In reply to

    Re: Validation

    Javascripts won't validate--and aren't supposed to.  Validation tools just aren't sophisticated enough to tell the difference between a well formed javascript and bad code.

    Anyway, here is the code for a jump menu that really zings...thought you might like to add it to your arsenal of code snippets.  

    You can tell the javascript to open the link in  a new window or not with a simple change to the hyperlink:
    <option value="new|your_page1.html">Your page 1---Opens a new Window</option>
    <option value="|your_page2.html">Your page 2---No new Window</option>

    There is even a way to control the size and toolbars of the new window (if you choose to have the jump link open a new window):
     window.open(targetedURL,targetedWindow,'toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1,width=700,height=400');

    <script type="text/javascript" language="JavaScript">
    <!--www.texaswebdevelopers.com
    function TWDddredirect(twdNav) {
    splitItUp = twdNav.options[twdNav.selectedIndex].value.split("|");
    targetedWindow = splitItUp[0];
    targetedURL    = splitItUp[1];
     if (targetedWindow!=='') {
     window.open(targetedURL,targetedWindow,'toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1,width=700,height=400');
     twdNav.selectedIndex = 0;
    } else {
    window.open(targetedURL,'_top')
     }
    }
    //-->
    </script>
    <form action="../">
    <select onchange="TWDddredirect(this)">
    <option>-- Select a Discussion --</option>
    <option value="MSOutlookDiscussion|http://www.microsoft.com/office/community/en-us/default.mspx?pg=1&amp;lang=en&amp;cr=US&amp;guid=&amp;sloc=en-us&amp;dg=microsoft.public.outlook.general&amp;fltr">MS Outlook Discussion---Opens a new Window</option>
    <option value="|http://www.microsoft.com/windowsserver2003/community/newsgroups/dgbrowser/en-us/default.mspx?dg=microsoft.public.inetserver.iis.smtp_nntp">Discussions in SMTP &amp; NNTP---No new Window</option>
    </select>
    </form>

    Visit Texas Web Developers for tools, tips and advice on the latest in web development and CSS design.
    • Post Points: 20
  • 09-07-2007 10:15 PM In reply to

    Re: Validation

    Hi TWD........very interesting to know that about  Javascripts.  I will give this a try tonight and post back as to how it works for me.  Thanks for your help.

    gskywalkers

    http://www.scottyswebs.com/
    http://scottyswebs.com/bookbinding101/
    • Post Points: 20
  • 09-07-2007 10:39 PM In reply to

    Re: Validation

    And, as you rightfully noted, well formed hyperlinks often won't validate either. If you validate (both html and css) and the only exceptions left are hyperlinks and javascripts then you are good to go!
    Visit Texas Web Developers for tools, tips and advice on the latest in web development and CSS design.
    • Post Points: 20
Page 1 of 2 (15 items) 1 2 Next >

FrontPage Users Forums Templates

Powered by Community Server (Commercial Edition), by Telligent Systems