is your sceen fogged?

Discussion in 'Javascript' started by little susane, Aug 24, 2008.

  1. Can you point at syntax error here?

    <FORM NAME="mail" method="POST" action="mailto:?
    subject=Survey Results" onSubmit="return
    <b style="color:black;background-color:#a0ffff">survey()"
    enctype="multipart/form-data">
     
    little susane, Aug 24, 2008
    #1
    1. Advertising

  2. little susane wrote:
    > Can you point at syntax error here?
    >
    > <FORM NAME="mail" method="POST" action="mailto:?
    > subject=Survey Results" onSubmit="return
    > <b style="color:black;background-color:#a0ffff">survey()"

    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    > enctype="multipart/form-data">


    You are welcome.


    PointedEars
    --
    Prototype.js was written by people who don't know javascript for people
    who don't know javascript. People who don't know javascript are not
    the best source of advice on designing systems that use javascript.
    -- Richard Cornford, cljs, <f806at$ail$1$>
     
    Thomas 'PointedEars' Lahn, Aug 24, 2008
    #2
    1. Advertising

  3. little susane wrote:

    > Can you point at syntax error here?
    >
    > <FORM NAME="mail" method="POST" action="mailto:?
    > subject=Survey Results"


    Problem 1: http://www.isolani.co.uk/articles/mailto.html

    > onSubmit="return
    > <b style="color:black;background-color:#a0ffff">survey()"


    Problem 2: The onsubmit attribute takes a fragment of program code written
    in the language specified in your Content-Script-Type meta data ...

    http://www.w3.org/TR/html4/interact/scripts.html#h-18.2.2.1

    .... and a fragment of HTML is not program code.


    --
    David Dorward
    http://dorward.me.uk/
    http://blog.dorward.me.uk/
     
    David Dorward, Aug 25, 2008
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. John Salerno
    Replies:
    2
    Views:
    498
    John Salerno
    Mar 18, 2006
  2. Holmespundit
    Replies:
    0
    Views:
    486
    Holmespundit
    Sep 1, 2004
  3. cutebravo
    Replies:
    2
    Views:
    318
  4. cutebravo

    Enhance your knowledge and boost your mind

    cutebravo, Jun 6, 2007, in forum: C Programming
    Replies:
    1
    Views:
    276
    Richard Heathfield
    Jun 6, 2007
  5. Replies:
    1
    Views:
    297
Loading...

Share This Page