html

rowspan do not work with thead and tbody.

Hi, I am trying to use rowspan in a table with thead and tbody ex. <table> <thead> <tr> <td rowspan="2">test</td> <td>Initials</td> </tr> </thead> <tbody> <tr> <td>&#160;</td> </tr> </tbody> But it does not allow me to do it. Is there a way arround? Or do I have to remove the thead and t...

Removing javascript code from within a Table column

This question is in continuation to my existing thread. Below given is a code section. There is a javascript code embedded inside a Table column tag. I want to get rid of the script tag. What can be the other way of calling that javascript function that resides in a separate .js file. <tr> <td width="599" height="154" valig...

How do I do an <ol> with decimals?

Looking to create a list like this: 1. Section Header 1.1 Some Text Here That is Quite Long 1.2 Some Text Here That is Quite Long 1.3 Some Text Here That is Quite Long 2. Section Header 2.1 Some Text Here That is Quite Long 2.2 Some Text Here That is Quite Long 2.3 Some Text Here That is Quite Long but ideally ...

What is the best way to uniquely identify a DOM node ?

What is a way to uniquely identify all DOM nodes in an HTML document. To illustrate what I mean, here is a (fictional) example: Script X randomly selects a DOM node from document.html. Script X needs to tell script Y which DOM node it has chosen. How does script X uniquely identify the DOM node it has chosen so that script Y knows exac...

Keyboard selecting nested li's with jquery

I have a load of nested <ul>'s and <li>'s and I would like to be able to have a hover / selected class on an <li>, and use the keyboard up and down buttons to select up and down on the <li>s.. however they are nested and need to jump across <ul>s if necessary. For instance: <ul> <li class='cat'> cat 1 <ul> ...

Linking to location on page (#id) through ASP.NET MVC mechanisms?

My example: I have a View that presents a set of div tags that has content populated from the datamodel. [Multiple of these, with different location_id, naturally] <div> <a name="location_id"></a> Content </div> Now, I have a form [in its own view] that submits content that adds another record to the datamodel. Once the reco...

select multiple files in file upload in php?

i know that php doesn't allow you to select multiple files to upload in one box. is there a work around or do you have to learn another language for it? ...

Escape special characters

Hi, My code below seems to be encoding special charcters how do I get it to escape these? str1 += myGridView.Rows[idx].Cells[2].Text + ";"; When i check the grid view html source the table cell text is = 'http://news.google.co.uk/nwshp?ie=UTF-8&amp;hl=en&amp;tab=wn&amp;q=Clifford+Chance&amp;output=rss' But the value for str1 is 'ht...

Event for textarea changes

I have a JavaScript library that updates a hidden <textarea> HTML element with some data based on some things. In my (JavaScript) application I'd like to know when these updates occur without having to go through the existing library code. I was hoping there was an event for this, but apparently not. How would I listen for changes of ...

Shifting elements in a div with overflow auto

Hi, I am experiencing problem with the layout of a page where my controls are shifting when I attempt to change the class using a javascript event. Can anyone help with some ideas around the problem. It only seems to be a problem in IE when the left scroll bar appears. Here is an example of the html <div id="container" style="overfl...

HTML validation and loading times

Does having (approx 100) HTML validation errors affect my page loading speeds? Currently the errors on my pages don't break the page in ANY browser, but I'd spend time and clear those anyhow if it would improve my page loading speed? If not on desktops, how about mobile devices like iPhone or Android? (For example, N1 and Droid load pag...

Dynamically populate a list in Div

I want to dynamically populate an un-ordered list in a Div section. But, I want it on page load and I couldn't find any onload event in the Div tag. I want to make an AJAX request to load list from a .php file. Which event to capture? ...

Are these style recognized by all browsers of all versions?

#parent div { float:right; } #parent > div { float:right; } Most importantly:firefox and IE ...

Iframe and browser history

I have this very simple asp.net page: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!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 runat="server"> <tit...

Formating a database generated list of links into 4 columns

I have a database query that returns an IList with 12 results in it. Each result is a link and I would like to format my results so that I get 4 lists of 3 results side by side, kind of like this: item1 item4 item7 item10 item2 item5 item8 item11 item3 item6 item9 item12 Also, I c...

Javascript and href in anchor tags

Can JavaScript see the target name of a window that was opened by a regular "href". Here is an example: <a href="http://www.cnn.com" target="_blanknewWindow" name="NewWindowName"> ...

Div's side by side with varied width Div scrollable

I want to have two div's side-by-side with the left one fixed and the right one filling the rest of the screen. However, when the right div contains content which goes beyond its available width, the right-hand div should not drop below the left Div but become scrollable. That is, the two Div remain side-by-side and the right Div has a ...

Equivalent of HTMLLoader class for an AS3 only project?

Hi I'm building an as3 only web application and want to be able to include external html content within a flash 'window'. In AIR there is the flash.html.HTMLLoader class which makes this possible. Can anyone point to an example of this being done in a flash as opposed to AIR application? ...

Getting visual representation of a HTML DOM

Hello, I am trying to extract specific content(links, text, images) from an HTML page. Is there some program out there that I can use to produce a visual representation of the DOM model of the page? I know I could I write such a program in Java using an HTML parser, but before I do that, I thought I would see if there already exists such...

Transparent frameset in iframe ie white background

I'm trying to nest a frameset in an iframe and I can't get the background of the frameset to show as transparent in IE. Firefox displays correctly. Here's the iframe: <iframe src="frameset.html" name="myframe" width="500" height="500" frameborder="0" allowtransparency="true"></iframe> And this is Frameset.html: <!DOCTYPE html PUBLIC...