<datatag> for Google Chrome - html

I'm working on a search page and <datatag> tag seems to be a great addition. Unfortunately I can't make it work in Chrome (it works in Firefox) and most of my users use Chrome.
Does anyone know what is the Chrome way of auto-completing a search box?

Datalst landed in Chrome Canary
So it will probably work in Chrome 20.

JQuery UI Autocomplete plugin, easy to use, and very much effective :) visit JQuery UI Autocomplete

If the <datalist> element isn't supported in the browser yet (which it appears is not the case for the current Chrome), then you will need to use one of the myriad of JavaScript/jQuery based autocomplete polyfills, like jQuery UI Autocomplete.

Related

Need Solution for browser compatibility issue

Our application is running fine in chrome browser. But in Firefox some features and screens are not working properly. So it needs to be fixed .How can i do that and what could be the solution for that?
The best way to find out what is 'going on' is to debug the code in the browser.
Firefox has a built in debugger but i prefer to use a third party debugger called Firebug.
You should give Firebug a try as indicated in the first answer. However as far as I know you had to install it as Add-on, it is not included in the distribution.
I think your question is a little too general. Anyway, if the compatibility issue is about CSS style, you should check whether you are using WebKit-prefixed CSS only. For example, if you are using -webkit-animation, it would only work in Chrome and Safari. Actually you should set four CSS styles: -webkit-animation, -moz-animation, -o-animation and animation to make your code work in major browsers. There are some documents about Mozilla and WebKit CSS that might help:
https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Mozilla_Extensions
https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Webkit_Extensions

HTML5 chrome browser datalist scrollbar missing

Chrome browser does not seem to have a scrollbar for datalist. It works on firefox and IE, but not chrome. Is this a chrome issue with not keeping up with HTML5 standards? Can I manually add it with CSS?
It’s not much of answer, I know, but from what I’ve read/tried you don’t have any control over how it’s displayed.
I know it’s not really a solution, but you could try using a jQuery plugin that has pretty much the same functionality, but allows for better styling. Untested, but QuickSelect looks it’ll do the same, or you could look for a polyfill.

Google Chrome canvas v5 setLineDash

Does anybody know since which version context.setLineDash([5]) is implemented in Google Chrome?
Found something on twitter:
http://goo.gl/ag7Vx
It looks like chrome supports setLineDash since version 23.
you will probably find your answer in www.caniuse.com
search on the js api, it's a really handy website cos You can also use it for CSS and HTML tags and it tells you everything and on which browsers.

IS there an IE add on for html/css vaildation?

I am looking for a IE9 add on that will clearly show me any html and css validation errors without having to post my source to the w3c validator service.
I know this is possible in firefox (does anyone know what these extensions are called?), but I can't find any for IE.
When you say you dont want to post your source to w3c, if you mean you dont want to do it manually, you can use the F12 development tool in IE9, which posts and validates your source with a click.
If you dont want to send your source for some other reason, you can download the offline validator tidy from w3c.
Firebug in Firefox is also a great tool.
IE8 includes a "Developer Tools" feature, which does a lot of the same things as Firebug.
You can bring up the Developer Tools window by pressing F12.
I haven't installed the final version of IE9 yet, so I can't double check this still works, but I can't imagine any reason they would have removed it.
If that fails, you could try Firebug Lite. Although Firebug is a Firefox add-on, they do also supply a Lite version which is just a Javascript bookmarklet which can be run on any browser. It doesn't have as many features as the full Firebug, but it is handy for times when you don't have anything else. Get it from here: http://getfirebug.com/firebuglite
You can use Firebug Lite (http://getfirebug.com/firebuglite). The original Firebug was an add-on for firefox, but this version runs in all the major browsers and should give you the kind of debugging features you are looking for.

Firebug-like debugger for Google Chrome

Is there anything like Firebug that you can use within Google Chrome?
Essential features I would like:
Inspect HTML source (select elements, delete them, etc.)
check CSS values (the built-in solution is weird, somehow)
There is a Firebug-like tool already built into Chrome. Just right click anywhere on a page and choose "Inspect element" from the menu. Chrome has a graphical tool for debugging (like in Firebug), so you can debug JavaScript. It also does CSS inspection well and can even change CSS rendering on the fly.
For more information, see https://developers.google.com/chrome-developer-tools/
Firebug Lite supports to inspect HTML elements, computed CSS style, and a lot more. Since it's pure JavaScript, it works in many different browsers. Just include the script in your source, or add the bookmarklet to your bookmark bar to include it on any page with a single click.
http://getfirebug.com/lite.html
Just adding some talking points as someone who uses Firebug / Chrome Inspector every day:
At the time of writing, there's only Google DOM inspector and no it doesn't have all the features of Firebug
Inspector is a 'lite' version of Firebug: The interface is not as good IMO, element inspection in both recent versions is now clunky, but Firebug is still better; I find myself trying to find the love for Chrome (since it's a better, faster browser experience), but for development work, it still just sucks for me.
Live preview / modification of DOM / CSS is still way better in Firebug; calculated CSS and box model view are better in Firebug;
Somehow it's just easier to read/use Firebug maybe because of the ease of navigating, manipulating/modifying the document in several key areas? Who knows. I'm used to the interface and I think Chrome Inspector is not as good although this is a subjective thing I admit.
The Cookies/Net tab are extremely useful to me in Firebug. Maybe Chrome Inspector has this now? Last time I checked it did not, because Chrome updates itself in the background without your intervention (gets your consent by default like all good overlords).
Last point: The day that Google Chrome gets a fully-featured Firebug is the day Firefox basically dies for developers because Firefox had 3 years to make Firefox's layout engine Gecko as fast as WebKit and they didn't. Sorry to put it so bluntly but it's the truth.
You see, now everyone wants to move away from Flash in lieu of jQuery motivated by mobile accessibility and interactivity (iPhone, iPad, Android) and JavaScript is 'suddenly' a big deal (that's sarcasm), so that ship has sailed, Firefox. And that makes me sad, as a Mozilla fanperson. Chrome is simply a better browser until Firefox upgrades their JavaScript engine.
F12
I love shortkeys
Try this, it's called Firebug Lite and apparently works with the beta version of Chrome.
You can also find it at:
https://chrome.google.com/extensions/
You can set this bookmarklet in your "Bookmarks Bar" in order to have Firebug lite always available in Chrome/Chromium browser (put this as the URL):
javascript:var firebug=document.createElement('script');firebug.setAttribute('src','http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js');document.body.appendChild(firebug);(function(){if(window.firebug.version){firebug.init();}else{setTimeout(arguments.callee);}})();void(firebug);
Or try user scripts: http://dev.chromium.org/developers/design-documents/user-scripts
jQuerify is the perfect extension to embed jQuery into Chrome Console and is as simple as you can imagine. This extension also indicates if jQuery has been already embedded into a page.
This extension is used to embed jQuery into any page you want. It allows to use jQuery in the console shell (You can invoke Chrome console by Ctrl + Shift + j".).
To embed jQuery into the selected tab click on extension button.
The official Firebug Chrome extension or you can download and package the extension yourself.
https://getfirebug.com/releases/lite/chrome/
Well, it is possible to enable Greasemonkey scripts for Google Chrome so maybe there is a way to sort of install Firebug using this method? Firebug Lite would also work, but it's just not the same feeling as using the full featured one :(
willshouse.com/2009/05/29/install-greasemonkey-for-chrome-a-better-guide/
This doesn't answer your question but, in case you missed it, Chris Pederick's Web Developer is now available for Chrome: https://chrome.google.com/extensions/detail/bfbameneiokkgbdmiekhjnmfkcnldhhm.
Forget everything you all needs this browser independent inspector , dom updater
https://goggles.webmaker.org/en-US
just bookmark and go to any webpage and click that bookmark..
this is actually Mozilla project Goggles , amazing amazing amazing...
F12 (only on Linux and Windows)
OR
Ctrl ⇧ I
(⌥ ⌘ I if you're on Mac)
Please try Firebug Lite for Google Chrome
If you are using Chromium on Ubuntu using the nightly ppa, then you should have the chromium-browser-inspector