html

Javascript IE6/7/8 change input type

The following javascript snippet will change the type of an INPUT, for instance from text to password. It's being used to allow users to display their password on-screen when typing it in: document.save_form.password_confirm.type= 'text'; ... document.save_form.password_confirm.type= 'password'; This works great in FF/Chrome but in IE...

Javascript/JQuery remove from tabindex

On an HTML form I have INPUT text box followed by a link, then followed by another INPUT text box. I want to remove the link from the tabindex / tab order: <p> <input type="text" name="field1" id="field1" value="" /> <a href="..a url.." id="link1">more info</a> </p> <p> <input type="text" name="field2" id="field2" value="" /> </p> Th...

Linking an external CSS stylesheet to HTML

I'm new to HTML/CSS and I want to have one of my HTML files use a CSS file. How can I do it? ...

[jQuery] Get what's in between the anchor tag that 's clicked.

If I had something like: <a>Content 1</a> <a>Content 2</a> <a>Content 3</a> And I wanted to get the what's in between the anchor tags (the words being clicked), how would I go about that? The links are shown dynamically, so I can't add an id attribute to them. (I think I can't, at least.) ...

Doctype html issue

Hi, happy new year! I'm making a page that uses a WYSIWYG editor. Like most editors, it puts everything in "<p>" tags. This gives a formatting problem when an image has 100% height and width. The following html shows the issue: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt; <...

is it possible to use a button as an hyperlink in html.

is it possible to use a button as an hyperlink in html. and it should be working for all the browsers? ...

Qt Python - report in toolbox: QTextDocument and QPainter

Hi Everybody, I want to build multiple documents report using toolbox. Two pages is an option get a start. Formatting is ok, and can be worked latter. I tried using QTextDocument in Html, and alternatively QPainter. Of course, to make a test and keep things simple, I just ask in Qt to show the report title displayed on top of the docu...

Center object in window

I'm new to web development, I'm sure there's a simple answer to this, but I cannot figure it out. Not entirely sure how to refer to things. All is done in HTML, Javascript and CSS. I have an HTML page in which I use divs to define clickable objects in CSS. I'd like to have Page X be able to exist just as a page without always snapping t...

When the browser is zoom out, my web page looks bad!. Why?

When I use zoom out in Internet Explorer, the page zooms out but not as uniform. It looks ugly. What is the reason for that? Help me plz After Zoom out (look at the three boxes): http://www.flickr.com/photos/41695354@N08/4233473080/ ...

embedded php code in html being displayed

i bought this php script and all the pages are in .html when I upload it to my ubuntu server and access the site, the php codes are literally displayed along with the html.... what gives ? how to fix this ? ...

Meta-tags for mobile – should they be used?

Meta-tags "Viewport", "MobileOptimized" and "HandheldFriendly" can be used to provide appropriately formatted HTML-content to mobile devices. Are these tags good things? They seem pretty platform specific in many cases, and even when not platform specific (viewport), they seem to require device specific attributes in order to work proper...

JavaScript CSS how to add and remove multiple CSS classes to an element

How can assign multiple css classes to an html element through javascript without using any libraries? ...

click doesn't fire when WMODE=TRANSPARENT in SWFUpload button

I have a Flash-based SWFUpload upload button in a HTML page. I am trying to style that button. SWFUpload provides a Javascript setup interface to the Flash button's settings. I don't have Flash myself, so I have to work with the pre-compiled SWF file. ..... button_width: "100", button_height: "20", button_placeholder_id: "...

XSLT template select and match issue

Hello everyone, I am confused about how this XSLT apply-template statement works for cd/title/artist elements in the w3school sample, http://www.w3schools.com/xsl/xsl_apply_templates.asp Here is the code snippet I am confused, I am confused when xslt processor finds <xsl:apply-templates/> in below sample, it will match all child nodes...

HTML CSS How to stop a table to put the content after it on a new line?

I have a table followed by an anchor tag. I want the anchor tag not to move to next line after the table. What are the options? ...

Images don't show up in IE8

As part of my job post announcements to a proprietary, password-protected site. There is no HTML control in the announcement panel nor is there a button that allows you to insert an image. I've worked around these limitations by making my own basic HTML pages with tables with images using the "img" tag. I open the HTML page in Firefox, t...

<a href ="somewebsite.com"> takes to localhost/somewebsite.com , Why ?

I want to open somewebsite.com , but it goes to localhost/somewebsite.com , why its taking relative path. Please help ? ...

Repeating regex groups

I'm trying to get some information from a web site. The information I want is in a table so I made a regex but I don't know the right way to simplify it. The following are two parts of my regex that I would like to simplify: <br>(.*)<br>(.*)<br>(.*) <tr><td>(.+)r>(.+)r>(.+)r>(.+).+</td></tr> # This part should be repeated n times(n = ...

Should I start with HTML or XHTML?

So which one to start with, HTML or XHTML? I am a beginner and wants to have solid foundations of markup language but as I started learning I found some people use HTML and some XHTML. ...

Problem sending a POST Request with Parameters From a Java app

Hi There's a web page with a search engine: http://www.nukat.edu.pl/cgi-bin/gw_48_1_12/chameleon?sessionid=2010010122520520752&amp;skin=default&amp;lng=pl&amp;inst=consortium&amp;search=KEYWORD&amp;function=SEARCHSCR&amp;SourceScreen=NOFUNC&amp;elementcount=1&amp;pos=1&amp;submit=TabData I want to use its search engine from a java app...