html

How can I add a picture in address bar of the browser when my page is browsed?

Duplicate: Image icon beside the site URL What is currently the best way to get a favicon to display in all browsers that support Favicons? Preferred way to use favicons? I want to add my logo in the address bar of the browser, whenever it is browsed. How do I make a favicon? ...

Javascript for zooming and panning an image

I have a requirement in the project I am working on for a piece of JavaScript which will allow the user to pan over and zoom in and out of a large image. Unfortunately, my experience with JavaScript is limited. Does anybody know of a free script out there which would satisfy my requirements? ...

jQuery not triggering on appended item

I'm having a problem triggering events on items that have been added to the page. In the following example, if you click X it will remove one of the items, but you if you add an item you can't remove it. Here's the list: <ul id="mylist"> <li>Item 1 <a class="remove">X</a></li> <li>Item 2 <a class="remove">X</a></li> </ul> <a cl...

How to tell if a browser is in "quirks" mode?

Let's you have a page with a relatively strict doctype and HTML markup that's pretty close to compliant, but perhaps misses in a few silly ways that are out of your control. How can you tell (or: what will determine) when the browser decides to go into "quirks" mode rather than use it's more standards compliant engine? I'm looking ...

Tab order issue in IE with initial Javascript select of field in form

I'm trying to achieve the following behaviour in html: user is presented with a form involving several text fields. The fields are populated with default values, but in many cases the user will wish to enter their own. When the page loads, the value in the first field is selected, so the user can either replace it by simply starting t...

Date and time input

How can I show a date popup box that formats the date so it will fit in the mySQL date field? Also, how can I check or format time to fit in the mySQL time field? ...

CSS3's border-radius property and border-collapse:collapse don't mix. How can I use border-radius to create a collapsed table with rounded corners?

Edit - Original Title: Is there an alternative way to achieve border-collapse:collapse in CSS (in order to have a collapsed, rounded corner table)? Since it turns out that simply getting the table's borders to collapse does not solve the root problem, I have updated the title to better reflect the discussion. I am trying to make a tabl...

How to avoid name clashes in javascript widgets

I have a javascript widget (a piece of embedded JS and HTML code) that's embedded on other sites. What should I do to make sure it's variable names don't clash with the hosting page variables? I'd like this widget to be "inlined" meaning on the same page as the hosting page, not in an iframe, what's the best way to avoid name clashes wi...

Disabled Checked checkbox shows as unchecked - ASP.NET

I have a input checkbox that is checked and disabled when some JS runs on page load. <input name="selectUnionDues" id="selectUnionDues" type="checkbox" checked="checked" runat="server" /> When I get the value of the checkbox by using (on the server side) this.selectUnionDues.checked //returns false I always get a false EDIT: I am...

Can you help with a regular expression or function to remove HTML encoded tags?

I need a regex or function that can remove the ENCODED HTML tags from a database record. I have text in a database that is being stored (from TinyMCE) as encoded HTML. The code has the 'less than'; and 'greater than'; tags encoded. I would like to remove all the encoded tags and HTML and just leave the plain text and spaces only. ...

Can I stop 100% Width Text Boxes from extending beyond their containers?

Lets say I have a text box that I want to fill a whole line. I would give it a style like this: input.wide {display:block; width: 100%} This causes problems because the width is based on the content of the text box. Text boxes have margin, borders, & padding by default, which makes a 100% width text box larger than its container. Is ...

Dynamic page Titles

I have this class for page titles: class UI { private static $title; public static function getTitle() { return self::$title; } public static function setTitle($value) { self::$title = $value; } } So in my frontpage I simple declare this: UI::setTitle('Kiubbo.com :: Todas las Noticias, Fotos y Videos'); And works ...

Positioning problem and CSS menu won't show through nested Divs in IE7

For this site: http://writershore.com/ltlaw/ I validated the site as XHTML 1.0 Transitional, and now the absolute positioning doesn't seem to work and worst of all the menu doesn't work correctly in IE, it seems to show underneath the Div. In Firefox and Chrome the menu works fine. Any thoughts on what is wrong with my positioning in ...

Solution to remove frames from a website

At the moment I'm working with a booking website that has a frame set. Let's say, 40% is from it's own website, so can be easily altered into a frame less site. However, the actually booking-flow is from another website (also maintained by us) and is meant to "live" on it's own, so that 3rd party websites can buy/use the booking-flow a...

Puzzling ... why do most of my links, in ASP.NET MVC, have Length=4 appended to them?

Why does the following code: <%= Html.ActionLink("[Click Here For More +]", "Work", "Home", new { @class = "more" }) %> render as: <a class="more" href="/Home/Work?Length=4">[Click Here For More +]</a> Where is that "Length=4" coming from? Update If I remove the new { @class = "more" }, I don't get that Length=4 parameter. ...

BeautifulSoup gives me unicode+html symbols, rather than straight up unicode. Is this a bug or misunderstanding?

I'm using BeautifulSoup to scrape a website. The website's page renders fine in my browser: Oxfam International’s report entitled “Offside! http://www.coopamerica.org/programs/responsibleshopper/company.cfm?id=271 In particular, the single and double quotes look fine. They look html symbols rather than ascii, though strangely wh...

Floating toolbar on bottom, centered, 80% of current screen width

I'm trying to implement a Facebook like toolbar on the bottom of the screen for a website I'm currently working on. Currently, I have it 100% of the width of the screen but I'd like to have it look almost exactly like Facebook's toolbar, centered, bottom justified on top, around 80% of the current screen's width. Here is the current CS...

How do you make an HTML Radio button bold on select ???

In HTML, I have the following radio button choices o Choice 1 o Choice 2 o Choice 3 What I would like to do is when someone SELECTs a radio button from above, that the text corresponding to that radio button selected becomes bold. So, for example - if the person selects "Choice 2", the radio button selection would now look like: o...

how to access iframe parent elements?

What i am doing is a new image uploader, i want to put the input file in the iframe and show the uploaded images in the parent page. So how can i access the parent elements from the inner iframe? or if some one have an example, that will be nice as well. ...

How can I restrict the use of other applications during an online exam?

I have created a online examination web application. I want the users to avoid using browsers (for checking answers in Google). How should I achieve this? Shall we have the full screen mode, even though I want to restrict minimizing the window or using Ctrl+Tab? Is it possible? ...