Category "html"

Form value to be empty if no change by user

I have a form with two inputs: <input type="text" name="keyword" value="Search" onfocus="wipe(this)"/> <input type="text" name="city" value="City" onf

Form value to be empty if no change by user

I have a form with two inputs: <input type="text" name="keyword" value="Search" onfocus="wipe(this)"/> <input type="text" name="city" value="City" onf

Cant link stylesheet

I’m setting up a new website. I launched an Amazon EC2 instance with LAMP using Bitnami and I’m now starting to build the site, however when I try t

How to disable scroll on HTML5 date inputs having a webshim fallback in

I'm trying without success to disable scroll on an HTML5 date input. This input has a webshim fallback, which cause my JS to works with Chrome, but not Firefox.

Is there a java/JS library which can compare two json files and produce comparison result as html?

The idea behind the question is to have some library/tool which can compare two json strings and produce comparison result as html. E.g. the way some online com

<link> vs <a>: when to use one over the other?

I have some confusion between <link> and <a>. I know that in order to add CSS to an HTML document we use the <link> tag, for example: <li

JavaScript, for each hover over change the text color

I have 4 div (colored box) and each div represent a different color. When a user hovers over one of the colored boxes the text to display ("Hello world") should

how to use json file in html code

I have json file mydata.json, and in this file is some json-encoded data. I want obtain this data in file index.html and process this data in JavaScript. But a

Convert HTML5 to Flash

I am using impress.js extensively to create a lot of HTML5 presentations. These presentations need to be displayed on touch-screen kiosks. Unfortunately, the

Trouble getting Conditional CSS with Media Query and Grails

I'm using media queries to import the correct stylesheet (mobile.css or main.css) in my Grails application. If I load the page with my PC, it works fine, when i

Convert HTML5 to Flash

I am using impress.js extensively to create a lot of HTML5 presentations. These presentations need to be displayed on touch-screen kiosks. Unfortunately, the

How does one target specific object of a gui for an event flow?

I'm working on a javascript framework for creating simple animations on an html canvas with nested sprites using a basic composite pattern. I've been modeling

Can't get a div background colour to fill full width of viewport

I'm trying to fill a certain part of the page with a background color. I want the background colour to fill the entire width of the viewport, but have a fixed h

Is it possible for the child of a div set to pointer-events: none to have pointer events?

Is it possible for the child of a div set to pointer-events: none to have pointer events? I need the div that holds another div to allow pointer events to pass

PHP Include for HTML?

I have a navigational bar, an image, and a heading that I'll be including in every page of my website, so I wanted to use php include to refer to this code in s

Wrong value for window.innerWidth during onload event in Firefox for Android?

Okay, so, the problem I am facing is this: my mobile Firefox browser is not retrieving the correct values for window.innerWidth, document.documentElement.client

window.moveTo() wont go futher than half my screen in firefox

I generate a window and then on an event I move that window popup = open("", 'popup', 'top=' + top + ', left=' + left + ', width=' + width + ',height=' + h

Change AngularJS input[date] programmatically

I'm trying to assing an input[date] control an initial value in the controller. From AngularJS input[date] documentation, The model must always be a Date objec

How to keep value of selected value after form submission?

I know there are a lot of questions related to it but believe me, no solution is working for me. <form action="index" method="post" > <s

Cannot approach Typescript enum within HTML

I made an enum with Typescript to use in MyService.service.ts MyComponent.component.ts and MyComponent.component.html. export enum ConnectionResult { Succ