html

HTML form submission from java requires cookies and a popup blocker

I am using POST to submit a form to a web-based login server from a java application. However, the webpage requires both cookies and a popup blocker, which are detected and handled in an init() javascript function: if (document.cookie == "") { alert("Cookies are disabled. Cannot access server with this setting.\nPlease configur...

HTML Select options width is cropped in IE. Any solutions ?

In mozilla and Non IE browsers, if the option of select list is of a greater length than the select's width, it will show up.But in IE. ,It will crop the option up to the select's width.Is there any wasy to make the IE's select's behaviour to be like that of NON IE browsers ? ...

Expand div to max width when float:left is set

I have something like that: <div style="width:100px;float:left">menu</div> <div style="float:left">content</div> both floats are neccesary. I want the content div to fill the whole screen minus those 100px for the menu. If i dont use float the div expands exactly as it should. But how do i set this when float is set? If i use sth like...

Formatting csv file data with html template

I have an csv file, the data, and an HTML file, the template. I want a script that will create an individual html file per record from the csv file, using the html file as a template. Which is the best way to do this in Ruby? Python? Is there a tool/library I can use for this in either language? ...

Semantic Thumbnail Indication

Given the following link to an image: <a href="path/to/img.jpg">Title</a> What is the most semantically sound method for indicating the location of a thumbnail? The best I could come up with so far is using data- attributes like so: <a href="path/to/img.jpg" data-thumb="path/to/thumb.jpg">Title</a> However, it doesn't seem very se...

Testing HTML email rendering

Are there any good tools to easily test how HTML email will look across different email clients? I prefer something with instant feed back rather than a submit and wait service like http://litmusapp.com Or at the very least a way to test the Outlook 2007/MS Word rendering? I found this related question but it doesn't specifically addres...

What is a free, windows-based HTML/CSS page design app?

My little brother would like to start making websites, and I've suggested Frontpage or Dreamweaver. What are good free alternative programs for it? ...

How do you make a flash movie to play full screen mode using javascript?

I have a .swf file I am including in my html document. I'd like to be able to play it in full screen mode. (No browser showing). Is it possible to do this using html / javascript or is this a component of the flash movie itself? ...

How to format content in html textarea as xml on the fly

I have a page that users are able to add xml markup into a text area input. I'd like after they enter it that it be color-coded and formatted as xml would look in an IDE such as Visual Studio. Anybody know of a script or tool that would allow for this within a client-side browser? ...

Make TBODY scrollable in Webkit browsers

I'm aware of this question, but none of the answers work in Safari, Chrome, etc. The accepted strategy (as demonstrated here) is to set the tbody height and overflow properties like so: <table> <thead> <tr><th>This is the header and doesn't scroll</th></tr> </thead> <tbody style="height:100px; overflow:auto;"> ...

XHTML: Why is my nested UL invalid?

The following menu works really fine in the browser, but I cant get it to validate as XHTML. I took this example out of my CSS Book. It says it is right, but seemingly it is not. <ul id="leftNavi"> <li> <a href="#" class="SCL">left menu1</a> </li> <li class="SCNL">left menu2</li> <ul id="subnavi"> <li> <a href="#" ...

POST'ing to a server for the contents of an <iframe>

(First posting, so please be merciful if I'm off on some of the etiquette, markup, etc. :)) Server-side: iframe-contents.php: <?PHP if($_POST['test-post-parameter'] == 'test-post-value'){ echo 'test-post-parameter successfully detected as "test-post-value".'; } else { echo 'test-post-parameter either absent or of a different value t...

Package for creating and validating HTML forms in Python? - to be used in Google Appengine

Is there a well maintained package available in Python for creating and validating HTML forms? I will deploying it finally on Google Appengine. ...

Embed WAVE-files in iPhones' Mobile Safari

Hi, I host a WAVE-file, which plays fine, it's URL is entered in Mobile Safari directly. Trying to embed it in a simple HTML page shows me a "can't play" icon. What's wrong with my embed code? <embed href="http://localhost/test.wav" type="audio/wav"/> ...

How to stop html header content from being included in jquery post results?

I am using jquery's "$.post()" function to add a list entry to the mysql database, in php. $(document).ready(function(){ $(".theSubmit").click(function(){ var content = $("textarea").val(); var listn = $("input[name='list_name']").val(); var groupn = $("input[name='group_name']").val(); $.post("/sec...

[CSS] Layer doesn't stretch to height of containing image

See http://www.martenminkema.nl The layers of each entry only gain the height of the text that it contains. The height of the image isn't taken into account, resulting into troubles with some layout markup in some cases. html: <div id="entry-296" class="hentry entry gedachten"> <a href="http://www.martenminkema.nl/gedachten/2009/06/au...

Why are my images all over sized?

Hello all, I have just setup a wordpress forum and I find that all images are just over sized, Why is this the case? http://rasaasa.com/forum/ Also how can I fix this? Thanks all ...

Compound object in HTML <button> value attribute

If for some reason it were mandatory to associate a <button> with more than one value, is there a good way to do it? For example ... CSV: <button value="Lancelot,Grail,blue">Answer</button> JSON: <button value="{'name':'Lancelot','quest':'Grail','color':'blue'}">Answer</button> In the absence of a good way to do it, is there a ...

Select Nth previous sibling in jQuery?

I'm trying to set up my jQuery selector but I'm not exactly sure how I need to write it. I've got a unordered list that looks something like this: <ul> <li>something</li> <li>something</li> <li>something</li> <li>something</li> <li class="last">something</li> </ul> Now I know if I want to select the last child I c...

Conditional SimpleXML possible?

Hi, I am pulling content from a xml file with simpleXML I was wondering if it is possible to display a certain node depending on the contents of the node. eg. <article> <title>PHP</title> <content>yada yada yada</content> </article> <article> <title>JAVASCRIPT</title> <content>yodo yodo yodo</content> </article> can simpleXML find...