html

How can I disable "HTML Checking" in NetBeans?

I'm using NetBean's Compile on Save setting, and it's really handy when I'm editing a single file. But when I'm dealing with a pair of (or more) class files and am switching between the files, I have a problem: The Task tab is nearly worthless since it is littered by HTML "error" messages(+) from many dozens of HTML files in the projec...

How do you vertically align images within a list or a div?

Hiya, I have the following code for showing some images: HTML: <div class="footer-logos"> <ul> <li><img src="/sites/default/files/imagefield_thumbs/All Ears Cambodia Logo_1.png" alt="" class="first"></li> <li><img src="/sites/default/files/imagefield_thumbs/MLF rev.jpg" alt="" class=""></li> ...

Problems with CSS and styling input tags for a search bar

Here's the CSS code I'm working with: #navigation input#search_bar { background: url(images/searchbar.png) no-repeat; border: none; height: 20px; width: 156px; margin: 0; } #navigation input#submit { background: url(images/submit.png) no-repeat; width: 30px; ...

how do I resize an original image in an HTML table?

Hi I created a table with 4 rows and 16 columns in HTML and I inserted an image in one cell and text in another until I had all my rows and columns. See my code below. My problem lies with the image: the image size is too big. I don't know how to get it to about the size of a thumbnail. Also the text isn't sitting right next to the imag...

Img tag works when hard coded but not when dynamically inserted via javascript.

If I dynamically generate the img tags they don't show up when they should, but if I hard code the values in there the images show up. Anyone know why this is? According to my jQuery there should be 2 image tags inserted after each input with the class .inputBox HTML: <form action="" method="post" id="myform"> <label for="FirstName...

CSS display inline items briefly show up as list-items when loading page

Hello, I have a Carousel (jcarousel) which displays items inline. When loading, the items first show up vertically (list) and then switch to the normal inline position. I have this on several websites and find it annoying. Is there something that can be done about this ? Thanks ...

Is it "safe" to use schemeless protocol URIs on public websites? Ex. //www.example.com/dir/file

In HTML when referencing images, css, javascript, etc... I sometimes use links without the http or https scheme portion, à la. <img src="//www.example.com/dir/file.gif" alt="" /> and I haven't had any browsers choke on it yet (that I know of). I've seen a few other public sites use it as well, but not many. I even reference the Google ...

Using canvas to grab pixel data from page

Hi canvas experts, If I have a QT video on a page (where QT is a requirement that can't be changed) how can I grab the pixel data of the current frame that is being shown with canvas? I am aware that this is possible with getImage(videoElement, .....) but I am looking for a solution that uses QT. If getting the pixel data is not possib...

Determining codec support for HTML embedded video in Javascript? In native code on Linux?

Hi guys, I'm wondering whether or not it is possible to determine if a machine has codec support to play a file located at a given URL. We are using the embed tag such as <embed src="http://www.tizag.com/files/html/htmlexample.mpeg" autostart="false" /> My guess is it is not possible to determine if a machine has the capability to p...

HTML <base> in Chrome

Is <base href="http://google.com" /> <img src="/intl/en_ALL/images/logo.gif" /> supported in chrome? It works fine in firefox. Specifically, relative image links aren't resolving to the base url. It is for: http://webnumbr.com/create?url=http://google.com Tested in latest of OSX and Windows Chrome (4.0.249.78) ...

jquery .each function

If I have 5 input boxes with the class .inputBox my jquery function adds these tags 5 times after each of the .inputBox lines. Why is that? I just want each of these tags inserted once after each .inputBox. Anyone know how to do that? function addImages() { $(".inputBox").each(function() { $('.inputBox').a...

I need to to open a new window in the background with JavaScript, and make sure the original is still focused

I have a window I'm opening with a Javascript function: function newwindow() { window.open('link.html','','width=,height=,resizable=no'); } I need it that once the new window opens that the focus returns to the original window. How can I do that? And where do I put the code - in the new window, or the old one? Thanks! ...

Drawing a tournament bracket (CSS/HTML based on PHP Dataset).

If you're not familiar with what I mean by tournament bracket, see here: http://baseballguru.com/bracket1.gif That said, I have built the dataset and figured out the number of rounds (ceil(log($numPlayers,2))) and I am comfortable finding the number of players in each round, etc. What I need to do now is move my array of matches for ea...

Hold website position when navigating.

Is there a way to make it so the page doesn't shoot to the top of the site when clicking different links in the navigation bar? e. So say I'm browsing my site and I'm scrolled down a little bit. Then I click on a link that navigates to a different page on my site. It automatically scrolls to the top. Is there a way to make it not do tha...

Horizontal scroll bar in IE7

If you look at http://wilwaldon.com/JLS10/dine.html in ie7 (the devil) you will see a horizontal scroll bar at the bottom of your browser. I've tried to hide the overflow of pretty much every div and i've taken out every element in the layout one by one to see what could be causing this issue. I just can't seem to wrap my brain around it...

DIsplay TIFF or TIF image in TIFF unsupported browser( like IE, Mozilla, Firefox, etc)

Hi all, I can load TIFF image in safari browser. But What should i do to load TIFF image in the TIFF unsupported browser(IE, Mozilla, Firefox, etc) i am unable to install third party installer or controller(like ActiveXController). please give your valuable suggestion to this. ...

render / call .aspx page html into another .aspx page

in my application, i have implemented ajax 4.0 client templates currently my templates resides on same .aspx page. (say Main.aspx) but i want to externalize them.(ie all the HTML would go on another page) for that i have used $.get() like $.get("/Module/getTemp/" + TemplateName, function(result) {... now, i want getTemp function i...

Close iframe cross domain

I am trying to do something similar to the Clipper application here http://www.polyvore.com/cgi/clipper I can make the iframe appear in another website (cross domain). But I cannot make the "close" button to work. This is what I used but it doesn't work for cross domain (basically remove the iframe element) window.parent.document.getE...

CSS + Javascript caching properly; wanting to prevent global page elements from redrawing

My apologies in advance if this turns out to be a novice question. At the moment, my main frustration/oblivion stems from the absolutely confounding nature of performing a search for my particular problem. I am using a variety of htaccess rules to ensure that my css, css images, and javascript files are caching. Based on the header resp...

Javascript embed code that doesn't halt page rendering

I'd like to embed a number from another page. The remote call is small (only returns a number) but I would like the page to keep loading while the request is out. How should I do it? I'm currently doing <span id="target">Loading ...</span> <script> var cb = function(data) { document.getElementById("target").innerHTML = data; } </sc...