oulan / iui

Automatically exported from code.google.com/p/iui
MIT License
0 stars 0 forks source link

Problem on From Submit for Search query #121

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Separate form(HTML file) having text box and submit button instead of
dialog box
2. When query is fired HTTP post is called in the controller and in the
form action i have a view defined as action="/main/searchresult"
3. It redirects and gives me the result of the search in another view named
"searchresult"

What is the expected output? What do you see instead?

The output is coming as expected, but the Style Sheet effects are lost.I
reach this page from contacts->search contacts which happens through normal
horizontal scrolling effect and with back button as provided by IUI plugin, 
BUT when i submit the form in the search query i just get a plane HTML file
with my results without the back button and the IUI iPhone look and feel.

Please use labels and text to provide additional information.

Here is my code in the form-
<ul id="searchlead"   title="Contact Search">
<form id="searchlead"    action="/main/searchresult">
    <fieldset>
            <div class="roundRect">
                <table width=100%>
                    <tr width=100%>
                        <td width=10%>                          
                <p>Name</p>
                </td>
                <td>
            <%= text_field :lead ,:name,:class=>'roundRect' %>

            </td>
            </tr>
            <tr>
                <td><%= submit_tag 'Search'%> </td>
                </tr>
            </table>
            </div>
            </fieldset>
            </form>

</ul>

AND here is my search result view file-

<ul id="searchresult" title="Lead List" >
    <%while 1%>
    <%if @index>@length
break 
end %>

    <li>
                <img class="alignedImage" src="../../images/SIMport.png"
border="0"/><%=link_to((@r[@index][1]),{:controller=>'main',:action=>'morecdetai
ls',:guid=>@r[@index][0]})%>

   <p style="padding-left:60px; font-size:14;">
       <%=@r[@index][3]%>
   </p>
    </li>

    <%@index=@index+1%>
    <%end%>
</ul>

Original issue reported on code.google.com by toomuch6...@gmail.com on 24 Feb 2009 at 7:17

GoogleCodeExporter commented 9 years ago
Are you sure this is an iUI problem?  Can you reproduce it in a reduced 
complexity setup.  Mostly static HTML.

Original comment by msgilli...@gmail.com on 15 Sep 2009 at 9:15

GoogleCodeExporter commented 9 years ago
This bug report is unclear and the reporter didn't provide additional 
information.
I'm closing it out as invalid.

Original comment by msgilli...@gmail.com on 12 Apr 2012 at 4:46