html

putting html inside an iframe (using javascript)

Can I create an empty iframe as a placeholder to later insert html into it? In otherwords, suppose I have an empty iframe with an id, How do I insert html in it? I'm using jquery, if that makes it easier. ...

Insert some java script using HTMLDocumentClass

i would like to insert custom javascript to the head of the page all i have is this HTMLDocumentClass object, does anyone know how to do that? are there any security restrictions??? can i change ids of elemnts that came with the page?? ...

How can I use Java to take a "screenshot" of displayed HTML?

Do you know how to convert (save) HTML to an image? Any format is acceptable: jpg, png, ... I tried this code but it does not correctly convert images from HTML (<img> tag). A solution in Java would be preferred; however, I would appreciation any approach. ...

using jquery-ui

Hi, I'm trying to pop a simple datepicker but can't or I don't know what reason. here's my code: <!DOCTYPE html> <html> <script type="text/javascript" src="jquery/jquery.js"> </script> <link type="text/css" href="css/smoothness/jquery.css" rel="Stylesheet" /> <script type="text/javascript" src="jquery/jquery-ui.js"> </script> <scrip...

page break in HTML

Hi, i want to use page break in html that means the reader cannot scroll down further until he select a link for it. <SPAN id=title><A name=BdToc_1 external=yes><h1 id="BookTitle" align="center"><font color="#B90000"><b>Choose Subject</b></font></h1> </A> </SPAN> <p> Contents.... </p> I want a page break before and after this. Please ...

Style HTML element based on its title using CSS

Hello, Is it possible to apply a style to an HTML element using only its title as a unique identifier? For example: <div class="my_class"> <a href="some site" title="MyTitle">My Link</a> </div> I would like to write a rule that will apply only to link element within a div of class my_class and the link title MyTitle. I do not h...

XHTML Strict Validation.

Really 2 questions. Why is it that these bits of code dont validate to XHTML 1.0 Strict. XHTML 1.0 Strict is a project requirement. Line 2 causes the problem document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag. <for...

Html meta keywords should contain commas?

Hi, is it important to use commas in the meta keywords? What if I don't have the commas? ...

Protecting HTML files with .htaccess

My PHP app uses 404 Documents to generate HTML files so that multiple queries to the same HTML file only cause the generation to run once. I'd like to intercept requests to the HTML files so that the user needs to have an established PHP Session in order to pull up the files. In the best case, SESSION ID would be used in the URL and fo...

Enable a Currently Disabled Dropdown List when Clicking the Dropdown List

Here is the scenario: I have two radio buttons, 1) for a normal customers and 2) for business partners which also has a drop down control so that one of X number of business partners can be selected. When one customer type is selected the other section goes dark with the normal disabling of controls and applying CSS to get that disable...

How can I customize the output from pygments?

If I run a python source file through pygments, it outputs html code whose elements class belong to some CSS file pygments is using. Could the style attributes be included in the outputted html so that I don't have to provide a CSS file? ...

ASP.NET: localize content with mixed HTML formatting

In my application I have paragraphs with mixed static text and HTML formatting and links. I'm looking for a good localization solution that keeps resources decoupled from markup. Let's say we have the following paragraph: <p>Let's have a <a href="someURL">cup of coffee</a> and get <b>energized</b>.</p> Using the standard resx soluti...

How to check whether (X) button in clicked in popup window

Hi, I am trying to set the value to the hidden field in parent window from child window and want to set the value to the parent window only when popup window is closed. This is working fine when i use button to close the window. The script for the button is: onclick="javascript:window.close();" But the same condition fails when ...

How to generate a treeview in html from flexible xml just in client side

Hi, Could anyone please give me an example in this? I have found many but they didn't match my requirement. The treeview must have expand and collapse, the xml is flexible, which means I should test if a node is exist, and there are many may appear many times and with different contents. Also, I need it works just in client side, nothi...

Detecting Current Internet Explorer Security Zone

Is there any method of programmatically determining the current security zone settings for Internet Explorer? I'd like to know when my site will have the XMLHttpRequest ActiveX control blocked due to IE security policy, but before the site actually tries to create it and thus causes the yellow bar to appear up the top (saying "To help p...

Getting column to expand to the same height in a 3 column CSS layout?

Does anyone know what CSS can be applied to these elements to make the side bars expand to the height of the middle div? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt; <html> <head> <title>This is my page</title> <style type="text/css"> body { background-color:#aaaaaa; } ...

JQuery Popup Bubble

Hello all, I'm trying to make a "bubble" that can popup when the onmouseover event is fired and will stay open as long as the mouse is over the item that threw the onmouseover event OR if the mouse is moved into the bubble. My bubble will need to have all manners of html and styling including hyperlinks, images, etc. I've basically acc...

TV guide listing semantics. Isn't it a table?

I need to build a web based TV guide listing. When I started I thought all I need is to build a table since it is a tabular data. date 00:00 00:30 01:00 etc... channel 1 show 1 show 2 show 3 etc... channel 2 show 3 show 4 show 5 etc... but alas this is not the situation. While the <th> are for every 30 min. the sh...

Printing an HTML email that contains a table longer than 1 page

When I try printing an HTML-email with a table that stretches multiple pages then Windows-Mail and IE7 will only print whatever fits on the first page but Firefox prints everything just fine. Any thoughts how I can make the Microsoft products print the entire thing? Regards, Pieter ...

Selecting options from a drop down

I'm building a recipe-finder for a new food blog. The design I have basically involves the user selecting ingredients, one at a time, from a drop down <select>, the option disappearing from the list (so they can't select it again) and appearing on another HTML list with a link to remove it from the list. Once they're done, they click a b...