Loading ...
Sorry, an error occurred while loading the content.

Re: [ydn-javascript] RTE in a table td on firefox fails to submit the textarea

Expand Messages
  • dav.glass@yahoo.com
    Keith -- The reason that the form is not being submitted correctly is that having the form tag inside of the table or td is invalid HTML. Firefox will not
    Message 1 of 2 , Oct 2, 2007
    • 0 Attachment
      Keith --

      The reason that the form is not being submitted correctly is that having the form tag inside of the table or td is invalid HTML.

      Firefox will not recognize (from Javascript using el.form) that the textarea is part of the parent form.

      It is best practice to have your form outside of the table, which should work properly..

      Hope that helps :)
      Dav
       
      Dav Glass
      dav.glass@...
      blog.davglass.com
       
       
      + Windows: n. - The most successful computer virus, ever. +
      + A computer without a Microsoft operating system is like a dog
      without bricks tied to its head +
      + A Microsoft Certified Systems Engineer is to computing what a
      McDonalds Certified Food Specialist is to fine cuisine +


      ----- Original Message ----
      From: Keith <kpitcher@...>
      To: ydn-javascript@yahoogroups.com
      Sent: Monday, October 1, 2007 7:51:57 PM
      Subject: [ydn-javascript] RTE in a table td on firefox fails to submit the textarea

      Not sure if this is a known issue :

      If you have a form within a table td cell, the editor makes that
      textarea element not submit on a standard GET or POST - on firefox
      (Win and BSD versions). IE doesn't appear to have this problem.
      haven't tried others.

      example:

      <table>
      <tr>
      <td>
      <form name="form1" id="form1" method="GET" action="testeditort d.php">
      <input type="text" name="text1" id="text1" value="text1" >
      </td>
      <td>
      <textarea name="msgpost" id="msgpost" cols="50" rows="10">
      </textarea>
      </td>
      </tr>
      <tr>
      <td colspan=2>
      <input type="submit" name="submit" value="Submit" />
      </form>
      </td>
      </tr>
      </table>
      ...

      The GET forgets about the textarea entirely and sends :
      ?text1=text1& submit=Submit

      If you put the form elements outside of the table, or you don't use
      the editor, all arguments pass.
      ?text1=text1& msgpost=bob+ %0D%0A+++ +++++++++ ++&submit= Submit

      I've put two examples, the working and the broken, up at
      http://www.keithpit cher.com/ yui/

      Other than being able to repeat it, I have no idea what is at fault here.


    Your message has been successfully submitted and would be delivered to recipients shortly.