Hi All,
for one particular reason ( particular div layouts to enable opaque text on on transparent div), my end form tag is appearing before my single text box, as shown below :
<div id='redeem-box' style='padding:8px;float:left;'> <% form_remote_tag(:update=>'yourpoints', :url => { :controller=>'promotioncodes', :action=>'redeem_code'},:method=>'post' ) do %> <%= link_to_remote image_tag('../images/redeem_code_bttn.png'), { :url => {:controller=>'promotioncodes',:action => 'checkvalidity' }, :with => 'code='+encodeURIComponent(code) } %> </div> <div id='testa' style='width:40%;height:25px;position:relative;top: 37%;left:35px;'> <%= text_field_tag :code, params[:code],:size=>'25px',:style=>'margin-top:5px;height:25px;border- width:1px;border-color:white;font-size:13px;' %><p><br></br> </div> <% end %>
Source code from mozilla shows clearly that the end form tag appears before my text box. And also, I'm forced to use this layout to avoid my textbox from being transparent.
That's why I'm using encoreURIComponent in my link_to_remote tag.
But not functionning right now...
Does anyone know how I can solve this.
Regards,
Joel