Hi,
Imagine I have the following HTML:
<div><span><b>This is in bold</b></span></div>
I want to get the HTML for the div, including the div itself. Element.innerHTML only returns:
<span>...</span>
Any ideas? Thanks
...
I have a project which requires printing a HTML table with many rows.
My problem is the way the table is printed over multiple page. It will sometimes cut a row in half, making it unreadable because one half is on the bleeding edge of a page and the remainder is printer on the top of the next page.
The only plausible solution I can thi...
I have a problem in PHP. I am using <input type=file> to get the file name from the user.
Basically I want to store the just folder path and not the file, so that when I display the path using hyperlink, the user can open the directory.
But using <input type=file> the user has to select a file then only the file textbox will get fille...
I am using an unordered list for navigation and I want to use sIFR in it (I know it is not recommended, but there is no alternative right now). The list items contain a div which is replaced by sIFR.
The HTML:
<ul class="topnav">
<li class="category">
<div>
<a href="#" title="Home">Home</a>
</div>
...
Possible Duplicate:
3 and 2 column full screen (width & height) layouts (CSS)
What is the simplest, CSS-only, Cross-browser way to achieve the following CSS Layout:
A left hand menu DIV with a fixed Pixel width (e.g. 200px).
next to that, a content DIV filling the whole remaining area.
I have done this before with things li...
Hi.
I have 3 classes:
class R{ string NameR;}
class A{ string NameA;}
Class RP
{
R objR;
A objA;
bool result;
}
I use NHibernate so in DB I have a table RP:
[Id] [int] IDENTITY(1,1) NOT NULL,
[Result] [bit] NULL,
[RId] [int] NULL,
[AId] [int] NULL
I need to display in my view a matrix like this:
__ A1 A2 A3
R1 1 ...
I would like to know if there is anyway I can divide an item on two line inside a select box.
One of the values of my select box is two long to fit in my div.
...
Since switching to Windows 7, we've noticed that several of our web pages have slight differences. It mostly shows when looking at form elements (text inputs & submit buttons). They are slightly larger/smaller by a few pixels. This seems to be browser independent - we get the same rendering issues using IE8, FF3.5, and Chrome in Windows ...
If you have a look at this pic - http://twitpic.com/q0a6p - you can see a strange issue with an outline around the text element of a input tag in a form. (on the right, it is being inspected by Safari's web inspector). The background is the image of the button. The problem only occurs in Safari. FF and IE is fine. Does anyone have any id...
Which browsers support data URIs (RFC 2397) and since which version?
...
I have the following element on my form:
<li>
<label class="fixed" for="Interests">Program genre interests:</label>
<label for="Sports"><%=Html.CheckBox("Sports")%>Sports</label>
<label for="Comedy"><%=Html.CheckBox("Comedy")%>Comedy</label>
<label for="News"><%=Html.CheckBox("News")%>News</label>
<label for="Drama">...
Using the latest VS 10 we created html markup, then commented it with html comments. The file on disk is not mangled, but when it renders, it renders the html comment tags, then removes some of the html markup within the commented tags:
Two questions (1) why would it not like the html comment tags and (2) why would it change the html c...
I have previously written my web apps with a server side / html template language type design. I am interested in writing a static html client that uses javascript to fetch data from a restful service (ala couchdb). It dawned on me that I could not in one web request get both the static html file, and the json data that is used to popula...
I've built a web page using HTML and Javascript that acts like a desktop app. I'd like to distribute it to users in the methods they are most familiar with. For Windows users, I think this is an installable application or a "setup.exe" file.
My app, however, works perfectly in the browser. Specifically it can be opened in a javascrip...
http://img684.imageshack.us/img684/5449/picture1w.png
Please have a look at the above screen shot, I would want to center an image with black background, but i'm getting some white space at the bottom. Please could any one help me to fix this.
CSS
.bgimg {
background: url('../images/GBS-Chronicle-Background-1.png') black no-repeat...
I have a list, with a value on each list item like so:
<ul>
<li value='red'>red</li>
<li value='grn'>green</li>
<li value='prp'>purple</li>
<li value='blu'>blue</li>
</ul>
I needed to retrieve the value of the list items, so turned to jQuery (1.3.2):
$('li:first').val();
This throws a javascript error. I'm forgivin...
Hi all !
I want to create a small round static pourcent indicator in CSS but I can't find the solution.
The squared indicator at left is ok, but so ungly, I want it round !
I have tried with rounded corner (cf indicators at the right of the screenshot), and I wonder if there is possibility to add a rounded mask to hide the corners (c...
I need to clean up some VERY ugly html (think < span>< /span> < em>< /em> < em> < /em> < strong>< /strong> ) over and over again...
I'm looking for a nice and easy preg_replace to eliminate any html tags that contain optional whitespace between them. Your assistance is greatly appreciated!
Oh, and just found this beauty:
< p>< strong...
I have a main page that contains a frameset with some frames. I need to access and set the text of a button inside one of my frames from a javascript method in the main page.
I believe its the window.frames that is the issue. It works in IE6 but not in Firefox. Is there something else I can use in place of this to get it to work across ...
Part 1:
http://stackoverflow.com/questions/1749520/how-can-i-make-my-mysql-database-records-visible-to-search-engines
I have tried to figure out how to create a site-map for my classifieds website, however, I dont understand the way it works with php and database websites.
I have understood that I need all links on a html page, right?
...