html

Why this code doesn't show the HTML file???

I wrote this code for showing the HTML file ,which I have chosen it from my computer!and when I choose the HTML file in my computer like FAQ.html this error messages will be shown: java.net.MalformedURLException: no protocol: FAQ.html at java.net.URL.<init>(Unknown Source) at java.net.URL.<init>(Unknown Source) at java.net.URL.<init>(Un...

HTML DOC PDF XPS what format is more appropriate for documents?

I'm going to save documents from an ASP.NET web site to server disk. I can simply save it as html, but probably other document formats wiдl be more appropriate. If so, how save it as DOC PDF or other (in ASP.NET c#)? ...

best way to present huge html forms

My application has a requirement such that I have to display a huge number of HTML input textfields (maybe 2,000 text fields). The fields can be logically grouped into sections and the sections are repetitive. What is the best way to display it to the user so that they can enter data with minimum clicks? ...

Rounded corners in a css table-cell layout?

I need some help with my design. I want to display three equal-height boxes next to each other, like this ASCI art: +------+ +------+ +------+ | | | | | | | | | | | | | | | | | | +------+ +------+ +------+ I also have an example online (with all the CSS). The contents of the boxes varies i...

How do I select an option using prototype

Say I have a HTML form containing this select element: <select name="mySelect" id="mySelect"> <option value="1" id="option1">1</option> <option value="2" id="option2">2</option> </select> How can I use prototype to select one of the option elements? The methods listed in the API reference of Form.Element don't seem to hel...

Keeping Form id like numerical value in the HTML Dom Element.

Hi, In my application i want to keep my Form id in the Dom element So that on click of my Dom element, i get to know the Form id and make use of that for further purpose. For eg: my app has a list of form names generated like <a href="/FormBuilder/index.php/main/entryManager" id="Form1">Contact Form</a> <a href="/FormBuilder...

Hpricot, Get all text from document

Hi Guys, I have just started learning Ruby. Very cool language, liking it a lot. I am using the very handy Hpricot HTML parser. What I am looking to do is grab all the text from the page, excluding the HTML tags. Example: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Data Protectio...

How do I draw curved lines on an HTML page using JavaScript?

Is it possible to draw curved lines in an HTML page (normally across cells in a table) using JavaScript (for web graph control)? ...

Get html tags embedded in xml using linq

Hi I have a basic xml file that looks like this. <root> <item> <title><p>some title</p></title> </item> ... </root> What I want, is to get the whole title string including the html tag of the xml using linq and displaying it in a repeater . I can get the title with no problem, but the <p> tag is being...

Remove submit.x and submit.y but retain other values in URL

With my PHP form, I want to pass one value to the URL, but remove submit.x and submit.y. Here's my form: <form action="booking.php" method="get"> <input type="image" value="access" class="rollbtn" src="../images/book-btn.gif" alt="Book" name="submit" /> </form> I want the URL to display booking.php?submit=access - but omit the x a...

Does Facebook bar re-loads on every request ?

While browsing Facebook pages I was wondering if their bar loads on every request. Using Firebug i discovered this is true, but my user experience on their site tells me is not. I know that their bar use position:fixed; and bottom:0px; CSS style, is this the only trick they do ? Other sites loads their all content using an iframe while ...

HTML Formatting

Hey all, I have to make a few changes to some unformatted HTML (no line breaks, nothing) and was wondering if there are any web-based or open source tools that will automatically format it so it's easier to read. Thanks! ...

PHP: Converting from UTF-8 HTML

I have a French site that I want to parse, but am running into problems converting the (uft-8) html to latin-1. The problem is shown in the following phpunit test case: class Test extends PHPUnit_Framework_TestCase { private static function fromHTML($str){ return html_entity_decode($str, ENT_QUOTES, 'UTF-8'); } publi...

EMBED vs. OBJECT

Which is the right/best tag to use in my HTML file when I want to display the Adobe PDF viewer? Right now I'm using the code below, but there are weird side effects (e.g. it seems to steal the starting focus that I've set to another INPUT text box; it doesn't seem to play real well with the jQueryUI Resizeable class; etc.) <embed src="...

Adding search result with Jquery

Hi Folks, iam trying to setup an little search-engine for my website. I want to add an div for each search result. In the moment i do the following : success: function(data) { if (data[0] == 'nothing') { result = $('#search-result'); result.append('<h3>' + LANG.nothing + '</h3>'); ...

IE8 and quirks mode

Does IE8 run in quirks mode like IE6/7? I have a webpage that has some truly bizarre code. The content is centered with padding and negative margins. It works correctly in IE6/7 and other browsers but in IE8 the content area is half as wide and not centered (flag for quirks mode). The source code has three blank lines before the DOCT...

retrieving text using this.text() and jquery

I'm trying to get the text within the clicked linked by using this $(".ajax-append").click(function(event) { $.get("includes/fight.php?name=test", function(html) { console.log($(this).text()); console.log($(this)); // append the "ajax'd" data to the table body $("table tbody").append(html); ...

Improve code for drop down menu (HTML/CSS/JavaScript)

Hello! Based on this tutorial, I've built a drop down menu for template from Styleshout.com. medigerati helped me so that it works now - at least in Firefox 3.5 and Internet Explorer 8. You can see the menu in action here. But unfortunately, it doesn't work well in all browsers. In Internet Explorer 6 - for example - it isn't displaye...

Html input tag with server side resource string

I have an input button on an ASP.NET form, but I want the text displayed to come from a server side resource file. The following syntax fails, and I can't enclose it in a literal because the input tag cannot contain any other tags: <input id="btnX" type="button" disabled="disabled" value='<%$Resources:res,Button.Text%>' /> Any possi...

Parse a .Net Page with Postbacks

Hello, I need to read data from an online database that's displayed using an aspx page from the UN. I've done HTML parsing before, but it was always by manipulating query-string values. In this case, the site uses asp.net postbacks. So, you click on a value in box one, then box two shows, click on a value in box 2 and click a button to ...