html

Hide iframe from main window

I have 2 <iframe> on my main HTML form. These <iframe> are loaded from different external domains. Sometime external server goes offline and user see The page can't be dispayed message on my page. Is there a way to hide these <iframe> when target server is not available? ...

Is there a way to make the CSS to recognize 100% to include the paddings, margins and border?

I have a the following html code: <div class="panel">Some Text Here</div> With the following css attached .panel{ display:inline-block; height:100%; border:1px solid black; } Because the panel has a border it's causing the vertical scrollbar to appear, is there a way to make the CSS to recognize 100% to include the padd...

How to use danvk re-orderable columns with dynamically created tables?

Hi, I'm trying to implement the danvk draggable table javascript, and while I've been successful using it for tables actually in the html source, when I try to use it with tables I'm creating in javascript code, it isn't applied to those tables. Has anyone had the same issue? Many thanks. ...

Does form with enctype="multipart/form-data" cause problems accessing a hidden field

I have created a hidden form element <form name="UploadImage" enctype="multipart/form-data" method="post" action="UploadImage"> <label> </label> <input name="imgUploadObjId" id="imgUploadObjId" value="52" type="hidden"> //rest of the form here </form> And I am trying to get the value with this line in a servlet (...

HTML form to JSON without modern libraries

Does anyone know of a simple javascript library that serializes a form DOM object to JSON? I know jQuery has the serialize method but since I am writing an app for IE mobile, I can't use any of the new fancy libraries, must be oldschool simple javascript, as light as possible. Cheers ...

Why WHATWG disallows nested forms in HTML 4 and HTML5 ?

Why WHATWG disallows nested forms in HTML 4 and HTML5? EDIT: Problem is originally described at http://stackoverflow.com/questions/597596/how-do-you-overcome-the-html-form-nesting-limitation In short author says: You are making a blog app and you have a form with some fields for creating a new post and a toolbar with "actions" like "Sa...

How to scroll whole visible page down to an anchor with a smooth effect (Scriptaculous or jQuery)?

Hey community, I want to create an navigation with anchors. By clicking on a navigation link, the whole visible page should scroll down to the clicked anchor. The most important is the following structure of the page. --------------- (Begin visible browser area) NAV1 nav2 nav3 content --------------- (Begin/end visible browser area) ...

Show div from another website

Is there a way to use an iframe or some other method of showing a named div from another website? I want to pull in some data from a government website into a google map and when they click the point I want the information from one of the divs on that page to display. ...

How to include special characters in query strings

The following URL works fine: http://localhost/mysite/mypage?param=123 However, if I want to put some special characters in `param like ?, /, \, then the URL becomes: http://localhost/mysite/mypage?param=a=?&amp;b=/ or http://localhost/mysite/mypage?param=http://www.mysite.com/page2?a=\&amp;b=... which won't work. How d...

Fastest HTML Downloader

I want the fastest method to download the source of HTML with given URL address Is there any solution beyond normal C# solutions like (WebClient Download or HttpWebRequest, HttpWebResponse) that speed up fetching HTML source code ?? ...

xsl - exclude <td> from <div>

is there any way to have a div around an entire table, but exclude one <td>? TIA ...

jQuery: Trouble with draggable across cloned elements

I'm trying to implement: User drags a draggable li to a droppable li. The original li is no longer draggable A new li is cloned from the original li, and is appended to the droppable li. I can't get it to work. function moveToTerm(original_course, helper, term) { var cloned_course = original_course.clone(true); original_course.a...

How to set size for divs with different parents

I want to create a div layout which is similiar to the following table result: <html> <head> <title>Basic</title> <style> table { border: 1px solid;} </style> </head> <body> <table style="border: 1px solid;"> <tr> <td> Asia</td> <td> <tab...

Simple CSS dropdown menu does not work in IE6 or 7 - please help.

Hi there. I'm using a very simple CSS dropdown menu which works well in most modern browsers. Unfortunately it must also work in IE6 and 7, which it currently does not. Can anyone please check it out very quickly and tell me if it can be easily fixed? I'm not adverse to using JavaScript if required. The markup and CSS: http://paste2...

HTML IFrame Help

Hey Few Questions 1.Is it legal to have an IFrame on a website which inside has an external website? 2.In an IFrame is it possible to only show a section of the src that isnt the top left of the site (for instance if there was a chart in the middle of a website, could u have just the chart in your Iframe, or atleast start it centred ther...

can an input field have two labels?

Mary had a little form, and it's fields where labeled just so. Whenever an error crept in, confusion it would sow. I've got a label for each input field... pretty standard affair. After validating the form, I'm displaying a helpful little paragraph at the top of the form detailing what information is missing or incorrect. Can I have two...

css hover upon a link to fill background

what I want: when i hover upon a link it should fill the background with a fixed width (say 225px) background color. the length of the text of the link should not be considered. thank you so much. ...

Using <style> tags in the <body> with other HTML

<html> <body> <style type="text/css"> p.first {color:blue} p.second {color:green} </style> <p class="first">Hello World</p> <p class="second">Hello World</p> <style type="text/css"> p.first {color:green} p.second {color:blue} </style> <p class="first">Hello World</p> <p class="...

Visual Studio 2010 HTML Designer Renders Unlike IE8?

My question is: since Visual Studio 2010 was only just released, why does it not render pages in the same way as the latest Microsoft web browser, IE8? Is there a bunch of render options I should be setting? I thought Expression Web was supposed to help with its fancy Super Preview but that app doesn't even open VS solutions. Thanks f...

Change color of textbox in JavaScript

I have this small JavaScript code which I need some help with: function doFocus(text) { if (text.value == "Enter Name") { text.value = "Student Name -"; } } All I need here is when someone clicks on my textbox, the text "Student Name -" should change its color, and should text-align = left. I am looking for the appropri...