html

why is the table border not showing in this html table

I have a simple html table like this: http://jsbin.com/oxiyi I want to have a border with color #990000 outside the entire table. So I have made a table outside the table and given it border color of #990000. But still I dont see a border color. ...

html parsing with libxml

In another thread I got convinced into using HTML parsers instead of regexps for HTML parsing. I thought of using libxml (it has some HTML parser built in), but failed to find any useful tutorial. I also found this site and it says here it should do fine even with severely broken HTML. Could you give me some examples of HTML parsing wit...

How do I get foreign characters in a select/dropdown list to display properly in IE 7?

I have tested in IE6, Firefox 3.0.5 and Chrome and they all work. In IE7 it displays as boxes. For example: <select name="selectact" id="selectact"> <option value="page" selected="selected">网 页</option> <option value="news">新 闻</option> <option value="trade">行 业</option> <option value="area">区 域</option> <option value="web">网 站</op...

PHP: HTML markup problem while displaying trimmed HTML markups

I am using a Richtext box control to post some data in one page. and I am saving the data to my db table with the HTML mark up Ex : This is <b >my bold </b > text I am displaying the first 50 characters of this column in another page. Now When i am saving, if i save a Sentence (with more than 50 chars )with bold tag applied and in my ot...

How to remove x and y on submit in HTML form with Image type button ??

I have created a form in my application as follows: <form action="/search/" method="get"> <input id="search-box" name="search" type="text" size=30 title="Search" value="" /> <input id="search-submit" type="image" alt="Search" src="/images/search-button.gif" /> </form> But when I am submitting my form then URL is created as belo...

How to hold a html select expanded while adding options

Hi, i am trying to add options to a select in its onclick event and works fine in firefox and ie but... ie close the list after fill it although mozilla holds the list expanded ¿Are there any way to hold expanded the list (or reexpand the list with javascript) in IE? (i am using ie 7.0) thanks! ...

Mechanize and JavaScript

Hello folks; i'm new with ruby and coding just for fun. i just found WWW::Mechanize and i loved it at the first time, There is my question: i'm connecting to a web site, logging in. website redirects me to new pages and mechanize deals with all cookie and redirection jobs. bu i cant get the last page. i used firebug and did same job ag...

Why does html call it 'td' and not 'tc' for table cell?

I haven't browsed through the spec, though I doubt any info is in there. Does it stand for table data? ...

Button inside of anchor link works in Firefox but not in Internet Explorer?

Everything else in my site seems to be compatible with all browsers except for my links. They appear on the page, but they do not work. My code for the links are as follows- <td bgcolor="#ffffff" height="370" valign="top" width="165"> <p><a href="sc3.html"><button style="width:120;height:25">Super Chem #3</button></a> <a href="91hol...

<li> without parent tags?

Is it ok to use <li> tags without parent tags? i.e. <li> some copy or must it be.. <ul> (substitute your favorite list type) <li> some copy </ul> Links on the subject: Spec XHTML Validator ...

How do I keep multiple DIVs the same height using jQuery?

I've got a few DIV tags with different amounts of text content. HTML: <div id="boxes"> <div id="boxone"> <p>...</p> </div> <div id="boxtwo"> <p>...</p> </div> <div id="boxthree"> <p>...</p> </div> <div id="boxfour"> <p>...</p> </div> </div> They're in a two-by-two layout...

Why does this.selectedIndex not work on IE7 for a <select> tag?

This bit of HTML and Javascript works in IE6, FF2 and FF3. I can't find any reason why it shouldn't work in IE7 also, but this.selectedIndex always returns 0. ** in javascript file function onTypeChange() { alert($('type_id').selectedIndex); if ($('type_id').selectedIndex != 0) { Element.update('chosenType', this.o...

Clear/Remove JavaScript Event Handler

Greetings all - Given the following HTML fragment: <form id="aspnetForm" onsubmit="alert('On Submit Run!'); return true;"> I need to remove/clear the handler for the onsubmit event and register my own using jQuery or any other flavor of JavaScript usage. Anyone know how to do this? Thanks - Jordan ...

Convert HTML select/optgroup to Flex

New to Flex, what is the nearest equivalent to the following HTML markup in Flex? <select size="9"> <optgroup label="Group 1"> <option>Value 1</option> <option>Value 2</option> </optgroup> <optgroup label="Group 2"> <option>Value 5</option> <option>Value 6</option> </optgroup> <optgroup label="Gro...

How do I remove the height style from a DIV using jQuery?

By default, a DIV's height is determined by its contents. But, I override that and explicitly set a height with jQuery: $('div#someDiv').height(someNumberOfPixels); How can I reverse that? I want to remove the height style and to make it go back to it's automatic/natural height? ...

Why isn't this div floating properly?

I have two listboxes and two buttons. Each listbox is in its own div and the two buttons are in their own div. One listbox should be on the left and the two buttons should be to the right of that with the other listbox to the right of the buttons. This is the markup I am using, but it is putting the 2nd listbox below the Remove butto...

Make outer div be automaticly the same height as its floating content.

I want the outer div, which is black to wrap its divs floating within it. How can this be be done? I dont want to use "style='height: 200px' in the div with the 'outerdiv' id as I want it to be automatically the height of its content (eg, the floating divs). <div id='outerdiv' style='border: 1px solid black;background-color: black;'> <d...

Resize image and add an overlay image without using tables and without losing style in xml

I am building a system to create a "fake video embed" with thumbnails and play buttons over them. The images are coming from a service at a standard size, so have no choice but to resize them in HTML. Another restriction is, the codeblock has to be self-contained (like an embed code) and not reliant on any external stylesheets. I'm overl...

Does all browser engines treat "\<" as "<" and "\>" as ">"?

The main point to make "<" to "\<" and ">" to ">" is to make avoid below inline script: <script> var foo = "</script><script>alert('bug');</script><script>"; // the value of foo is generated from server </script> The string value of foo is generated from server side. So, we plan to change "<" to "\<" and ">" to ">". (I know there i...

Building HTML (~= DOM) using jQuery

I may be doing something wrong, but I haven't been able to find a good way to build basic HTML/DOM structures, like lists, dynamically. Simple example would be building a table (table element, row, cells, with properly escaped text content) given input like json (objects). The problem I have is that most calls (like ".append()", ".html(...