How to apply CSS to iframe?

How to apply CSS to iframe?

I have a simple page that has some iframe sections (to display RSS links). How can I apply the same CSS format from the main page to the page displayed in the iframe? 1:Edit: This does not work cross domain unless the appropriate CORS he

How can I force overflow: hidden to not use up my padding-right space

How can I force overflow: hidden to not use up my padding-right space

I have the following code:2222222222222222222222111111111111111111111111113333333333333333333(XHTML 1.0 transitional)What happens is that the padding-right doesn't appear, it's occupied by the content, which means the overflow uses up the p

Setting environment variable for CHROME_BIN does not work

Setting environment variable for CHROME_BIN does not work

I'm trying to use Karma for testing my js scripts. In the doc it says I should set the environment variable for CHROME_BIN:I've set it to %programfiles(x86)%"\Google\Chrome\Application\Chrome.exebut when I type %CHROME_BIN% in DOS, it fail

Placeholder CSS not being applied in IE 11

Placeholder CSS not being applied in IE 11

I am getting some problem in applying placeholder css.I am trying to apply css (i.e. color:#898F9C;) on input-box placeholder using pseudo-class selector :-ms-input-placeholder, but it's not working in IE.Demo After some hit and try, I get

Why don't the modern browsers support PUT and DELETE form methods?

Why don't the modern browsers support PUT and DELETE form methods?

I just finished building a RESTful API for one of my latest apps. I also built a simple admin interface scaffolding class that will enumerate resources and build simple forms and tables to edit, create, delete etc.For updating and deleting

Is it possible to programmatically detect the caret position within a  element?

Is it possible to programmatically detect the caret position within a element?

Assuming a regular text-box with data in it. Is it possible to detect (via JavaScript) the position of the text-coursor inside that text-box? I am able to detect an ARROW LEFT or ARROW RIGHT keydown event - but how to detect the cursor l

What would be the best place to start learning AJAX (I have Perl as a backend) [closed]

What would be the best place to start learning AJAX (I have Perl as a backend) [closed]

I am currently developing a website using basic cgi to turn out pages. I would like the website to be changed to have a better (read dynamic) interface.What techniques (if not AJAX) and/or tutorials would you recommend to get me started?

C# code for saving an entire web page? (with images/formatting)

C# code for saving an entire web page? (with images/formatting)

I've been struggling to find an exmample of some C# code (I'm using C# Visual Studio 2008 Express) that can programmatically save an entire web page (given a URL) including the images and formatting (e.g. CSS). The intention is that in a s

JavaScript: How to find out width and height of viewpoint in browser window?

JavaScript: How to find out width and height of viewpoint in browser window?

How to find out width and height of viewpoint in browser window? And How to find out how much document scrolled to down and to right? 1:Try this function... and call it when needed :)function getViewPortSize(){ var viewportwidth; v

Is Http Streaming Comet possible in Safari?

Is Http Streaming Comet possible in Safari?

By HTTP Streaming Comet, I mean the "forever iframe" / "forever xhr" variations that don't close the connection after data has been pushed from the server, as opposed to standard polling and long polling which close and resend a new request

Javascript login form doesn't submit when user hits Enter

Javascript login form doesn't submit when user hits Enter

I'm working on a simple javascript login for a site, and have come up with this:...which works except for one thing: hitting enter to submit the form doesn't do anything. I have a feeling it's cause I've used "onclick" but I'm not sure what

CORS synchronous requests not working in firefox

CORS synchronous requests not working in firefox

The official documentation of jQuery ( async ajax section ) says that: Cross-domain requests and dataType: "jsonp" requests do not support synchronous operation.However this works in all recent browsers but firefox version >= 20. Here is

Decode JPEG2000 bitarray image with Javascript

Decode JPEG2000 bitarray image with Javascript

I'm using HTML5 technology with the FileApi.My problem is very simple, but i'm searching since 2 days ago and I have not find anything on the webI have a DicomFile. I use the FileApi from HTML5 to break it down, and get all the information.

Is there a Telnet library for JavaScript?

Is there a Telnet library for JavaScript?

We have a network camera. It has an HTTP server to provides the current image. There is also a Telnet interface for controlling the camera (i.e. trigger, focus, etc.). I would like to add an HTML page to the camera that would provide a s

Absolutely positioned div on right causing scrollbar when the left doesn't

Absolutely positioned div on right causing scrollbar when the left doesn't

I'm trying to "flank" a centered div with some design elements that are absolutely positioned outside the main div's width. I'm getting a scroll bar due to the element on the right, but not the element on the left (IE6/7/8, Chrome, Firefox)

Test if a browser supports a CSS selector

Test if a browser supports a CSS selector

Really simple: how do I most accurately test if a browser has support for a certain CSS selector?I currently have some CSS code that makes the page a little more interactive by using the :checked selector in CSS, but I want to create a fall

Javascript - Open Link in New Tab (SAME WINDOW)

Javascript - Open Link in New Tab (SAME WINDOW)

I realize there are a couple questions already on SO for this topic, but they all seem to be quite old....just trying to get an up-to-date answer for this:Is the standard way of opening a new tab (within the same browser window) still:windo

Javascript - create desktop link programmatically

Javascript - create desktop link programmatically

Is there a way to programmatically create a desktop link for my webpage? 1:Not from Javascript, but there is a trick to let the users do it. It is more of an interaction design technique rather than programming technique but I'll write i

Making CSS3 @font-face font rendering play nice with ClearType on Windows

Making CSS3 @font-face font rendering play nice with ClearType on Windows

First some background information.It seems that using the CSS3 @font-face rule can interact in unexpected and undesired ways with ClearType font renderingv in any browser, on any version of Windows (XP and above.)I first documented this as

CSS Transparent Border Problem In Firefox 4?

CSS Transparent Border Problem In Firefox 4?

I'm trying to create a pure CSS triangle for a tooltip. All browsers looks fine except for the latest Firefox 4. Here's the code:Untitled Document.arrow { border:50px solid; border-color:#eee transparent transparent transparent; di

Chrome JavaScript developer console: Is it possible to call console.log() without a newline?

Chrome JavaScript developer console: Is it possible to call console.log() without a newline?

I'd like to use console.log() to log messages without appending a new line after each call to console.log(). Is this possible? 1:No, it's not possible. You'll have to keep a string and concatenate if you want it all in one line, or put y

CSS box shadow on container div causes scrollbars

CSS box shadow on container div causes scrollbars

I have a website with the following setup: I use the clearfooter and a footer outside the container to keep the footer at the bottom of the page when there isn't enough content.My problem is that I would like to apply a box shadow o

Support for Websockets on Android

Support for Websockets on Android

I'm about to start a project for a client that has lots of data that needs to be real-time.There are two mobile apps that I will be building with trigger.io, as well as a web UI, and all of these need to stay in sync.I plan to use socket.io

How do I find out the DOM node at cursor in a browser's editable content window using Javascrip

How do I find out the DOM node at cursor in a browser's editable content window using Javascrip

I am looking for a solution that works cross browser i.e. IE, Firefox and Safari. 1:By "editable content window" I'm going to assume you mean an element with contenteditable turned on or a document with designMode turned on.There are als

CKEditor 3.0 Height

CKEditor 3.0 Height

Is there a way to set the height of CKEditor 3.0 to a percentage, such as 100%, such that it takes up the whole window?I am currently using absolute values, but they do not blend well with my UI :(CKEDITOR.replace('editor1',{ height: '60