html

AIR HTML control setFocus

Hello, I have an application that sometimes has a HTML control. If I remove the html control and click outside the app and then back on again. I get an error. TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.core::FlexHTMLLoader/setFocus()[C:\autobuild\3.5.0\frameworks\projects\airframewo...

PHP - HTML form two possible actions?

Hi, I'm creating a registration page and I would like to give the user the opportunity to review their information and go back and edit it before clicking a confirm button which inserts it into the database. Is there a way to include two submit buttons which point to different scripts or would I have to duplicate the entire form but use...

HTML: Is it valid to set img src="about:blank"?

Background: I need to have an inline element to which I can apply width and height via CSS. AFAIK, img is the only way to have this behavior, currently. I would rather not have the image point to a transarent pixel GIF on the server. It may be cached, but browsers queue it nevertheless, slowing down overall page speed. Other clients mig...

How to reduce space between tr?

Hi all, I am trying to replicate a page I have been given, and I have nearly finish, but I have a small problem with it. The space between tr are too big. I have done it reducing the margin top and bottom but there is a point where rows overlap. Does anybody have any suggestions? Thanks. e.g. <style type="text/css"> .divContainer {...

IE6 nowrap and floating problem

This is driving me nuts... <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml" > <head> <title></title> <style type="text/css"> .cantWrapper { white-space: nowrap; } .cantWrapper .floatedDiv { float...

When printing more than one page it breaks table between two pages.

Hi all, I am having a problem with a page because its longer than one page it break a table so it would be printed in two pages. I would need to stop this from happening, but I don't know how. I tried table { page-break-inside:auto } tr { page-break-inside:avoid; page-break-after:auto } Which I saw in another question here but no ...

info on javascript document.createElement()

How do I create the following markup using JavaScript's document.createElement function? <input type="hidden" value="" id="" /> ...

How to use if else condition to change doctype according to the browser in html file.?

Hi ; We are working on :hover pseudo-class in IE 7, which works only if the docktype is < !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd"> ,but it decrement the font size of all element please help me .. ...

Decode HTML entities in Python string?

I'm trying to work out if there is a better way to achieve the following: from lxml import html from BeautifulSoup import BeautifulSoup soup = BeautifulSoup("<p>&pound;682m</p>") text = soup.find("p").string print text >>> &pound;682m print html.fromstring(text).text >>> £682m So I'm trying to produce the same string that lxml retu...

set var value from input field value

Hi! I started short time ago with JSP, JSTL, HTML and JavaScript so here is my problem: I need to set the value of a var the value of an input hidden. Other option is if it possible to compare using <c:if test="...."> the value of a variable that I sent with the request with the value of the hidden input. Thanks. Update I've been ...

Stop pop-ups with URL

Hello, I've been asked a question, and don't know if there is an answer. "do you know if there is some code you can put into URLs to block pop-ups?" This isn't using pop-up blocking software or toolbars etc, but a parameter in the URL. Almost opposite to the target="_blank" for instance. Thanks in advance. ...

Can I make a custom colour definitions that I can share between CSS, JS and HTML?

I have a blue-ish colour that I want to use in many places in my app and at the moment I am copying and pasting it between styles in my CSS. Is there a way of defining a constant like the standard colours, 'blue', 'red' etc. that I could share between my CSS, my HTML and my JS? I'd like to be able to say (somewhere, preferably CSS) my...

Where can href attribute appear in HTML document?

In which elements (tags) attribute href is allowed according to the HTML 4.01 standard? EDIT: An is it commonly used is some other tags (in non-standard ways). ...

Turning HTML Div code into a Control

I have bunch of HTML code I am using to make rounded edge boxes on my controls. Is there a way to take this code and turn it into some kind of control or something so I do not have to keep pasting 10 lines of HTML code around everything I do? <div id="BottomBody"> <div class="box1024" > <div class="content1024"> ...

Whats the best way to pass values from an html page to a java class?

Hello I have a project that needs to be changed.. right now i have a web page that posts to a jsp that calls a servlet that calls a "backend" using Tomcat. I need to get take Tomcat off the scene. What i want is when i POST, it calls directly the "backend" Any suggestions on how can i accomplished that? Thanks Rev ...

I need to open a link into a new small window.

I have images on a webpage that I want to have linked to another website, but in a new window of a certain size. In Dreamweaver, I used Window > Behaviors > onMouseClick, but for some reason, that isn't working. The image isn't recognized as a link. Is there any other way I can have it open a link in a new window of a set size, and actu...

How to insert a SVG object into HTML with links?

I don't want to add a link to a svg (which is not possible because the svg isn't provided by me), but want to add a link like <a href=""><img src="foo.svg"/></a>. Only that this time it is not an img, but a object (so I can include a svg). It works with some browser, but for example not with firefox. What is the default idea how to do s...

dynamic navigation list menu

Hi All, I am working on a small application and I basically need a list of 5 items say Name Address City Country Zipcode Whenever the user clicks on anyone of these he needs to be directed to another page and that particular item needs to be highlighted. I want to do this dynamically. I have an idea that it can be done with javascr...

html css alignment

Hi All, Please refer the below code. I want the boxes for Blue and all other color to be stretched. I mean it should start and end with the border of Styles and Colors. Thanks <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; <html> <head> <meta http-equiv="Content-Type" content...

How to post XML to server thru HTML form?

I have to post data from my HTML form to server in xml format, something like: <some_parameters> <firstname>Homer</firstname> <lastname>Simpson</lastname> <street>74 Evergreen Tr.</street> </some_parameters> All I know it goes to one of the CRM applications run on different domain. Now I'm not sure what is the best way to ...