html

.NET WinForms HTML editor component

We're looking for a .NET component for HTML editing in WinForms. I've seen this post, and that's kind of what we're using now, but it's pretty old and crufty, I'm looking for a cleaner solution. I don't really have the time (or right now, the inclination) to write our own from scratch...and am hoping there's a commercial/free solution ou...

Progressive enhancement, behavior when pages are not fully loaded yet

Hi all, I'm developing sites using progressive enhancement implemented completely in jQuery. For instance, I'm adding onclick event handlers dynamically to anchor tags to play linked MP3 files "inline" using SoundManager and popping up Youtube players for Youtube links, through $(document).ready(function()). However, if the user click...

javascript : multple forms with designated fields

This is probably a very basic javscript question but here it goes. say i have 2 forms which are dynamically generated <form name=test1 method=get action=insertaction> <input type=text name=desc value=2> <input type=button onclick="document.test1.submit();" value=submit> </form> <form name=test2 method=get action=insertaction> <inp...

What are asp .net validators rendered into in HTML?

Are all asp net validators rendered as < span> tags? This is important as spans are being used in the styling and a strict css heiracrchy is in place and I don't want to add redundant < span> tags around what will be rendered at runtime. ...

Colspan doesn't work with <td> width set? (IE7)

Hi, I can't get colspan to work when I use a fixed width (IE 7)? Why?! Sample Code: <html> <head> <style> .inputGroup td { width:250px; } </style> </head> <body> <table class="inputGroup"> <tr> <td>cell1</td> <td>cell2</td> </tr> <tr> <td colspan="2">This should span two columns but it doesnt...

is it true that HTML still has a role in page layout?

I think the ideal is to use CSS purely for the layout and presentation, and HTML for the content. But let's say, the company wants to change a "Related articles" box from the bottom of the page to the top of the page. In such case, won't using CSS alone be not an ideal solution, but is better to alter the HTML as well? So as things ar...

Show SVG files on Sharepoint 2007

I'm building a WSS site which has to show SVG files stored on WSS. I'm trying to use <object> tag to show it and it doesn't show, however, if I use <embed> it works ok. Im'using IE8 and IE7 I've been reading and everyone tells IE prefers <Object> over <embed>, but in WSS it doesn't work this way. To display the file I'm using a web co...

Unwanted spacing below images in XHTML 1.0 Strict

Hey all- My goal is to use the XHTML 1.0 Strict DOCTYPE for this page I'm working on, but I'm running into some weird design issues.. I have the below code: <div><img src="photos/someimage.jpg" alt="Title" /></div> When I load the page with DOCTYPE set to 1.0 Strict, a little gap of spacing is added below the image, within the div. ...

How can I show a hyperlinked image with two different size/color borders around it?

I'm trying to figure out the css to display an image with a 1px black border then a 9px white border around that. Is there an easy way to do this? The div around image answer almost works, but I still have big gaps on either side of my image (outside of the 1px border and inside of the 9px border). It seems like the div tag is stretchin...

Should I use window.navigate or document.location in JavaScript?

What's the preferred method to use to change the location of the current web page using JavaScript? I've seen both window.navigate and document.location used. Are there any differences in behavior? Are there differences in browser implementations? ...

Formatting html dates and numbers on the fly

Hi i have some html like so: <tr> <td><%# Eval("Num") %></td> <td><%# Eval("myDate") %></td> </tr> </table> How can I apply formatting to the first value like: DataFormatString="{0:f4} and to the date like: DataFormatString="{0:dd MMM yyyy} I usually use a dataGrid where I can use the above properties in the ...

How can I make an HTML table sortable with javascript without loading data via AJAX?

How can I make a table sortable using javascript without loading data via AJAX? More specifically, I'm looking for a solution that gives me the following: Works on a plain old HTML table Makes columns sortable using a natural comparison Is agnostic of server-side technology (should be portable regardless of whether the tables are bein...

How to keep PHP 'View Source' html output clean

This has been bugging me today after checking the source out on a site. I use PHP output in my templates for dynamic content. The templates start out in html only, and are cleanly indented and formatted. The PHP content is then added in and indented to match the html formating. <ul> <li>nav1</li> <li>nav2</li> <li>nav3</li> </ul>...

IMAP4_SSL with gmail in python

We are retrieving mails from our gmail account using IMAP4_SSL and python. The email body is retrieved in html format. We need to convert that to plaintext. Can anyone help us with that? ...

FrontPage tags - Pain in da HTML

I have a webapplication, developed and ready to be deployed. The web part of it was designed using M$ FrontPage. None of the developers cared about proprietary weird tags that FrontPage inserts into HTML. I don't remember tags on top of my head, but I remember seeing tags such as <webbot> and etc. Now, my client doesn't want to see a bun...

960 css framework

Hi Guys, Am evaluating 960 gs css framework for using on my site. Does anyone knows any big company that uses this framework to there sites? Thanks ...

XSLT to flatten XML hierarchy to HTML table

I’ve got some hierarchical XML like this: <node text="a" value="1"> <node text="gga" value="5"> <node text="dh" value="9"> <node text="tyfg" value="4"> </node> </node> </node> <node text="dfhgf" value="7"> <node text="fdsg" value="2"> </node> </node> </node> The names of the elemen...

How can I convert a Html file to a pdf file in Delphi

Which library or component can do this in a easy way and not too expensive. Edit: Oeps: I should have informed you that it is web app. and we can't rely on the the user have PDF driver installed. ...

Div height:0px does not work?

<div style="height:0px;max-height:0px"> </div> Setting a div height to 0px does not seem to work. The div expands to show its contents, how do we prevent this from happening? ...

where are my visitors going?

What is an easy way to track which external links visitors click on (on my site)? I don't want to route them through my page, e.g., href = $my-url?url=$external-url. Is there an easy JavaScript-solution? ...