ruby on rails - IE9 nested simple_form_for with haml -


I have a page that starts with a form. Inside that form, I tell the information to another page. Inside this render I have to present another for a model. This model is another form. So at this point I have nested form. It works great in all browsers except IE9; I think what IE 9 is trying to do, it looks like when the second form is ending, and it also eliminates the first form, so the nested form After all things get worse, is anyone else in this problem? And how do you fix it?

Guardian file (form):

  = simple_form_for @form do | F | #the_form = Render 'notification',: f => F. Buttons% input {: name = & gt; "Submit" ,: type = & gt; "Submit",: value = & gt; "Submit"}% input {: name = & gt; "Cancel" ,: Type = & gt; "Submit",: value = & gt; "Cancel"}   

Provide a notification file:

  # info% fieldset% Legend form title = f.input: form_id ,: url = & Gt; Form_name_path ,: label = & gt; 'Field name' = render 'model' (the rest of the code breaks here) ...   

Render the modal file:

  .modal.hide .fade .modalBox% h3 Name of new form% a {href: "#", category: "x", title: "close": 'data-rejected' = & gt; "Model"}. IIDREPeter. Model-body = form. Simple_Form_ for New ,: url = & gt; {: Controller = & gt; : Form ,: action = & gt; : Modal_create} do O | = O.input: name ,: label = & gt; 'Name',: required => True = o.input: form_id ,: as = & gt; : Hidden   

This is the last file that I am seeing the problem if I comment on simple_form_for and it will work very well if I leave it, then this rest Will break the form.

HTML does not support nested form. You can have several forms in one page but they should not be nested. As you say: This work is great for me in all browsers because 'you are also having problems working in different versions of the same browser', so avoid doing this.

Webkit tells why not support HTML nested form

  bool HTMLParser :: formCreateErrorCheck (token * t, refptr & lt; node & gt; and results) { // Only create a new look, if we are not already inside // it is in line with the behavior of other browsers (! M_currentFormElement) {m_currentFormElement = New HTMLFormElement (formTag, m_document); Results = m_currentFormElement; PCloserCreateErrorCheck (T, Results); } return false; }    

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -