html

Is it safe to omit </TD> and </TR> tags?

According to w3c </TD> and </TR> tags are optional, so the following table is perfectly valid. <table> <tr> <td>google <td>chrome </table> And all browsers I've tested it with render the table fine. I just wanted to ask if this is generally considered safe to use, or if older browsers, which I don't have access to, cause pro...

Do optional closing HTML tags (e.g. </TR>) present extra cost to browser's HTML parser?

As per this recent question, HTML 4 standard indicates that closing </TD>/</TR> tags are optional. The question is, if you write your HTML omitting those closing tags, would that affect the amount of work that the browser's HTML parser must do one way or the other? I realize that the difference - even if there's any effect - would prob...

Why can only my most recently added page element be resized?

I have a webpage where I can click on it to add a image. If I then click on the image it makes it bigger and if I click again it resizes it back to the original size. If I then click somewhere else on the screen I can create another image and grow and shrink this also by clicking on it. The problem is only the latest image can be resized...

HTML layout issue in IE6, please help

Hello I have an HTML document as follows <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" href="style/styles.css" ...

Displaying an image in php from a file in a directory

I have several images in a directory which is located outside of the public facing portion of the server (outside of the public_html directory). I want to be able to read the image contents with a php file, then output the result to html. For example, I have a php file called getimg.php with the following source code: header('Content-...

HTML5 multiple canvas on a single page.

If we use multiple on a single html page does it hamper the performance of the application that is being developed and does the code get very bulky and require more time to load the page? ...

Firefox thinks form is not defined, but IE and Chrome do.

I'm trying to get the value of a drop-down menu selection. Here's my XHTML: <form action="(EmptyReference!)" method="get" name="myForm" id="myForm" onsubmit="myValidation(this)"> <fieldset> <select name="mySelect" id="mySelect"> <option value="o1" selected="selected">Option 1</option> <option valu...

Any good tool to convert HTML entities in HTML documents to plain UTF characters?

I have many HTML documents containing many HTML entities of Unicode code point representation, e.g. &#1576;&#1585;&#1608;&#1581; Is there a good tool to convert HTML entities in multiple HTML documents to plain UTF-8/UTF-16/UTF-32 characters? I want an offline converter tool that can do a batch job for this purpose. ...

Clent-side data storing,DOM storage or HTML5 Local Storage ?

Im really confused when thinking about my requirement to store data locally for offline viewing.Now i have two options,DOM storage and HTML5 Local storage. As im a complete newbiew in this particular topic,i need some help of SO Experts and Gurus. Whats the Advantage and Dis-advantage of these two.?can any one compare these one.,so that ...

Drag and Drop for multiple drop zone

Hi, I have multiple drop zone with div id as unique. How do I get the div id before droping to that perticular div id. Regards, Murthy ...

Dynamical active image areas and event handling in GWT

Hi, I'm using Google web toolkit for some project mapping seismic activity of some land area. The request from users is to create a map which marked points. When user will click on some point, more detailed information is shown. So, I need to be able to draw some particular areas on a common image. Areas should be dynamically drawn (s...

Data structure visualizer for javascript

I am looking for a javascript library which renders an arbitrary (but acyclic) JSON data blob into some sort of semi-interactive HTML view. James Padolsey's Prettyprint library comes close, but its output is very verbose ("object" and "array" headers on everything, for instance), is only marginally interactive (the ability to collapse a...

How to change the background color of GInfoWindowTab

I have the follwing code to display tabbed infowindow but i am not able to change the background color of tabs function createMarker(point, name, address, imagepath, imagelocation) { var marker = new GMarker(point, gicons[imagepath]); var image1 = imagelocation.replace(/\\/g, "/"); var m1 = image1.slice(60, 80); ...

Image refuses to resize even via developer tools?

Hey all, I'm trying to customize a lightbox script (prototype) to make it resize images that are bigger than the viewport. I've successfully inserted a basic proof of concept to resize the lightbox overlay and everything that belongs to it, except for one important detail: the image itself won't resize. I've tried adding the resize fun...

During onHover, how to make HTML dropdown elements adopt a new background color that is unique for each dropdown element?

Is it possible onHover to make HTML dropdown elements adopt a new background color that is unique for each dropdown element? Take the following example: <select> <option value="China"> <option value="Holland"> <option value="France"> </select> I know that you can alter styling according to an attribute's value using CSS3 attribute se...

ASP.Net: How do I disable a ListItem?

Hi there, I've come across an annoying problem that's probably really easy to solve if you're not a newb like myself... I've got a DropDownList in ASP.Net that has a ListItem that requires being disabled... but I DON'T mean Enable="False". And I also don't want to disable the entire DropDownList, just one specific ListItem. What I'm tal...

prevent break out of iframe

I have a iframe in my webpage (facebook like etc.). can i prevent a break out from this iframe? I did not the iframe can data be read at my session / forms etc ...

Classic ASP RegExp small change

Hi, I have some regular expression code that grabs the data between the title tags on a page: <% Function UrlExists(sURL) Dim objXMLHTTP Dim thePage Dim strPTitle Dim blnReturnVal Dim objRegExp Dim strTitleResponse 'Create object Set objXMLHTTP = CreateObject("MSXM...

Differing ascii tables code values ?

Hi, I'm trying to display an extended character on a mobile phone. The ascii value of 160 on my windows machine is á. According to http://slayeroffice.com/tools/ascii/ the ascii value of á is 225. Which one is correct ? Can different hardware devices such as phones have a different ascii character set or do they all follow a standard ...

Need to fill datatable on click of a button. (using control of datatables.net)

I am using a custom control of datatables.net. Hi i need to fill the datatable on click of a button. this is the code that i have written on Load of the form $('#dtlist').dataTable({ "bPaginate": false, "bFilter": false, "bServerSide": true, "bSort": true, "sAjaxSource": 'Aja...