Note that there are some explanatory texts on larger screens.

plurals
  1. POjQuery Mobile input in a popup
    primarykey
    data
    text
    <p>I have a problem with a form that is partially in a popup [the rest is on the page's main <code>div</code>].</p> <pre><code>&lt;body onload="formReset();"&gt; &lt;?php echo "&lt;form action=\"\" method=\"POST\"&gt;&lt;input type=\"submit\" value=\"Main page\"&gt;&lt;/input&gt;&lt;/form&gt;"; ?&gt; &lt;section id="pocetna" data-theme="a" data-role="page" style="background: url('./_images/pekara_bck.jpg'); background-size: auto 700px; background-position: left top; background-repeat: no-repeat;"&gt; &lt;header data-role="header" data-theme="a"&gt; &lt;div data-role="controlgroup" data-type="horizontal"&gt; &lt;a href="#delpop" data-rel="popup" data-theme="a" data-role="button" data-inline="true" data-icon="home" data-iconpos="right"&gt;Deliver&lt;/a&gt; &lt;/div&gt; &lt;div data-role="popup" id="delpop"&gt;&lt;a href="#" data-rel="back" data-role="button" data-theme="a" data-icon="delete" data-iconpos="notext" class="ui-btn-right"&gt;Close&lt;/a&gt; &lt;div style="width: 80%; padding: 15px; margin: 0px auto 0px auto;"&gt; &lt;?php echo "&lt;input type=\"text\" name=\"del_name\" maxlength=\"30\" placeholder=\"Your name\" value=\"\"/&gt;&lt;/br&gt;"; echo "&lt;input type=\"text\" name=\"del_address\" maxlength=\"45\" placeholder=\"Address\" value=\"\"/&gt;&lt;/br&gt;"; echo "&lt;input type=\"text\" name=\"del_phone\" maxlength=\"30\" placeholder=\"Phone\" value=\"\"/&gt;&lt;/br&gt;"; echo "&lt;textarea name=\"del_note\" rows=\"5\" style=\"resize: none; width: 80% height: 150px\" placeholder=\"Note\"&gt;&lt;/textarea&gt;"; ?&gt; &lt;/div&gt; &lt;/div&gt; &lt;/header&gt; </code></pre> <p>The popup works, but when submitted, only the fields that were outside the popup where posted.</p> <p><strong>PS:</strong> -The form opening tag is just after the body tag, so it does include the popup. -One more thing. I need these fields in a pop up. This works when the fields are not in a popup, and don't when they are in a popup. Is there a way to make them work, but still be in a popup?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload