You are here

HTML&CSS&Javascript

Force Internet Explorer to display content in the available highest mode

The X-UA-Compatible meta tag allows web authors to choose what version of Internet Explorer the page should be rendered as. IE11+ have changes to these modes. See IE11 note below.

Error "Access-Control-Allow-Origin" At Android 4.1

One of my Android Hybrid HTML5 app does not work now at Android 4.1.0, but it worked fine on 3.0 and 4.0.

Issue:
The app call one WFS service from other server, this Ajax throw exception:

11-22 14:30:47.062: E/Web Console(734): XMLHttpRequest cannot load http://xxxx Origin null is not allowed by Access-Control-Allow-Origin. at null:1

Solution:

if (Build.VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN) //16
// yourwebview, i use phonegap here
super.appView.getSettings().setAllowUniversalAccessFromFileURLs(true);

Why:

50 Websites that make amazing use of javascript (T)

From : http://www.kriesi.at/archives/50-websites-that-make-amazing-use-of-javascript

 

Since the rise of Javascript frameworks like jQuery, Mootools and
Prototype, developers created stunning javascript solutions and effects
for their websites.

Below are 50 inspiring Websites that make good use of Javascript,
Websites which I have bookmarked over time for inspiration purpose.
Some of them are selected purely on look and feel, some have really
extraordinary Javascript functions implemented.

Page Loading: Animated Progress Indicators (T)

Origianl Source: http://www.webgyver.info/?p=86

If you’re developing AJAX features, or if your database driven web
site requires a few seconds to grab some information, you need some
kind of visual clue, letting your users know that they will have to
wait while something is happening. Right?

Loaders_02

JavaScript Prototype Library Make Google Maps Easily by GPlotter

No JavaScript programming, only need copying and a little compiling with XML data, you can also create your own Google Map. Work with JavaScript Prototype LibraryGPlotter can let you create Google Map in sevral lines of code, without any javascript knowledge.

"GPlotter is a Javascript object which provides a simple interface to plot
markers onto Google Maps using a simple XML file. The interface allows the user

Write J2ME Application by using Javascript?

Do you have interest on developing J2ME application? But you have only some basic javascript and XML knowledge, How? Mojax could help you to develop J2ME applicaiton with javascript and XML, without any Java language.

53 CSS-Techniques You Couldn’t Live Without-and many other CSS and Scripts from smashing magazine

If you are a web designer, I am sure you will like it, 53 CSS-Techniques You Couldn’t Live Without, from a wonderful site, smashing magazine. The webmaster of the site did great effort to collect those things, I really appreciate that! Here I just list some of it, and take it into my bookmark. You can go there to get the full list.
4. CSS Bar Graphs (CSS For Bar Graphs)

CSS-Technique

Subscribe to RSS - HTML&CSS&Javascript