html

Escaping HTML in Python

How to escape HTML with characters like – in Python? ...

How can I make a link to invoke the download dialog box rather than it being shown.

How can I modify <a href="someimage">Download this</a> in order to invoke the download dialog box? ...

HTML Tables using JPG images as borders

I'm trying to create a "certificate" for use in an email capmaign. We are trying to maintain compatability with Outlook 2007 and that limits us from using the background property to just load a single picture to display behind the text. I've chopped my borders up in 4 pieces (left, top, right, bottom) and placed them in spanned columns ...

What DOM manipulation can be done on Text nodes?

I'm going through the DOM using childNodes and I have a reference to a Text node, and I need to modify its "inner HTML" .. but I tried and it does not work or have such a property. Apart from replaceChild(), what functions can I use to manipulate the inner HTML of this Text node? ...

Everything inside < > lost, not seen in html ?

I have many source/text file, say file.cpp or file.txt . Now, I want to see all my code/text in browser, so that it will be easy for me to navigate many files. My main motive for doing all this is, I am learning C++ myself, so whenever I learn something new, I create some sample code and then compile and run it. Also, along these codes...

image form submit IE

Hey guys I want a form to be submitted but it just won't work in IE. Altough in mozilla and other browsers it is working. The code: <input type="image" name="zoeken" src="knop_go.jpg" value="zoek" alt="zoek" /> What's the solution for this problem ? ...

jQuery Carousel. How to show the Next or Previous Element only.

Hello, I have a jQuery problem, and I've really tried everything I know (i am so newbie at this) so .. The problem in short is I am doing a simple carousel-like effect. I am using this code. (The div .showarea is the DIV which needs to be rotated (next/prev) but I want to keep only one div shown at a time.) This is the html markup. ...

Displaying html in a table view cell

I am working a rss reader app for iphone . What are my options for displaying entry summary in rss feed ( which could be html) in a tableviewcell without compromising scroll performance . I dont control the feed so html in summary section is out of my control . I am thinking of uiwebview would be my last option ( so rss feeds have im...

Making an element "fixed" if it's being scrolled out

So, I have an element on a webpage that is located under some other elements. This element should, whenever it hits the top of the page be fixed (ie. it shouldn't leave the view.) I've seen this being done on the Webkit Inspector in the resources tab. Does anyone know how to replicate this feature/effect? ...

HTML: Is it possible to have a FORM tag in each TABLE ROW in a XHTML valid way?

Hi, i can best describe this as follows: I want this (entire table in 'editmode' and save button in every row) <table> <tr> <td>Id</td> <td>Name</td> <td>Description</td> <td>&nbsp;</td> </tr> <tr> <td><input type="hidden" name="id" value="1" /></td> <td><input type="text" na...

Preserve `&nbsp;` in NSString?

I want to preserve the entry of &nbsp; in an iPhone application text field. However, logging and subsequent viewing of the UItextField suggest this string is getting turned into a plain old space... When I add &nbsp to the text field, it goes as single characters until the final semicolon, at which point it disappears from the log mess...

Get content between <p></p> tags in asp.net

Hi, I wanna read text between <p></p> tags which comes from database field. I think there may be html reader or something which I can assign the data including html tags retrieved from database to and use innerText(<p>) or something with I can get the text between <p> tags. Is there any way to do something like that. Thanks in advance...

CSS: Is it possible to repeat only part of an image to use it as a background?

i have an image that is a rounded corner rectangle, i use it for the top and bottom part of the background by using: #content_top { /* 760px by 30px */ background: #F7EECF url(images/content_top_bottom_bg.png) no-repeat 0 0 scroll; height: 10px; } #content_bottom { /* 760px by 30px */ background: #F7EECF url(images/content_...

How do I render an external static .htm into my ASP.NET MVC View?

I'm trying to find a way for the website owner to be able to easily edit static html pages and inject them into the master view. I know I can do this with .ASCX files. I even have a route and controller that will inject an .ASCX whose name matches a parameter in the URL. But is there a way to do it with HTML files? For reference, th...

is it good semantic to give a dt more than one dd in the dl?

so i'm thinking something like: <dl> <dt>job title</dt> <dd>job duration</dd> <dd>job description</dd> <dd>company link</dd> </dl> the example is purely make up, so it might not be the best example. but i've come across couple times when there is need for using 2 dd for 1 dt. so do you guys this is good semantic or bad...

xhtml css floats etc help

I'm really thinking of going back to tables because this is just #¤€&/@£ always something.... <div style="float: left; width: 20%"> #1 <a>SmokA</a><br /> <small>Admin</small><br /> <small>2009-08-07</small> </div> <div style="float: right; width: 80%"> I would buy a boat </div> <div style="clear:both"></div> <div style="border-to...

Help with a regex that strips out leading white space.

I am modifying a core function of the Kohana library, the text::auto_p() function. The function describes itself as "nl2br() on steroids". Essentially, it provides <br /> single line breaks, but double line breaks are surrounded with the <p> tags. The limitation I have found with it is that it will but <br />s in a <pre> element. This ...

How to embed video on in HTML page

sorry for the convoluted and subjective question, but multimedia is totally out of my area of expertize. I know there are several alternatives to embed video on a page. There is HTML 5 <video> tag, there is video/ogg content type which seems nobody uses, there is Flash SWF embedding or Flash FLV progressive, I think Silverlight has som...

How do you sketch GUIs/Web Interfaces fast?

I've caught myself for a few days now trying to implement a GUI for my ASP.NET MVC application (specifically a contact management section of it), spending huge amounts of time on the code to position and format everything and then I'm not happy with the result. Part of the time goes into the fact that I'm not too proficient/fast with CSS...

adding an image from a different website in the following html snippet

I'm using FreeWebDesigner to edit a certain website. Please excuse the clunkiness of the html snippet that I am discussing regarding my question. The following snippet would produce the results seen here. <p style="TEXT-ALIGN: center; MARGIN: 0in 0in 0pt" class="MsoNormal" align="center"><font face="Times New Roman"><b style="mso-bidi-f...