html

Why minify assets and not the markup?

Why do people suggest minifying web assets, such as CSS and JavaScript, but they never suggest the markup be minified? CSS and JavaScript can be used on many various pages while the markup gets loaded each and every time, making minification of markup far more important. ...

Css fluid layout

Hi, Im trying to replicate this layout with html/css: http://reformrevolution.com/ I think im getting close to what I need, but I cant seem able to get rid of the vertical space between divs, wich should be equal to the horizontal gap, and I believe the divs are not "going down" in the right order. Here is the code: <body> <div cla...

IE Bug - content flows over image!

My friends has just asked me to have a look at his site in IE and I found that the content is going over his top image! http://www.skiphire.org/ The site has been created in wordpress so im note sure on how he has gone about making the page! Can anyone point him in the right direction? Thanks ...

Form Builder GUI for PHP

I'm looking around for an open source form building package for PHP, and figured the hive-mob-mind of StackOverflow might be able to tilt me in the right direction. Specifically, I'm looking for a form/survey builder application. I want something that lets an end user use a web based GUI to create and configure/surveys and web-based fo...

Whats the best way to create templates using php?

I have a class that gathers templates and displays the final output after connecting all the templates. class Template{ $private $output = ''; public function Load_Template($template, $data = null){ ob_start(); include($template); $this->output .= ob_get_clean(); } public function Display($add_footer = true){ echo $th...

How to integrate a website with a Java back end?

Is JSF the only option? The HTML front end uses JQuery as a front-end scripting framework. ...

Displaying units on a form input?

I'm currently working with a lot of forms which are expecting different forms of numeric input and I thought that it would be helpful to the user if I could indicate the units next to the input. In other words, if an input expects a dollar amount place a dollar sign to the left side of the input. If the input expects a percentage place...

How to center multiple divs in another div?

Basically I have four divs contained in another div, and I want the four divs to be centered. I have used float: left on the four divs so that they are horizontally next to each other. CSS: <style> .square { float: left; margin:1pt; width:72pt; height:72pt; } .container { text-align:center;...

Templates using php?

Whats the best way to create my own template engine using php, to transfer html templates into actual websites, and replacing the placeholders with the actual data... well, let me solve my own question... class Template{ $private $output = ''; public function Load_Template($template){ ob_start(); include($template); $this-...

Is it possible to peek at the data in a urllib2 response?

I need to detect character encoding in HTTP responses. To do this I look at the headers, then if it's not set in the content-type header I have to peek at the response and look for a "<meta http-equiv='content-type'>" header. I'd like to be able to write a function that looks and works something like this: response = urllib2.urlopen("...

Noscript tag's content being displayed even though JavaScript is enabled?

I've got a very simple snippet of HTML (below) - and both sections seem to be enabled - the script runs and the noscript tag's content shows. What's going on here? <SCRIPT language="JavaScript" type="text/javascript"> // script omitted </SCRIPT> <NOSCRIPT> <IMG SRC="image.jpg" WIDTH=1 HEIGHT=1 BORDER=0 ALT=""/> </NOSCRIPT> ...

Can I store HTML as XML in a Sqlite3 database?

Is it possible to do this? The HTML files in question all conform to: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; EDIT: How would you store a number of HTML pages with sequential IDs associated with them in a database? (Oh, I'm new to databases). EDIT: N...

HTML tidy/cleaning in Ruby 1.9

I'm currently using the RubyTidy Ruby bindings for HTML tidy to make sure HTML I receive is well-formed. Currently this library is the only thing holding me back from getting a Rails application on Ruby 1.9. Are there any alternative libraries out there that will tidy up chunks of HTML on Ruby 1.9? ...

Why would a browser over a slow connection show the raw html (instead of interpreting it)?

I have a few reports of people seeing raw html in their browser (instead of their browser interpreting it). It seems to be happen on slow connections. When this happens, if the user reloads the page, the page is interpreted correctly. Are there any html specific things that would cause this to happen (as opposed to server settings)? ...

With browsers that have full-page zoom, can I use the feature to set zoom for iframes?

I think every browser has user-controllered full-page zoom nowadays. Is it in anyway accessible to developers, via either html, css or javascript? I'd like to provide an iframe, or even a normal frame, and set it to, say, 50% zoom. (Relative to the current zoom of the containing document, ideally.) Is it at all doable? I don't mind if ...

Php Chat implementation

Hai I want to build a web site containing chat. i am working with PHP, I want a code to implement a chat with php .Any one help me to do this? I know Ajax . i don't Know any other languages... ...

Getting a modified preorder tree traversal model (nested set) into a <ul>

Hello everyone, I am trying to get my data which is hierarchically set up with a tree traversal model into an < ul> in order to show on my site. Here is my code: function getCats($) { // retrieve all children of $parent $query = "SELECT max(rght) as max from t_categories"; $row = C_DB::fetchSingleRow($query); $max = $row["max...

How to embed a wave file in html (cross platform)

I want to embed a wave file (or mp3) in html. There is no problem for windows platforms. User can install a windows media player plugin. But WMP does not support linux. Is there any way to do that besides using Flash? ...

mailto: subject= and body= support in email clients

Does anyone know if when sending a html newsletter what kind of support the major email clients have for the subject= and body= parts of the mailto tag? ...

Refresh problem in Firefox

hi friends, In my asp page there is one textbox name "ProductName" if i write any thing in that textbox and refresh that page , textbox is not clear in firefox. But i open this same page in Internet explore and write any thing in textbox and refresh the page, my textbox comes clear why textbox not comes clear in FireFox? This is the ...