html

Why shouldn't professional web developers use Microsoft FrontPage?

I have a workmate with access to a very good IDE. He wants to use Microsoft FrontPage to write his jsps. I know exactly what I want to say to him, but what would you say? I need a concise reason why a professional web app developer would never consider FrontPage. ...

HTML "overlay" which allows clicks to fall through to elements behind it

I'm trying to overlay a element on top of a webpage (to draw arbitrary graphics), and I've come to the point where I can stack it inside of a element on top of everything, but this prevents the user from clicking on any links/buttons/etc. Is there a way to have its content float on top of everything (it's semi-transparent, so you can s...

How to configure firefox to run emacsclientw on certain links?

I've got a Perl script that groks a bunch of log files looking for "interesting" lines, for some definition of interesting. It generates an HTML file which consists of a table whose columns are a timestamp, a filename/linenum reference and the "interesting" bit. What I'd love to do is have the filename/linenum be an actual link that wi...

Can't access index.php in Drupal even after .htaccess modification.

I can't access my index.php file within a subdirectory of my Drupal installation. I can access other subdirectories index files and I can also access the subdirectory and see its contents when I remove the index.php file. I've made changes to my .htaccess file a while back which should allow any index.html, index.php, or index.htm file t...

ignore base href when submitting form, without using Javascript

Many of the web pages I am working on use files such as images and scripts that are mostly on a different domain from the page itself, so I put a base tag in the head of the page. For most purposes, this makes the site easier to work on. However, the page has a form, and I want to make the form submit to the same domain as the page. I wo...

Deactivate link with DOM click event

This question is mainly out of curiosity (I have a different working solution to the issue). Trying to do some basic progressive enhancement: a table should have each row clickable to go to another page using JavaScript. For people w/out JavaScript, there's a link in the first column of each row. If JavaScript is enabled, the links shoul...

Layout elements next to particular paragraphs in text, without using tables

So a webpage displays a long amount of text in paragraph format. The goal is place an element, such as a picture or bit of text, next to paragraph 17 or 26 without changing the paragraph in any way (i.e. the paragraph shouldn't have to wrap around it). Thus far the best way to do this that I can see is wrapping the text in a table, a...

Help me debug annoying error

The error I'm trying to get rid of is there is an additional letter "t" outputted before the rest of the HTML in one of my Zend Framework applications. The "t" is there only in a single action so I'm certain the problem is somewhere there. For illustration HTML markup of the buggy controller action starts like this: t<!DOCTYPE html PUB...

How can I convert an HTML table to CSV?

How do I convert the contents of to CSV format? Is there a library or linux program that does this? This is similiar to copy tables in Internet Explorer, and pasting them into Excel. ...

How can I extract addresses and phone number from HTML?

Is there a library that specializes in parsing such data? ...

Should Links ever have statefull side effects

Hi all, I have made life difficult for the HTML / CSS developers by making any interaction that has a side effect into a button and NOT a hyperlink. For example I changed the "Clear Basket" in a shopping site from a link to a button. On the premise that any action that has a side effect should be a button not a hyperlink. (even tho a ...

Animations not working when triggered from A HREF click in jQuery!

I have noticed a strange thing happening in jQuery and wonder if anyone knows why? Upon clicking the following anchor tag <A ID="catchme" HREF="#">Add Row</A>;, my jQuery script will catch the click and display a hidden table row. The problem is the considerable lag to the redraw operation. Additionally, none of the animations will ...

avoid showing incremental rendering of picture table

i have a website that displays pictures in an html table. When i click on the page, it shows it incrementally loading and resizing the table based on the picture sizes. Is there a better way to do this so i either: wait and show the table once after its ready to rend to avoid the incremental loading: showing some "loading . ." update ...

What is the correct way to replace this html/table code with a div or span

I have this html that I use to create a box look around the title, this is for a flowchart looking page. Fairly straight forward and looks correct. <td> <table align="center" border="0" style="border: thin solid black;" cellpadding="0"> <tr> <td align="center" nowrap style="padding: 5px;" class="h...

Gradient Text Effect in HTML.

How to display gradient fill effects on text without using image in html. ...

html to pdf (not pdf to html) in php

I am a php web developer and in my one project i need to convert some html document (of 30 to 50 pages) into pdf . For this I got following some solutions, among them some are php libraries and some are command line applications. But each has their own advantage and disadvantage. php libraries: Followings are some php libraries i trie...

What exactly is <html> visually?

Does the scroll bar belong to <html> or <body>? I've been writing for every html file,but don't know exactly what it is. ...

JSP/ HTML page resolution

I have to make a JSP/HTML pages. How to fix height and width on JSP for resolution, which will work for all kind of monitor resolution. If you open page then that must be fit and look good in any kind of monitors. Please advise, how to put height and width in JSP. ...

Sort question in Smarty in combination with eval

Smarty is used to render a select and handle the localization: <select name="divisions"> {section name=i loop=$divisions} {assign var='name' value=$divisions[i].name} {assign var='code' value=$divisions[i].code} <option value="{$code}" {if $user.division == $code}selected=yes{/if}> {eval var=$nam...

Function to Sanitize HTML Id attribute in Java

I have coded the next function. But surely someone has a more elegant way to perform this task. /** * * HTML 4 Specification * ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by any number * of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods ("."). * @param s * @re...