html

How to get div from second page display in first page

In my main.html page I have a button. When that button is clicked, I need to get the content of another page. The target page has five divs, I need to catch one div and display that div data in main.html page. ...

Convert HTML to an image

Duplicate What is the best way to create a web page thumbnail? I want to display a thumbnail image of an HTML page. How can I do this? ...

HTML table with fixed headers?

Does anyone know a cross-browser CSS/Javascript technique to display a long html table such that the column headers stay fixed on-screen and do not scroll with the table body. Think of the "freeze panes" effect in excel. I want to be able to scroll through the contents of the table, but to always be able to see the column headers at the...

How to create a bookmarklet for creating a screen scraping?

How to create a bookmarklet like this one: http://www.vimeo.com/1626505 I want to create one the same, where to start? i want to know the work flow of how this one is working to build my own. Thanks ...

XSLT: help me fix multiple BODY tags

I need to postprocess some HTML that has bad structure -- e.g. <html> <body>...</body> <body>...</body> </html> What's the best way to transform this HTML so that the contents of the second body appear inside the first, except of course the extra body tag? I don't want to manipulate anything else with this rule. I've thought of match...

How can I improve loading times on a static HTML site?

We are working on a website and noticed that the GIF images(100kb - 200kb) are loading very slowly. The site is a static site with CSS/HTML. Does any one have any pointers to why the images might be loading slowly? Would using JPGs improve the performance? Here is the HTML code for that image: <div><img src="images/mainImg_3.gif"...

Is there a legitimate use-case for putting a fieldset outside of a form?

I was recently corrected, and according to the HTML4 DTD, it is legitimate to use a fieldset outside of a form: http://www.w3.org/TR/html401/sgml/dtd.html#block Previously I had not known this, and wonder if anyone can think of a legitimate use case for doing so. I feel like using one to decorate would be frowned upon by most designers...

Best way to determine user's locale within browser

I have a website (Flash) localized into a dozen of languages and I want to auto-define a default value depending on the user's browser settings in order to minimize the steps to access the content. FYI, I cannot use server-scripts due to proxy restrictions, so I guess JavaScript or ActionScript would be appropriate to solve the problem....

CSS problem with IE - right-alignment does not work in a div inside a table cell

Float:right specified for a div inside a table cell seems to have no effect in IE. I have also tried text-align right, among other things, to align the layer contents to the right, but without success in IE 7. CSS snippet: .workloadcell { background-color: #E6D7E9; padding: 0px; width: 14px; height: 16px; text-alig...

Can the iframe access its parent if i changed its src to "about:blank" after loading it in the parent page?

Can the iframe access its parent if i changed its src to "about:blank" after loading it in the parent page? Note: the iframe is in another domain not the same as the parent page. ...

How to stripe rows for a multiple row record using jQuery?

I am currently using the following jQuery script to highlight rows in my table, and it works great! <script type="text/javascript"> $(document).ready(function() { $('table.grid tbody tr:odd').addClass('alt'); }); </script> This works great for tables of data where each row is truly a new reco...

Why is XHTML 1.0 Transitional so popular?

My company is looking to replace all websites in the group with a new CMS-based system and similar designs/styling, with E-Commerce functionality being added in a future phase. It's too big a job for me to do in a reasonable time-frame, so we are going to be inviting tenders from agencies. I'm currently in the process of defining the te...

implementing a "window manager" for HTML in a JSP custom tag

I have a problem: I need to build a custom tag, which can take its child tags (each of which will render as an HTML widget of some sort) and render them into the page in some intelligent manner. It's a fairly open ended question, so I have thought of many different ways to solve it. What I need is some input on how: others have done ...

How to support multiple text selections cross browser?

I am building a web-based annotation tool, where end users can select and annotate a section of text from an HTML document. Programmatically speaking, accessing and working with the selected text and corresponding range is straightforward using "window.getSelection" and "getRangeAt". I am running into a problem, however, when I try to...

How is an OpenID Client supposed look up the OpenID delegate?

Hello everybody. I just noticed that stackoverflow had problems with my OpenID delegate and I noticed that this was caused by my website not using a <html> and <head> section. Now even though this is valid HTML the question is if it's valid for OpenID delegate lookups. The official stuff I was able to find on the website just talks ab...

The Scope attribute in th tags - when does it stop?

Scenario: Table with two tbody's First tbody has a th with a scope="col" applied. First tbody closes. Second tbody opens - it too has a th - this needs a scope="col" applied as well. Let's say for arguments sake the th's are in the same column. The question: Does the first scope stop when it reaches the second tbody? the next scope? ...

Action tag not executes in Struts 2

Hi, I have a problem invoking actions from my jsp pages with tag in struts2. I have the login.jsp file: <s:action name="headerMenu" executeResult="true" namespace="/menu"</s:action> <s:form action="executeLogin"> <s:textfield name="username" label="Username"></s:textfield> <s:password name="password" label="Password"></s:pass...

What's the best way to embed HTML within a HTML page in a content management system?

I'm in the process of building a content management system for a scientific journal. The system is designed with content "blocks" that editors can manipulate using the FCKEditor. I am trying to display these "blocks" read-only in the system without the editor. My concern is "rogue" HTML that could break the rest of the page if the HTM...

Last few html tags not rendering?

An interesting issue which I've googled and can find absolutely no reference too, perhaps because I'm too vague on the cause myself. I have a simple jsp page that is run from a struts 2 action. It' fairly javascript heavy, but its an internal app on my company's intranet so thats not a great problem. All seems normal so far, right? but...

-webkit-transition-property receives unexpected values in Safari 3.1.2 (Windows)

I am developing an iPhone-optimized website and testing it on Safari 3.1.2 on Windows. For some elements in the website I am applying implicit animation using -webkit-transition style. So basically, I have elements like this: <div style="-webkit-transition: left 2s linear;">...</div> that sometimes are present in the document from th...