html

How to make a HTML list appear without the bullets signs using CSS only?

The browser will consider the list existence and arrange them accordingly, however won't show the small icon next to each one of them like the following: Normal list appear like the following: text A text B text C I want them to appear like this text A text B text C ...

Using <input> tags directly inside <table>

I'm generating a table with multiple editable rows. like a employee every row so that you can change multiple names at the same time. I have some hidden fields inside that also need to be looped with the table rows. The problem is that having inputs inside table tags is not valid xhtml. And I don't want to wrap them inside <tr><td> tags...

Issue while setting html of div using the jquery html() method

Hi everyone... I've got an issue with jquery where I set the html of a div using the html method, but it does not set it correctly. Here's the stripped down code I'm using: <?xml version='1.0' encoding='utf-8' ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt...

Is there a way for codeIgniter to output html rather than xhtml?

I'm just mucking around with codeIgniter, doing the video tutes etc. was wondering if you can specify markup output to follow strict html, I've noticed that helper form inputs etc. have a closing slash, that is contradictory to HTML 4 Strict. Is it a case of just using xhtml for this framework because that's what it's mostly geared towa...

QTextEdit (QT Control) alternative for MFC Application?

Hello Do you know any (paid or free) MFC control with features like (QT) QTextEdit control? Good HTML (and may be RTF) support (import, export) Ability to edit manual control content :) ...

HTML textarea: use JavaScript to get wrapped text?

If I've got a textarea like this: <textarea id="foo" cols=80 wrap="hard"></textarea> Is there any way, using JavaScript, to grab the hard-wrapped text? I've tried the obvious $("#foo").val(), but that returns the unwrapped text. For example, if the textarea is: <textarea id="bar" cols=5 wrap="hard">a b c d e f</textarea> The brow...

How to make the size of the IFRAME the size of the container?

<td width="120" valign="top" height="100%"> <iframe src="menu.php" width="100%" height="100%" frameborder="0"> </iframe> </td> This code always gives the default size of an iFrame in my browser (same as: <iframe src="menu.php"> </iframe> ) I want the IFrame to get the size of the container cell. I know I can use PHP for i...

CSS Push Div to bottom of page.

I want the footer to always be at the bottom of the page even if the content doesn't push it all the way down. How can I make it just stay at the bottom of the page? ...

How to prevent JavaScript HTML blocking

How do I prevent JavaScript from blocking other JavaScript's from starting to download? I have the following on my web site: <html> <body> .... <script type="text/javascript" src="http://example.com/ex.js"&gt;&lt;/script&gt; <script type="text/javascript" src="http://google.com/google-maps.js"&gt;&lt;/script&gt; </body> </html> When ...

ASP.net application vs. a web server delivering HTML to browser

Aside from the rich array of controls (I know thats a big aside) what is the primary difference between say a C# application hosted on a web server that delivers HTML to a browser and an ASP.net solution. Lets say for this example, we include some javascript in the HTML to allow some client side processing - this makes the two methods ev...

HTML. Editable 'Select' element

I would like to have a select element in the form but besides the options in the dropdown, it would be useful to be able to edit it and add new option but not with another input text, I need all in once. Is it possible? ...

Issues with CSS relative positioning, adjusted overlay still occupying original image location - CSS

I am trying to eventually do a overlayed image mouseover, and instead of creating double the images to load, I have a masked overlay image for all 9 images. I will be using "visibility:(hidden or visible)" to show the image on mouseover. The problem I'm having is that after the "lock" image is adjusted to be on top of the original ima...

Toggle a large set of page items with jQuery is slow

I have a large set (around 100) of page elements that I would like to toggle (show/hide) with jQuery. I just use $(".toggleElementClass").toggle(); This looks like the trivial solution. The problem is this takes a few seconds, even on the latest Chrome browser. Is there a faster, more efficient way to achieve the same effect. ...

How do I create an HTML table of files for download?

I'm in charge of updating an existing java app for an embedded device (a copier). One of the things I want to do is create a servlet which allows the download of all the files in our sandboxed directory on the device (which will include the application log files, local caches, etc). At the moment these files are all in a single director...

&amp; or &#38; what should be used for & (ampersand) if we are using utf8 in xhtml document?

What is the difference between this &amp; and this &#38; for &(ampersand)? What should be use with utf8 ? ...

Where can I get the list of most common file extensions and their content type?

So far I have: doc, dox -> application/ms-word xls, xlsx -> application/ms-excel pdf -> application/pdf And so on. Is there a place where I can get a comprehensive list? ...

javascript turned off help

I am creating a small application where I am displaying some text wrapped in 3 divs so I am actually displaying 1 div at a time also there are prev and next buttons for users to toggle between the div's. Now when javascript is turned off i just want to display 1 div without the prev and next buttons. I have and idea that it can be done w...

Set the height property of a DIV on a page that has a "footer"

Basically I want to have that middle blue body part scroll minus the scrollbar at the bottom. I know I can do this with javascript, i'm looking for more of a CSS solution. On my actual site I have a div that is about 150px high that contains icons/images to do things and then the rest of the content needs to be scrollable vertically too...

Can the ActionView form input methods create <input> tags with inner html?

I am generating an input like this: <%= form.radio_button("ans", ans.num.to_s) %> The generated html is: <input id="myform_ans_1" name="myform[ans]" type="radio" value="1" /> But what I am looking for is this html: <input id="myform_ans_1" name="myform[ans]" type="radio" value="1">Some Text</input> Is there an option that I can ...

Strip whitespace in generated HTML using pure Python code

I am using Jinja2 to generate HTML files which are typically very huge in size. I noticed that the generated HTML had a lot of whitespace. Is there a pure-Python tool that I can use to minimize this HTML? When I say "minimize", I mean remove unnecessary whitespace from the HTML (much like Google does -- look at the source for google.com,...