html

Hide a table column in a nested ListView

I have a ListView inside another ListView, and I'd like to hide a table column in the inner ListView whenever a particular parameter is passed. Given the setup below, how would I hide the ID column (both the header and the data) if the URL contains "...?id=no"? <asp:ListView ID="ProcedureListView" runat="server"> <LayoutTemplate> ...

How to Initiate a Vonage call using a Hyperlink

I'm just finishing a web page for our sales guy to quickly go through a list of contacts. Is it possible to initiate a call from our Vonage line via a Hyperlink? They offer an application called "Click-2-Call" but I hope it's possible to initiate it using only a Hyperlink. ...

Convert HTML + CSS to PDF with PHP?

Ok, I'm now banging my head against a brick wall with this one. I have an HTML (not XHTML) document that renders fine in Firefox 3 and IE 7. It uses fairly basic CSS to style it and renders fine in HTML. I'm now after a way of converting it to PDF. I have tried: DOMPDF: it had huge problems with tables. I factored out my large nes...

ASP.NET advertisement website

I am currently working on a website that is an advertisement portal for businesses. Advertisers can create an account, select various options for listing (State, caregory, etc) and upload a graphic is measured in a multiples of an "unit". An "unit" is an image or a flash file that is 180px wide and 120 high. An advertiser can choose mult...

Make <div> resizeable

Hi! Is there a way to make a <div> container resizeable with drag'n'drop? So that the user can change the size of it using drag'n'drop? Any help would really be appreciated! ...

Best Book(s) for ASP.NET web applications?

I'm looking for a book that can help me setup up web applications using ASP.NET. I'm not looking so much at the coding side (i.e. C# or the .NET framework) of things, but rather the actual building up of a website from scratch. So perhaps the book is more HTML/Javascript/CSS. So basically, I have a 'blank piece of paper', and I want to ...

Is there a Ruby/Python HTML reflow/layout library?

I'm looking for a library in Ruby or Python that would take some HTML and CSS as the input and return data that contains the positions and sizes of the elements. If it helps, I don't need the info for all the elements but just the major divs of the page. ...

Showing flash above content.

I have a page with a tutorial (http://www.poromenos.org/tutorials/bittorrent/download), but the site layout obscures the flash player, which is too wide. Is there a way to show the flash above the content through the z-order (or something else, lightbox-y)? ...

HTML Table cellspacing or padding just top / bottom

can you have cellpadding or spacing just on the top/ bottom as opposed to all (T, B, L, R) ? ...

How to programmatically capture a web page with forced updates.

I need to capture a web site and am looking for an appropriate library or program to do this. The website uses Java Script and pushes updates to the page and I need to capture these as well as the page itself. I am using curl to capture the page itself but I don't know how to capture the updates. Where given a choice I would use C++. Re...

Best Rails HTML Parser

Hi everyone, I know that Hpricot is still a standard but I remember hearing about a faster more expressive HTML parser for Ruby. Does anybody know what it's called and if it is worth switching to from Hpricot?? Thanks in advance ...

HTML frame allocation Problem

I having Trouble in Dividing the HTML frames, I have using following Fields in HTML <table width=900 border="1" cellspacing="10"> <tr> <td width="500" height="170">section1 </td> <td width="400" rowspan=2> section2</td> </tr> <tr> <td width="500" height="400" valign="left"> <div id="response"> </div> ...

What is the best way to center an html element within its containing element?

Let's say you have the following chunk of code: <div id="container"> <someelement>This is any element.</someelement> </div> What's the best CSS I could use to horizontally center "someelement" within its containing div? ...

What are the steps I need to take to add nice java code formatting to my blogger/blogspot blog?

I'm looking for a sequence of steps to add java code formatting to my blogspot blog. I'm really looking for a dummies guide - something so simple a cleaner could follow it if they found it on a piece of paper on the floor. ...

Load JSON at runtime rather than dynamically via AJAX

Hi, I don't think this can be done "cleanly", but I'll ask anyway. I have a system which needs to get a JSON resource via a REST GET call in order to initialize. At the moment the system waits until the onLoad event and fires an ajax request to retrieve the resource, which I don't think is the best way to do it, as the resource is need...

Sanitize html encoded text (#decimal notation) from AntiXSS v3 output

I am tying to make comments in a blog engine XSS-safe. Tried a lot of different approaches but find it very difficult. When I am displaying the comments I am first using Microsoft AntiXss 3.0 to html encode the whole thing. Then I am trying to html decode the safe tags using a whitelist approach. Been looking at Steve Downing's example...

Radio/checkbox alignment in HTML/CSS

What is the cleanest way to align properly radio buttons / checkboxes with text? The only reliable solution which I have been using so far is table based: <table> <tr> <td><input type="radio" name="opt"></td> <td>Option 1</td> </tr> <tr> <td><input type="radio" name="opt"></td> <td>Option 2</td> </tr> </table> This may...

How do you determine what technology a website is built on?

Quite often I come across a nice looking or functional website, and wonder what technology was used to create it. What techniques are available to figure out what a particular website was built with? Few frameworks seem to include any kind of generator meta tag like web editors do. Are there any tell-tale signs of particular languages a...

detect current tab

Is it possible to detect if a page is opened in 2 different browsers? I have built an small app, that stores some data in $_SESSION, and the problem is that when multiple tabs gets opened, the session vars gets overwritten (search filters in a search form) and so the tabs may display the same results for apparently different searches. ...

how to set default location in browse tag

Am doing project in j2ee.I use Browse button. I need to fetch images/files from a folder inside my project folder, everytime.I wish to set my project's folder name as a default location for my browse button.How to do that? am using tis following code in a jsp page: and calling the value in servlet : String image= (String) request.get...