So am trying to make an html5 speech button
i want something like that button in Google translate website
http://translate.google.com if you visited the website in chrome you will find a speech to text input the one that Google offers with chrome browsers
so i took a look at the HTML code and i found this
<input id="gt-speech-in" type="text" speech="speech" x-webkit-speech="x-webkit-speech"
x-webkit-grammar="builtin:translate" size="1" lang="en" style="" tabindex="-3">
which does not output a button like it was in translate.google it just outputs a small text input
so how can a change it into a button or make it smaller so it can look like a button?
In Chrome the snippet above does display the input microphone, and you can control the size of the text entry field in the style eg:
<input id="gt-speech-in" type="text" speech="speech" x-webkit-speech="x-webkit-speech"
x-webkit-grammar="builtin:translate" size="1" lang="en" style="width:200px;" tabindex="-3">
Are you trying to get anythng additional to display on the form (or get it to work in a non-Chrome environment)?
Related
Below is what I have come up with So far:
<input type="text" id="Copymachine" onclick="select_all(this)" class="text-center form-control" placeholder="username:password">
I have a button. I can select the text I want from the page, but can not figure out how to now, copy to clip board and paste from clipboard to "New Text Document (3)" a .txt file on my desktop.
In other words I want to be able to click the text thats generate and in one click, highlight it and paste it into a .txt on the desktop.
I was going to add the Java tag. I am unfamiliar with web coding.
You can use this javascript snippet:
<input onClick="this.select();" value="Sample Text" />
But apparently it doesn't work on mobile Safari. In those cases you can use:
<input onClick="this.setSelectionRange(0, this.value.length)" value="Sample Text" />
I want to have a file upload using php. my problem simple in the CSS I make:
<input name="ufile" type="file" id="ufile" size="50" />
it just show the browse button.
I want to have like a text box with the browse button to show the file address after upload it.
I know that :
<input name="ufile" type="file" id="ufile" size="50" />
will show the text box as will as the browse button but I tried it on firefox and chrome nothing showed just the button not text box. does anybody have any idea about that? why the text box is not shown???
I've tested your html above and it worked in Firefox and IE 9. My guess is that you have some CSS within your webpage that is affecting the file input. You could try use Firebug of developer tools in Chrome to inspect the input to see what css rules are being applied.
How can we enter another language other English in a text box in a html page
For example i have text box where we enter name and we provide different buttons
<html>
<body>
<form>
NAME:<input type="text" name="name"/>
<button>English</button>
<button>Latin</button>
</form>
</body>
</html>
Now based on the button clicked the text entering mode should be changed
How can i get this
There is a way out for this by changing browser settings... You can set your browser language and can accept required input language from keyboard... however this will be too limited... you can accept only those which browser... and this implementation will be browser specific...
Please refer this link for further information.
i do not think there is way for this in the programming... either in java script (or) in HTML
because I am having some problems about when using onblur/onkeydown (for tabs) etcetera.
I 'd like to ask this question:
if I have a page with just one input text and I go there and I click the "tab" where is the focus going ? I'd like to know because I'd like to force the input text not to lose focus...
My page is like this:
<!docType>
<html>
<body>
<div><input type='text' /></div>
</body>
</html>
If you want to focus specifically that text field than use autofocus attribute
<input type="text" autofocus />
Or if you want to map the tabs in a custom way use tabindex attribute
Tab 2<br />
Tab 1<br />
Tab 3
When there is 1 input text field and there's nothing after that, not even a link than probably the focus will go to the address bar of the browser, or probably it will move to add on bar if the user is having any browser add on, on the add-on bar
In Chrome when you tab away from an input and there are no other elements with tab index on the page the focus changes to the browser's URL bar. There probably won't be anything you can do to prevent this happening.
When you tab again it will return to that element - again provided it's the only element on the page with a tab index.
When you then click back onto the page (not the input) the focus isn't naturally restored to the input field (again, testing in Chrome here), so you may need to use JavaScript to force the focus upon the element.
In firefox it looks like a text field that you click on and i just need a button like safari renders..Is there a way to not display the text field looking file upload in firefox
Asked many times before:
How can I style a file input field in Firefox?
Styling an input type="file" button
How to style "input file" with CSS3 / Javascript?
https://stackoverflow.com/questions/3984815/jquery-best-way-to-style-a-input-file-tag
Can we change <input type="file"> style?
Style of input=File as a button