html

Hide part of a Flash animation in HTML

Hi all, I have an .swf file (a flash animation) that is too big and unfortunately we do not have the source code (the .fla file) anymore. I need to display it in a div, and want to hide part of it. Any idea? Thank you. ...

How to modify web page elements loaded in a browser

I want to associate some actions with keys (of a keyboard) and then modify the contents of a webpage loaded in the browser. For example, I'll write a firefox plugin and that would be listening to some keyboard events. Based on a key press (or something like that) I want to modify the html code of the page. For example, I would like to ch...

pass line breaks in text area input

I have a textarea input on a form for users to submit their snail mail address. This is the code I have <textarea name="Mail" rows="4" ></textarea> I would like for the line breaks in the text area to be passed in the POST data so that the address will appear properly in the code echo $_POST['Mail']; ...

Custom text for file input

Is there a way to change the text on a a file input in html? ...

CSS : Table with Labels and Text Boxes

I am trying to break the table crutch... I want to place 3 "labels", "First", "Middle" and "Last" over 3 text boxes so that the labels are above the corresponding text boxes and the labels and text boxes are vertically aligned. In other words, I need a 3 columns table where the first row has 3 labels and the 2nd row has 3 text boxes in ...

help with css on border image

I'm trying to create borders with images, and I'm almost there, but the left and right divs aren't quite right. The left one is under the TL, which is bad, and the right one floats under it for some reason and makes the bottom stuff all shifted over. I could attach an example if I knew a good site to put sample stuff on (don't want to gi...

unmanaged VPS account; Beginners questions

I have a classified website which uses MySQL, PHP, Solr (java) etc etc... I wonder where I should start after purchasing a VPS package from my provider. There are first of all several packages, I am going with Linux because as far as I know it is the most stable system. But I have never used Linux before! What is Ubuntu, and which ver...

jquery hover on dialog

<div id="view"></div> <div class="bar" style="padding:0px;" id="bar"> <script> var bar = '<img class="myclass" src="button.png" >&nbsp&nbsp' ; $view = jQuery('#view') ; $view.dialog({ height: 650, width: 650, buttons: { "welcome" : function() { msg() ; } ...

MIDL doesn't want me to define a HRESULT-less function!

Hello folks, I'm writing a custom ATL ActiveX component, but I'm having this little weeny problem: Visual Studio insists that every function defines in the *.idl file has to have a HRESULT return type, even though I want to have a ULONG return type. [id(3), helpstring("method addh3h3")] ULONG addh3h3([in] ULONG x, [in] ULONG y); It gi...

Is it ok to use <strong> in place of <b> blindly ?

Note: I know <b> is presentational and <span style="font-weight:bold> is a better way, and <strong> and <em> are for emphasis but my question is not regarding this. Should we convert every <b> to <strong> blindly? Many people do this, they think <b> is not good as per web standards so they convert every <b> to <strong> upon site redes...

Is using GET with a tokenID for security a good idea?

I was thinking about this and it appears POST only a little less vulnerable and somewhat harder (do to requiring the user to click something). I read about token ids and double submitted cookies and i am not sure what the difference is http://www.owasp.org/index.php/Cross-Site_Request_Forgery_%28CSRF%29_Prevention_Cheat_Sheet#Disclosur...

Inline Blocks and Text Wrapping with CSS

I want to display a checkbox, followed by some text that wraps around below itself. The HTML without any CSS looks as follows: <input type="checkbox" checked="checked" /> <div>Long text description here</div> I want it to display similar to: X Long Text Description Here It currently wraps around like this X Long Text D...

Do fieldset tags have any accessibility benefits?

Hi. I know that a lot of the features in HTML are required for web pages to be accessible to people with poor or no sight, that special browsers can read aloud the text for these. In order for this to work properly, you must make sure that you follow good HTML coding standards, e.g. you should make sure that your images have an alterna...

POST or GET in XMLHttpRequest

What does post mean in the following? ajaxRequest = new XMLHttpRequest(); ajaxRequest.open("POST", "url" + queryString, true); because i'm not able to access variables using $_POST['var'] from url but with $_REQUEST['var'] I can access value.. ...

How to select all li greater than that the cursor hover it?

Hi, all! I want to change css color of all li elements that greater than that the cursor I hover. To be clear I give an example: Suppose I have 10 li - elements in an unordered-list (ul - element).When I hover over 5th element I want that all elements from 5 to 10 will be changed css color (first 4 elements remains black be default). My ...

How to display status message on web page.

Hello, I have a bash script that checks for and deploys new .ear files to the JBoss server.I have linked this script to a web page, so that users can deploy their applications by clicking on the link. I have also been able to set a status message that the application is being deployed, when a user clicks on the link.(Done using Javascri...

How to position relative elements with lots of next to a element that are not as high, floating left

Hello, I have a page where I have a menu to the left and to the right I have a new section with a lot of text. The text is positioned correctly to start with, but as soon as the text goes below the left menu's height, the text is positioned more to the left. I understand that this is because the section is floating (pls correct me if I'...

html security profiling tools

I am developing a site and i am using yslow to profile speed and stats, webdeveloper for html and css validation, etc. What can i use to check for security mistakes? ...

Target _blank netiquette

I'm not talking about the way and means of opening new windows or tabs, that's not the problem. (And I use a rel="external" attribute rather than target="_blank" these days anyway.) I'm talking about the philosophy of this line of thinking: Also the site map & Privacy Policy links at bottom of screen should open a new window rat...

Regex for adding a versionnumber to .js and .css references in a HTML document

Hi folks, I have a HTML document where I want to automatically have a version number added to all script and style sheet references. the following should be replaced <link ... href="file.css" media="all" /> <script ... src="file.js"></script> <script ... src="http://myhost.com/file.js"&gt;&lt;/script&gt; with that <link ... hre...