html

ASP.NET HTML control with clean output?

I am developing an ASP.NET web application at work, and I keep running into the same issue: Sometimes I want to write HTML to the page from the code-behind. For example, I have a page, Editor.aspx, with output which varies depending on the value of a GET variable, "view." In other words, "Editor.aspx?view=apples" outputs different HTML ...

How to take screenshot of rendered HTML page

Our web analytics package includes detailed information about user's activity within a page, and we show (click/scroll/interaction) visualizations in an overlay atop the web page. Currently this is an IFrame containing a live rendering of the page. Since pages change over time, older data no longer corresponds to the current layout of ...

How to break up the value present inside the <option> tag in HTML?

Hi All: I have doubt regarding tag in html. In the HTML page, a drop down list need to display in the part of some fixed width. Problem i am facing is, there is one option in drop down list has some lengthy statement which causing the entire dropdown list extended part. So i want to break the particular option value to display in two...

Javascript InnerHTML in IE7 messing with INPUT tags

When I receive the innerHTML of an element containing an input[type=text] element the speech marks around the value and id are removed in IE7 i.e. <input type="text" id="test" value="test" /> Becomes: <input type="text" id=test value=test /> This would be fine, other than the fact that I am using a JQuery plugin that takes a html s...

(Javascript) Inserting elements dynamically in a specific position

Basically what I have is this: <body> <div class="class1"> </div> <div class="class2"> </div> <div class="class3"> </div> ... </body> I have no idea why the site creator used classes instead of IDs (they're unique), but it doesn't really matter as I'm writing a GM script and so getElementsByClassName('')[0] effectively does the ...

mod_rewrite messing up includes

Hi. I have the following mod_rewrite rule: RewriteRule ^home/ home.php [L] Fairly simple. When I head to home.php, everything loads fine, but when I head to me.com/home/, the CSS doesn't load. CSS draws from lib/css/home.css which isn't in the same folder.. To clarify, my structure is: /htdocs home.php /lib /css home....

jQuery star rating in a table

Hi, I have an MVC application generating a series of radio buttons based on a dynamic set of questions. The questions are generated, and the star rating works perfectly, but for some reason, when I try to have each radion button in its own cell in a table, once the javascript kicks in, all the radiobuttons appear in just one cell. Wit...

Cross-browser link to file on local system

I would like to make a link from a web page to a file on a local filesystem and make it work in all browsers (or at least in Internet Explorer, Firefox and Chrome). For example, the following works in Internet Explorer: <a href="\\myserver\doc\info.pdf">Info here</a> but not in Firefox and Chrome. Is there a way to make a link that ...

Float: left problems while using DIVs?

I have problems aligning the 2 Divs side by side like 2 columns in a table? Sometimes they align correctly but sometimes the Div on the right appears below the left Div, if I refresh the page the div returns to its original place. How can I configure them so that the divs ALWAYS appear side by side? Thanks ...

MS WebBrowser + Embedded HTML Resource + res:// Protocol

Hi, I have an embedded HTML resource (helloworld.htm) inside my Visual Studio project. (Ie, I've added an HTML file to the project and set its properties to "Embedded Resource". Within the same application I have a WebBrowser control. I'd like to direct the WebBrowser control to display the HTML resource using the res:// protocol. Bu...

Textarea first line bold

Hi All, I have a textarea in which I want the first line to be bold (and bigger font) as the first line contains the title. I tried the :first-line pseudo class, this works in IE, but fails in Firefox. Also in IE, enters doesn't work anymore, so I can't break the line. Is this even possible? And if so, how? regards, Henk ...

Custom home page with iWeb

How can I create a custom 'skin-style' homepage for a website published in iWeb? The current root URL mydomain.com redirects to mydomain.com/myiWebsite/welcome.html. I want to create a new homepage at the root URL, which has links to the other published pages on the site. I guess this will mean telling iWeb to stop redirecting from the...

Open Source Java library for conversion to HTML?

I know there are some Java libraries to create PDF files and the likes, but does anybody know of a Java library to convert various file formats to HTML, especially PDF and MS Word files? The purpose of this is to display a file preview in the web browser. Thanks in advance! ...

text input in IE7 seems to stop working

DISCLAIMER This is not something that I can replicate in anything other than a full sample, which sadly is not practical as it only happens on a specific PC. I am also aware that the information I have is very flaky. I have one user (my boss) who runs IE7 and has no addins other than the basic bits like flash etc. On one page and one p...

How to set width of <div> to fit constant number of letters in monospace font?

I researched for a while, hasn't found a CSS solution yet, em and ex units are not correct in this case. What I want is simply a div box that exactly fits 80x25 monospace text. Do I have to resort to Javascript solutions? ...

Pin image background to bottom of document in short and long documents

I'm trying to fix an image to the bottom of the document for a HTML page. My strategy roughly involves a setting the CSS height of the html node to 100%, and setting the background-position of the background-image to bottom. This works for pages with a document shorter than the viewport size, but for documents with a length greater tha...

How does a multiple select list work with model binding in ASP.NET MVC?

If you have a select list set to multiple in ASP.NET MVC, how does the modelbinding work? What does it return for your selected items, an array? <SELECT NAME="toppings" MULTIPLE SIZE=5> <option value="mushrooms">mushrooms</option> <option value="greenpeppers">green peppers</option> <option value="onions">onions</option> ...

Reuse browser's Acrobat Reader instance?

Acrobat Reader successfully renders sample1.pdf inside IE given the following HTML: <embed style="width: 8.5in; height: 11in;" id="pdfViewer" src="sample1.pdf" type="application/pdf"> What javascript allows me to use that same PDF reader instance to display sample2.pdf? EDIT: I don't care what HTML is involved, I don't think -- the g...

Server Side Include

Is it possible to use a server side include to access files that are outside of the server? If not what are some other options to do this? ...

Href="#" Don't Scroll

Hey Guys, I am pretty new to JS - so just wondering whether you know how to solve this problem. Current I have in my code <a href='#' class="closeLink">close</a> Which runs some JS to close a box. The problem I have is that when the user clicks on the link - the href="#" takes the user to the top of page when this happens. How to s...