as you can see from the title, XSLTSearch doesn't return results when you press Enter key in IE7 like when you click Search button. I do a javascript fix for this, but I'm wondering if there is any other way to fix this.
Actually, it is a macro, created of the ASP.NET user control (with text box and search button), inserted in the template and surrounded with a form which doesn't have the action. I'm not sure what the action should like.
I tried with an action="/search.aspx?search=", but in the HTML source action is always like action="/default.aspx?". Also I noticed that the form id is 'aspnetform' instead 'RunwayMasterForm'.
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0cm;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
p
{mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;
mso-header-margin:35.4pt;
mso-footer-margin:35.4pt;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
Thanks a lot Chris
Your solution works fine.
I created inputs in XSLT instead ASP.Net user control, surround it with a
form which has action attribute set to action="/search.aspx" and it
works just fine.
XSLTSearch : No submit on Enter key press in IE7
Hello,
as you can see from the title, XSLTSearch doesn't return results when you press Enter key in IE7 like when you click Search button. I do a javascript fix for this, but I'm wondering if there is any other way to fix this.
Thnx ahead
Hi,
A couple of questions.
If you have went down the single runat/server form then you will always require JS to submit form successfully.
Cheers,
Chris
Actually, it is a macro, created of the ASP.NET user control (with text box and search button), inserted in the template and surrounded with a form which doesn't have the action.
I'm not sure what the action should like.
I tried with an action="/search.aspx?search=", but in the HTML source action is always like action="/default.aspx?". Also I noticed that the form id is 'aspnetform' instead 'RunwayMasterForm'.
Please advice
Personally I'd not use this usercontrol. I'd write a macro that output the form via xslt. Although you will have implement your own input validation.
Most ASP.NET form websites/apps just surround the full html with a runat server form. This sounds like the approach used here.
My suggested approach creates much cleaner markup, removes the JS dependencies, is more inline with MVC, and generally makes the world a better place.
<!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} p {mso-margin-top-alt:auto; margin-right:0cm; mso-margin-bottom-alt:auto; margin-left:0cm; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} @page Section1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt; mso-header-margin:35.4pt; mso-footer-margin:35.4pt; mso-paper-source:0;} div.Section1 {page:Section1;} -->
Thanks a lot Chris
Your solution works fine.
I created inputs in XSLT instead ASP.Net user control, surround it with a form which has action attribute set to action="/search.aspx" and it works just fine.
is working on a reply...