html

Is there any way to indent wordwrapping acording to syntax in Vim?

Possible Duplicate: Smart Wrap in Vim I want the wordwrapping to fit the 4 space tab width in my html file. I want the Maecenas nisl quam to follow the identation of the li tag Is that possible (other than do it manually)? ...

Funny css rendering error in IE background-image has "display: block" in it.

There is a funny issue with how IE is parsing/rendering my css. I have the following style defined "background-image: url(/images/leftArrow.png); DISPLAY: block; cursor: pointer;" but for some reason, IE 7 & 8 are combining background and display to make it one property (see screenshot) Any ideas? ...

What are the benefits of showing "Your download will begin in x seconds"?

Are there technological benefits when presenting a "download page" that gives a message like the following? Your download should automatically begin in a few seconds, but if not, click here. Is there some bandwidth or server efficiencies with this? Or is it for the benefit of the user somehow? Why not just have your download l...

What is best practice use of dot slash?

I am seeing a great number of errors in our log files related to the use of the dot-slash "./" on the href attribute of the anchor tag. It only happens when the hit comes from a java client. HTML DOCUMENT <a href="./myPage.php">Link to a dot-slash file</a> ACCESS LOG ENTRY my.domain.com 123.456.789.012 - - [26/Jan/2010:14:17:15 -0500] ...

Is it possible to change the element id separator in JSF?

For example, the following snippet: <h:form id="levelone"> <h:inputText id="leveltwo" value="Test" /> </h:form> generates the following markup: <form id="levelone" name="levelone" method="post" action="/test/testPage.html" enctype="application/x-www-form-urlencoded"> <input id="levelone:leveltwo" type="text" name="level...

Float HTML elements over .swf file without triggering flash events.

I was wondering if anyone has came up with a way to float html elements, with some content, over .swf without triggering any flash events. In my case the problem is I have flash map, and drop down menu on top of it. I simplified this into the following example: http://f1vlad.com/etc/d.html If you mouseover any elements in gray box, ...

XHTML 1.0 DocType ignored in all browsers?

I was testing this, since I understood using XHTML let me use any valid XML for empty <div> elements: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <title>Test</title> </head> <body> <div ...

can I set a target frame for a header in php

I have this code header("location:login_success.php"); The frame target code that I used in html doesn't seem to work, is there a counter part in php that you can define where the header("location:login_success.php"); will go? This is in relation to designing the logout. I'm having problems because I have 3 frames. Is there any solution ...

double action link

Can I create a link that has another link in html. For example, I want to call an html form and the target will be the sidebar frame. At the same time, the board frame will also go back to the previous page. ...

Mixture of % and px <div> sizes

I've been struggling with this on and of for ages now. What I want is: A div 100% of the window height, 50% of the width, left=0%, red A div 100% of the window height, 50% of the width, left=50%, green A div 100% of the window height, 800px wide, horizontally centered,blue So the first two divs form a 2-tone background, on which the ...

When I use javascript's document.write command it doesn't seem to display leading spaces. Help please.

This is the code I wrote up to display a Mancala board but it won't display the leading space for some reason. Does anyone know why this is happening? Any help is greatly appreciated. function display(board) { var space = " "; document.write(space); for (var i=0;i<board.length/2;i=i+1) ...

How does TheSixyOne.com proportionally stretch the image to full page?

I love the new http://thesixtyone.com design. I am wondering how do they proportionally stretch the image to fit the whole background? Are they using CSS/Javascript or other tricks? ...

Floated link within a div screws up centering of image on same line

Hello, first off I would like to say thanks to those who have helped me out before on here. Ok the problem is this: I have several images which are placed inside a a div called "Banner" at the top of my web site. I also have a text link to facebook which is floated to the right. They are each centered using the following css... ...

PHP crop and resize image on the fly

I have a web page that displays images that I don't know their size in advance. I was trying to use the GD functions to make the script resize and crop the images from me " Just before they are displayed.. I don't need caches" but I failed. I need a script that I can call like this <img src="display.php?src=blablabla&height=100&width=20...

Should i repeat person name in alt text of <img> if name is already in source under image?

if I'm already having person name under/over image then should i use same name in ALT text? <p><img width="125" height="157" alt="George Washington" src="media/gw.jpg"><span>George Washington</span><p> <p><span>George Washington</span> <img width="125" height="157" alt="George Washington" src="media/gw.jpg"><p> Should i repeat <s...

Java library for HTML analysis

Hi, (I've seen similar questions, but I think none of them cater to my specific needs, hence...) I would like to know if there is a Java library for analysis of real-world (read: incomplete, ill-formed) HTML. By analysis, I mean things like: figuring out the most prominent color in an HTML chunk changing that color to some other colo...

Adding rows dynamically with jQuery

I'm building a form where I need multiple optional inputs, what I have is basically this: Every time a user presses the plus button a new row of form inputs should be added to the form, how can I do this in jQuery? Also, is it possible to automatically add a new row when all rows (or just the last row, if it's easier / faster) are fil...

Not displaying the country name (in 'Hindi' language)?

Not displaying the country name (in 'Hindi' language) in <th></th> tag?, but displaying country name in hindi in tag correctly Let me know the reason please Iam using php ...

Radioboxes and JQuery

Here's my HTML code: <label><input type="radio" id="fNuttig" /> Nuttig</label> <label><input type="radio" id="fNietNuttig" /> Niet nuttig</label> <label><input type="radio" id="fNogUitTeMakenNuttig" />Nog uit te maken</label> And here's my javascript code: if ($('#fNuttig').val() == 'on') { nuttig = 'Nuttig'; } else if ($('#fNietNut...

how to deal with async calls in Ajax 4.0(using jquery?)

in my code i have done something like this. $.get('/Home/Module/Submit', { moduleName: ModName, moduleParameters: moduleParameters }, function(result) { $("#" + target).html(result); }); when i put alert in the function(result) {..} it shows html perfectly(both in a...