Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Voice Search doesn't replace 'Search Boards.ie...' text

Options
  • 04-01-2012 11:28am
    #1
    Registered Users Posts: 90 ✭✭


    When I click on the voice search icon and speak to enter some text, the text is entered after the 'Search Boards.ie...' text

    In the attached screenshots I searched for 'test' using voice search, this actually searches for 'Search Boards.ie...test' - clicking on the search box after the voice search->text is entered doesn't clear the search box.

    Clicking on the voice search icon initially focuses on the search box, this clears the 'search boards.ie...' text, but then the voice-to-text box appears with the 'speak now' dialog, this steals the focus away from the search box and since it is still blank the javascript replaces the 'search boards.ie...' text.

    A few different approaches to fix it come to mind, a quick, dirty, and untested solution:
    $('#search .submit').click(function(){
    		if($('#sbutton').attr('value').indexOf('Search Boards.ie...') != -1 )  {
    			if($('#sbutton').attr('value').length > 19) {
    				var x = $('#sbutton').attr('value');
    				x = x.substr($('#sbutton').attr('value').indexOf('Search Boards.ie...'), 19);
    				$('#sbutton').attr('value', x);
    			} else {
    				$('#sbutton').attr('value', '');
    			}
    		}
    });
    


Comments

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.

Advertisement