html

Javascript pop-up over Vimeo video - CSS layout order

Is there such thing as a layer or an order of items that conflict in the same space? I have a pop-up signin box, somewhat similar to Twitter.com, but when it pops open, it is behind a Vimeo video in the middle of the screen. Is there a CSS style to make it appear on top of the video instead of behind it? In graphic design tools there ...

Iphone programming IOS4 - add video to HTML code in JSON wrapper

Hello, I am writing an application which is based in HTML and has a JSON wrapper in the app. After the 4.0.2 update the iphone does not play video files properly anymore. All the code to play video files is based in HTML but after the update it shows the play button only and I can not click on the video to play it. The file is loca...

Print a "tree" structure in JSP page

Hi, I'm trying to print out a "tree" structure in my JSP page that looks something like this: Root | |----Dependencies | |----A | |----B | |----C | |----Dependents |----D |----E I'm hoping that someone around here knows of some utility that would help me do my job (it can use any technol...

Insert javascript file inside iframe

I'm trying to do the following: <iframe width="300"> <script type="text/javascript" src="file.js" charset="utf-8"></script> </iframe> But this constructions seems not working. What is the legitimate way to insert javascript file inside iframe using HTML and not calling javascript functions? Is it even possible? ...

hidden background image in IE

I have an edit button which appears on the page when users have access to edit. I've implemented it as a link: <a class='editlink' href='edit.html'></a> My corresponding css renders the editlink class as a pencil icon: .editlink{ background-image: url(../img/pencil.png); background-repeat:no-repeat; padding: 2px 8px; } This work...

Links require 2 clicks in Safari & chrome, but only 1 in Firefox

I'm working on this site http://church.allthingswebdesign.com and the links on the left require 2 clicks to get the li's to slide in, while in FF you only have to click it once. The desired result is to only have a user click it once. Here's my jQuery: //slides the left sidebar links when the button is clicked $('div.links').hide(); $(...

How can I make an entire HTML form "readonly" ? Server side only, please

Edit again: Surely this is standard stuff? I can't be reinventing the wheel??!! User fills in a form & you show it to him (using PHP, but that should not matter). YOu show it to him as confirmation, so he should not be able to attempt to change it again ... See related question, http://stackoverflow.com/questions/3503397/how-to...

Why does the last row of the table have a bigger height than the rest?

On this page http://church.allthingswebdesign.com/Calendar.php the last row of the table is bigger than the rest of the rows. Can anyone tell me why? ...

Examples of html menus for very large number of categories and sub categories? (tens or hundreds)

I will work on site which will have a very large number of categories and subcategories (could go multiple levels deep), coming from the database. All these categories needs to be showing in the home page so users can navigate to their desired categories in one link. Displaying all of them could be a UI challenge. Any examples of webs...

What is the safest way to extract <title> from an HTML file using xpath?

Here is my current xpath code "/html/head/title". But you know, in the real world html environment, the code format usually broken, e.g. <html> tag is missing could cause an exception. So, I would like to know if there's a safe way to extract the <title> tag? (something like getElementByTagName) ...

What is the boundary in multipart/form-data?

Hi, everyone, I want to ask a question about the multipart/form-data. In the HTTP header, I find that the Content-Type: multipart/form-data; boundary=???. Is the ??? free define by the user? or it is general from the HTML? Is it possible for me to define the ??? = abcdefg? Thank you. ...

<pre> tag making browsers close paragraphs

Hi, I'm having an issue with the HTML below: <html> <body> <p style="font-size: large"> Some paragraph text <span><pre style="display:inline">some span text</pre></span> additional paragraph text that continues ... </p> </body> </html> So this is just a paragraph that contains some preformatted...

HTML with event.preventDefault

If the html document is disabled. (no scrolling...) document.ontouchmove = function(event){ event.preventDefault(); } Can I selectively enabled elements in the html document? such as a div, span What javascript should I use to do that? ...

HTML::Element -> Replace text node with new HTML::Element

How to replace a text node with new <p>test</p> in HTML::Element? Thanks in advance. ...

Contain table within div

Given this example (http://jsfiddle.net/A8gHg/, code also below), try making your window smaller such that the size of the example is squished. <div style="background-color:blue"> <table style="width:100%"> <tr> <td> <input type="text" style="width:150px"/> </td> <td> ...

HTML/CSS Float Right inside <p>

I have this code: <p><a href="#">Blah</a> | <span>stuff</span><span>1</span><span>dfh5heh</span> | June 17, 2010 <a href="#" style="float:right;">46884</a></p> It's very trivial, but it doesn't render the same in IE8 and Firefox 3. I would assume that it renders incorrectly in IE8 as opposed to Firefox. The above code lists some stu...

Creating a <div> at runtime

I want to know whether i can create <div> at runtime using JavaScript or any other method: when clicking a button on one <div> another <div> should appear, and both <div>s should lay above the html page below (i.e floating <div>s). ...

Problem using window.location in a function called from onsubmit

I'm currently creating a very small form on my homepage using HTML and JavaScript. I've run into a problem I'm pretty sure I could circumvent somehow (probably in a pretty ugly way though), but I got interested in why this error appears. I have a form on my page which I specify in the following way: <FORM name="form1" onsubmit="submitT...

Internet explorer not displaying page properly!

Hi All, Okay. I bought a website template a few weeks back. It worked perfectly on all browsers. I use Flock (based on Chromium) all the time. And just now, my friend informed me that when viewing my site on Internet Explorer, everything is displayed to the left of the browser window. He also viewed my site yesterday. And yesterday i...

Specify clickable phone-number

With mailto: exisits a widely available possibility to specify an email address that opens the email-client if executed. Does exist somethin similar for phone-numbers, so that if it's used in a html-link or in a .net Process.Start-call, a mobile or a pc with a modem will call the specified number? ...