html

Rendering HTML Content within Silverlight application

In one of our application it is required to display bullet list in one of the Silverlight 2.0 container. We have decided to use HTML markup text for the same. While there are number of options available on Google like overlaying HTML div container etc., I would like to know what is the most workable way of doing this. ...

ALT text for images in HTML

Hi, We are working on a website that has tons of images and one of the requirement is to have ALT text for each image (JPG, JPEG, PNG, GIF etc). So whenever the HTML shows and image the ALT text for that image is also written to HTML along with IMG SRC. After our discussion with developers the solutions that turned up are 1) Create a...

ASP.NET Screen Scrape Post Simulate

I'm trying to download and parse the HTML of a web page. Recently, the source website moved from having all of their information on one page to hiding part of it behind javascript. There's a "Show All" check box that needs activated in order to view the whole page. Here's the website: Source Website Essentially I'm looking to automate ...

How can I construct images using HTML markup?

I need to display reports and things in HTML using Microsoft's HTMLDocument object. Unfortunately, you can give the document HTML markup, but you cannot give it images. It is only able to display images you get from a URL, e.g.: http:// file:// res:// As a workaround I figured I could construct an image using HTML markup, pixel-by-c...

Need advice on html/css structure for indented, threaded comments

I want to have a comments section in my app that looks like this: response1 response1a response1b response1b1 response2 response2a response2b response2c response2c1 response2c1a response2c1a1 response2c1a1 response2c1a1a response2c1a1a1 I believe it's called threaded comments. You've probably seen thi...

Disable Google Toolbar Autofill

The Google Toolbar's autofill feature has been the bane of my web development existance for the past several years. I have always settled on trying to create a timer control to check for changes since the developers epically failed to fire change events on controls. This has gotten further and further complicated when controls are bur...

How to guess browser compatibility based upon DOM Level?

Is there a simple rule-of-thumb to know approximately which browser versions and upward will be compatible with a given DOM level? ...

How do I make my table body width equal to the table width in HTML?

How do I make my table body width equal to the table width in HTML? ...

Replacing <p>, <div> tags within <td> tags?

I'm working on a specialized HTML stripper. The current stripper replaces <td> tags with tabs then <p> and <div> tags with double carriage-returns. However, when stripping code like this: <td>First Text</td><td style="background:#330000"><p style="color:#660000;text-align:center">Some Text</p></td> It (obviously) produces First Tex...

Is it possible to test for scripting possibilities in the head of the document?

I want to load a specific - additional - style sheet when scripting is disabled in the browser. Is there a nice / clean way to test for that or should I just use a script tag and a document.write() to add the style sheet? ...

left edge of table border is cut off in firefox, but not in IE 6/7, and Safari

This looks fine in safari, but not in firefox 3.0.11 Firefox: http://i31.tinypic.com/11s1d00.png Safari: http://i30.tinypic.com/fnxu2v.png HTML for the table: <table class="placement-testing-schedule"> <tr> <th>Day</th> <th>Date</th> <th>Check-in Begins (Entrance of College Center)</th> <th>Test Begins</th> <th>Registrati...

GreaseMonkey Script

Possible Duplicate: GreaseMonkey Simple Script So I have this page with the html code and I want greasemonkey to replace it by another HTML code that I have. How can it be done ? exemple I have <html> <body> <h1>Cajuda</h1> <p>Oliveira da serra</p> <p>Oliveira da serra</p> <p>Oliveira da serra</p> <p>Oliveira da serra</p> <...

What is a good solution for cross browser javascript redirect with history?

I am currently fighting Google Chrome on the following action: location.href = url location.replace(url) document.location = url window.navigate(url) // doesn't work in Chrome/Firefox location.assign(url) window.open(url, '_self') window.location.href = url I have tried all, and neither will add a history ent...

best way to find end of body tag in html

I'm writing a program to add some code to html files I was going to use a series of indexof and loops to find what is essentially ""X (where X is the spot im looking for) It occurred to me that there might be a more eloquent way of doing this does anyone have any suggestions. what it looks like currently <body onLoad="JavaScript:top...

Weird IE (html table) probem

Can you help me on this because I got lost.... <table id="PollDetails" runat="server" Visible="false"> <tbody> <tr> <td align="right"> Poll Question: </td> <td align="left"> <asp:TextBox ID="txtQuestion" runat="server" Width="300"></asp:TextBox> ...

HTML: Change height of <p>

How do I specify the height of the blank line that inserting a <p> creates? ...

Can i gzip-compress all my html content(pages)

I am trying to find out if there are any principles in defining which pages should be gzip-compressed and to draw a line when to send plain html content. It would be helpful if you guys can share the decisions you took in gzip-compressing a part of your project. ...

How to make an iframe fill an area defined by distance from edges?

I have an iframe which I want to fill all of an area on the page specified by the bottom, right, left, and top css styles. However, when I do the method I would expect to work, it does not: HTML: <iframe id="example_frame" src="http://example.com"&gt;&lt;/iframe&gt; CSS: #example_frame { position: absolute; top: 1em; left: 1em;...

Problem displaying the mysql content in Paragraphs

Hello, I insert questions(which might be a few paragraphs) in a sql table using php and than i diplay them on a webpage. but when i display the question it loses its formatting. I mean it will just show the whole question in one paragraph, even thou there were many paragraphs before. <td width=\"700px\" bgcolor=\"#EAD57F\"><font co...

Maximizing parallel downloads for website

I've been reading articles about speeding up websites by serving static content from a cookieless domain. We have an ASP.NET website with links to images/css/js like <script type="text/javascript" src="/js/something.js"></script> I've been testing out the static content filter from this article and it seems to work great for situatio...