html

HTML Snapshot

Using asp.net, I need to generate a snapshot of an youtube video. I have access to the code that youtube generates for integrating their vids into other sites. Basically what I want to do is what HTML Snapshot does, take a picture of some html, but I`m only interested in the video. How can I approach this in asp.net, (buying HTML Snaps...

Unified way to scrape HTML from any type of browser process?

Is there a unified way to do this? Browsers usually don't respond as expected to user32's GetWindowText and SendMessage, which you can use to scrape the text out of most win32 applications. I'd like to get the equivalent of "View Source" on the open web page. Currently, I'm using the API for screen readers to scrape from IE, but tha...

HTML DTDs - what's the point?

Being fairly inexperienced with certain aspects of web development (I've always concentrated more on the back-end than the front), can anyone give me their thoughts on whether I should worry about the DOCTYPE declaration made at the beginning of web pages? Is the most common HTML 4.01 and should I build my web apps to conform to this st...

sorting HTML tables with displaytag JSP tab library

Hi, I'm using the JSP displaytag tag lib to create HTML tables. I'd like the user to able to click on a column header in order to sort the data. My JSP code is shown below: <display:table name="tableData" id="stat" sort="page"> <display:column property="name" title="Name" sortable="true"/> <display:column property="age" title="Age"...

OffTopic: Would you consider HTML + CSS + Webserver to be MVC?

Hi all, these are just my wonderings and I thought I'd share them... Simply put, MVC is the pattern for separating contents (model) from presentation (view), and having a mechanism in place (controller) defining how to gather both. If you already see where I am going at, I am very interested to hear your opinion on the matter. Of cours...

Right-floated sidebar with main content flowed around - how?

I'd like to create a webpage layout with the sidebar to the right and the main content flowing around the sidebar. Requirements: Content below the sidebar should occupy all of the available width Content below the sidebar should not wrap when it hits the left of the sidebar Main content should precede the sidebar in the markup Sidebar...

Is there a tool to measure pixels on a screen

Hi I'm looking for a program that measures a distance from point A to point B in pixels.(with crosshair cursor - not a pixel ruller aplication) I need something that doesnt require print-screen and paste to another window,but works "on" other open windows. thanks ...

asp.net IFrame scroll bar push to top . . .

Heres a tricky one . . I have a webpage (called PageA) that has a header and then simply includes an iframe. Lets call the page within the iframe PageB. PageB simply has a bunch of thumbnails but there are a lot so you have to scroll down on PageA to view them all. When i scroll down to the bottom of the pageB and click on a thumbna...

H1 in article page - site title or article title?

Within an article-oriented page (such as a blog post), the <h1> element (level 1 heading) is commonly used to markup either: the blog title (i.e. the often-large site title at the top of the page, not to the <title> element), or the article title What is the best choice and why? To the site owner, who may want to shout out to the wo...

jQuery document.createElement equivalent?

I'm refactoring some old javascript and there's a lot of DOM manipulation going on. var d = document; var odv = d.createElement("div"); odv.style.display = "none"; this.OuterDiv = odv; var t = d.createElement("table"); t.cellSpacing = 0; t.className = "text"; odv.appendChild(t); Is there a better way to do this using jQuery? I've bee...

Remove fragment in URL with JavaScript w/out causing page reload

Background: I have an HTML page which lets you expand certain content. As only small portions of the page need to be loaded for such an expansion, it's done via JavaScript, and not by directing to a new URL/ HTML page. However, as a bonus the user is able to permalink to such expanded sections, i.e. send someone else a URL like http://e...

javascript anchor- access to id on another html page

Hi, i have two html pages, when you click on something on the first html, it will go to the second one. what i want to do is to show text according to what you clicked on the first html. different texts are wrapped with different ids. here's how i wrote: <a href="secondpage.html#one"></a> <a href="secondpage.html#two"></a> <a href="sec...

Setting uniform <input type="file"> width in all browsers

What combination of CSS or attributes are needed? ...

Paging Alternatives

I'm working on a project that returns paged results with volumes potentially in the hundreds of pages. I've been playing around with more usable ways to perform paging than the standard fisrt/last/next/previous links and jump-to text box. One alternative I had was to have a scrolling list of pages. I'd display 5 to 7 links at a time, cen...

Make HTML Column Wider As Inner Div Expands

Please consider the following: <td style="width: 500px;"> <div style="width: 400px;">SomeContent</div> </td> For some reason, the column that contains a div will not expand to 500px as the style suggests. Do you know how to get the td to honor the width that I am specifying in the style? ...

How to keep jQuery from parsing inserted HTML?

Hello, Does anyone know how to stop jQuery fromparsing html you insert through before() and after()? Say I have an element: <div id='contentdiv'>bla content bla</div> and I want to wrap it in the following way: <div id='wrapperDiv'> <div id='beforeDiv'></div> <div id='contentDiv'>bla content bla</div> <div id='afterDiv...

Looking for a simple HTML text editor for Windows

I'm looking for a simple free/cheap Windows text editor for a family member learning HTML. Ideally it would be as simple and non-intimidating as possible. Basically Notepad with code highlighting. Any help would be much appreciated! ...

Is there some list of input's IDs or names of Form after the script was sent?

Hi, Let's imagine I got this: index.php generates form with unpredictable number of inputs with certain IDs/Names and different values that can be edited by user and saved by script.php <form action="script.php" method="post"> <input id="1" name="1" type="text" value="1"/> <input id="24" name="24" type="text" value="2233"/> <input id=...

How get VS HTML editor to default to single quotes?

Autocompletion in the Visual Studio HTML editor inserts double quotes (e.g. <input type="text"). Does anyone know if there's a setting that will change the default to automatically insert single quotes (e.g. <input type='text')? thanks, Michael ...

Scroll to bottom of div?

I am creating an ajax chat in rails and I am trying to get a div to scroll to the bottom without much luck. I am wrapping everything in this div: #scroll { height:400px; overflow:scroll; } Is there a way to keep it scrolled to the bottom by default using JS? is there a way to keep it scrolled to the bottom after an ajax requ...