html

In html <a href> tag, how to call servlet before opening file dialog for download (save as)?

Hi All, I am developing a web-app where I want to provide a download link to users - so they can download a zip file from my server. Now, my requirement is that I want to execute some processing logic contained in a servlet before displaying the file dialog to the user for 'zip' files. So If I write <a href="abc.zip".......> then it...

How to fill the color inside the circle shaped line items

How do I get a red color for the line items shown as a circle? /* This maps to ul */ .rich-datalist { list-style: disc; list-style-position: inside; margin: 6px 0 1px 0; padding-left: 18px; } /* This maps to li */ .rich-list-item { padding-top: 5px; padding-bottom: 15px; font-size: 13px; } ...

window.href open new window?

hi when ever i use window.location.href=//some url it always open a new window, this only happens when the parent window is an dialog box. Any idea what i did wrong? i tried using window.open("http://asdf.com", "_self"); as suggested on this thread http://stackoverflow.com/questions/1678155/window-location-href-opens-another-win...

&nbsp; displays a tiny line.

Hi, when I make &nbsp; in my site, it displays a tiny line, which can be hidden on some elements because I'm usually using them on CSS buttons, but I have an if statement that says if this show the result if not show a non breaking space. How do you reset the &nbsp; to display nothing? Thanks. ...

Positions fixed doesn't work when using -webkit-transform

Hello everybody I am using -webkit-transform (and -moz-transform / -o-transform) to rotate a div. Also have position fixed added so the div scrols down with the user. In Firefox it works fine, but in webkit based browsers it's broken. After using the -webkit-transform, the position fixed doesn't work anymore! How is that possible? ...

CSS - How to prevent the browser from showing scrollbars when a div goes outside of the window?

I have a centered wrapper with following CSS: div.wrapper { width: 1170px; padding-left:30px; margin-top: 80px; margin-bottom:20px; margin-left: auto; margin-right: auto; position:relative; background-color:black; } inside i have a div with following css: position:absolute; top:-26px; left:517px; height:63px; z-index:3; inside of...

Adding email address as an hidden field

I've recently found a web site where the email address is included within hidden tags in a html form. Is this a bad practice and why other than the stealing of mail addresses? ...

html source does not show all visible data

if you go here: http://whois.domaintools.com/iconplc.com and view the source why can't you see the registrant data in the HTML source? is it at all possible to get this data through the html source? this stuff is not in the html source: Registrant: ICON Clinical Research 212 Church Road North Wales, PA 19454 US Domain ...

How to drag items between 2 sorted lists with jQuery?

Hi - I'm trying to implement drag/drop/sort between 2 list elements: <ul id="first"> <li>item 1</li> <li>item 2</li> <li>item 3</li> </ul> <ul id="second"> <li>item 4</li> <li>item 5</li> <li>item 6</li> </ul> Basically I just want to be able to pass items between the lists and sort the items in each list. What's the simp...

How to place div side by side

Hi, I have a main wrapper div that is set 100% width. Inside that i would like to have two divs, one that is fixed width and the other that fills the rest of the space. How do i float the second div to fill the rest of the space. Thanks for any help. ...

What is the best way to optimize an iframe content in webpage for search engines

I use an iframe in my site , How i can let the search engines robots read and index the content , and the results point to the page including the iframe ? thanks. ...

Form submit capture into database not working

Hi guys, I have a form that has two buttons on it, one yes, one no, and at the moment I capture the clicked button into a database, but for some reason, it doesn't always capture the clicked button, I have gone through all my code and everything seems fine, here is the form <div id="mid_prompt"> <form action="re...

How to let short content pages reach the bottom of the browser window and then a footer should appear.

In this case, I've developed a CSS code for this web application ..and sometimes the resulting data is too small and the footer of the site appears in the middle of the page and looks odd. I'd like to push that whitespace of the background to the browser's bottom and then followed by a footer. AND if the page is long, that text won't ...

How should 4 decimals places behave, being simple yet powerful

I have a UI question that troubled me on the best method to handle 4 decimal places for prices. In an table already cramped full of data, I would want to simplified the interface to make it not so cluttered. The actual current UI is shown below. http://i41.tinypic.com/bg5tub.jpg The problem is, for a unit price/units/D.Price and Dis.(...

What's the current (as of April 2010) state of affairs regarding <object> vs <embed> in HTML?

The age old question. <object> vs <embed>. From what I gather, <object> is the XHTML-compliant way of doing things, while <embed> is for legacy support. I'm currently building a Flash application that will contain a pre-made embedding code for users to copy and paste, and I'm wondering if it's feasible to simply dump the <embed> tag alto...

HTML/CSS: Making width consistent across multiple resolutions

I have some squares s of size 15px rendered on a page. Their absolute size varies based on the screen resolution - so on very large resolutions, these end up looking much smaller than I want them to be. How do I define the width in CSS to make sure they are more or less proportionate across all the different resolutions? ...

How to fill out a form field without a name in webbrowser control?

In the past, I used the code below to fill out a form field using the webbrowser control in VB.Net. The page I am working with doesn't have name field for the inputbox, so my code doesn't work. How would I fill out the input box defined at the bottom of this post in bold? Dim iPage As HtmlDocument iPage = wb1.Document iPage.All.Item("ca...

Unwanted caching of web page

I have a problem of web pages being cached even though I specify that it should not. Take the simple example : <html> <head> <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate"> <meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="Expires" content="0"> </head> <?php print date("Y/m/d H:i:s"); ?>...

want to change background of table td on hover

I have a webpage that displays a calendar, and I want to change the background-color of any td that has their day number linked, so when I hover over that day, it changes the background-color. I thought this would work: .main-calendar td { width:14%; height:100px; text-align:center; border:1px solid #000; font-size:...

Can I use an absolute url in an html img tag on a IIS7 ASP.NET application?

While migrating ASP.NET intranet applications from IIS6 to IIS7, I came across a problem with absolute urls in html tags: I can't get them to consider the application as the root of the url unless the application is published at the root of the web site. Here is a code snippet that demonstrates the problem. It is published in an appli...