Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • nomis35 6 posts 20 karma points
    Jul 29, 2009 @ 20:38
    nomis35
    0

    small feature change

    This is probably something really easy, but in my Umbraco install, using UMBSearch2 (which is of course, a great package!) - when I place a search box on a page, I am unable to submit the search by just pressing Enter, I have to click the button.

    Is there any way to change this action?, as I have some users who don't seem to be able to grasp the concept of clicking rather than hitting the Enter key.

  • Thomas Höhler 1237 posts 1709 karma points MVP
    Jul 29, 2009 @ 22:57
    Thomas Höhler
    0

    Just use jQuery to submit the form...

    Thomas

  • nomis35 6 posts 20 karma points
    Jul 30, 2009 @ 20:38
    nomis35
    0

    after a bit of 'googling', I've managed to find a fix that works for me:

    change searchbox.ascx to the following: (add the bold text)

    <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SearchBox.ascx.cs" Inherits="UmbSearch2.UserControls.SearchBox" %>
    <asp:Panel ID="_pnlsearch" DefaultButton="btnSearch" runat="server">
    <asp:TextBox ID="txtInput" runat="server" Width="250px"></asp:TextBox>&nbsp;
    <asp:Button ID="btnSearch" runat="server" Text="Search" onclick="btnSearch_Click" /><br />
    </asp:Panel>

  • Hans 23 posts 57 karma points
    Aug 04, 2009 @ 14:29
    Hans
    0

    Hi all,

    This is indeed something I had forgotten. Version 1.2 will have this feature. I will upload v1.2 today!

Please Sign in or register to post replies

Write your reply to:

Draft