html

Can a Silverlight 3 out of browser application (OOB) host a html area?

Is it possible to include a html area in a Silverlight 3 out of browser (OOB) application? Due to the fact that no html/dom bridge is accessible the DIV overlay does not work as far as I know. ...

How to place a img in the right bottom corner of a div

This is what I want to do. A Div with some text in it and on the right bottom corner a img. The hight of the div is stable at 24px but the length is not known and there could be more than one of this divs In a row. ...

CSS: Force float to do a whole new line

I have a bunch of float: left elements and some are SLIGHTLY bigger than others. I want the newline to break and have the images float all the way to the left instead of getting stuck on a bigger element. Here is the page I'm talking about : http://www.stdicon.com/gartoon/ If they are all the same size if works beautifully : http://www...

HTML output with jsp:include and json-taglib

I'm using jsp:include inside json-taglib's json:property element. The problem with this is that all HTML elements from included JSP page gets stripped at some point and only plain text remains. I have already stripped all newlines so the result shoud be valid JSON data. How do I get full HTML returned by json-taglib? Below is a snippet...

controlling border length

i want to limit the border length applied to a div element(or any HTML elements) . For example consider a div of width 100px, is there anyway to apply the border to only 40px width itself? ...

Magento adding left column in home page

Hi In my magento project left side of the Home page is empty, i want to place an image in left side and also in the middle portion, what are the steps to place these two in my project? Thanks in advance ...

Yellow text showing up on website, but hard to troubleshoot

We have gotten several emails and phone calls about yellow text appearing on our webpages at http://www.ciu.edu. We are specifically using a black text in the stylesheet. It is on a tan background. One person claimed to be color blind and I have tried various tests for colorblindness, but no such luck. We are at a loss as to what is g...

Best practices for having HTML/XHTML content within XML elements

Anyone know what the best practices are or have general advice around having HTML/XHTML content within an XML element? Is it best to use CDATA or to just HTML encode the HTML? ...

howto hide a text input's, browser generated dropdown ist of previous items, with javascript or css

When I generate a text input like this: <input type="text" name="name" /> When I start to type, the browser will display a dropdown list below the text input. This list contains the values I previous used for this text input in this browser. I want to generate my own autocompletion via ajax. How do I tell the browser with either css ...

Ultimate Website Testing String

Hi all. I've been grappling with the fraught area of escaping user (text) input for web pages. The ultimate goal is to have user input displayed and stored exactly as typed in, without breaking anything. To that end I have been using the following test string : '"$%^&()+=-£{}[]/n/<>\@~;|,.?#:!&amp;``&quot;&#39; It seems to work we...

view the html source of an xml document transformed by xsl

Hi guys, This is a fairly simple case. I have an xml document, linked to an xsl stylesheet, that can be viewed in a web browser. Now that the output is not really what I expected, so I want to look at the (output) html code to see what happened. However, when I say "view source", the browsers just throw the original xml file at me. Pleas...

jQuery, select TR's in table where column 2 data is constant?

Hi Guys, I have an HTML table. I need a jQuery selector to select only the TR's, where column2 (TD) text is equal to = "foo". Is this possible? <table> <tr><td>asdasd</td><td>foo</td><td>fsdf</td></tr> <tr><td>asdasd</td><td>xxx</td><td>fsdf</td></tr> <tr><td>asdasd</td><td>xxx</td><td>fsdf</td></tr> <tr...

Preventing access to files if a user types the full url on the address bar

Hi. i have a website, some folders on the websites contains images and files like .pdf , .doc and .docx . the user can easly just type the address in the url to get the file or display the photo http://site/folder1/img/pic1.jpg then boom.. he can see the image or just download the file my question is: how to prevent this kind of acti...

CSS: How to fix an element horizontally but not vertically?

You can see an example here: http://alboard.free.fr/adrien/test.html The layout is based on horizontal scrolling (the red element). But I want the top part to be fixed (the blue element). If the user resizes the viewport, a vertical scrollbar will appear. If at this point the user scrolls down, the red element will go up while the blu...

JQuery - start tutorial

Hello, i have to learn JQuery. Here is the first sample from their tutorial: <html> <head> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> $(document).ready(function(){ alert("Thanks for visiting!"); }); </script> </head> <body> <a hre...

How to force an hidden+empty <div> to take up space?

Note that my question is not about how to fill remaining space with <div>. Background: I'm trying to use jQuery sortable with a series of horizontally laid out <div>, with class "column" .column { display:inline-block; } Now in FF, everything looks good. During dragging, the "placeholder" which jQuery sortable injects is an empty <...

How to manually trigger validation with jQuery validate?

I want to manually trigger validation including showing error messages with jQuery Validate. The scenario i am trying to accomplish is a form like this: <form> <input id=i1> <button id=b1> <input id=i2> <button id=b2> </form> When clicking b1, only i1 should be validated. hen clicking b2, only i2 should be validated. However all fi...

IFrame content swapping bug?

I have a web page with a number of iframes, including 3rd party iframes like ad sense and various sharing buttons. In Firefox, I've noticed that occasionally the content of these iframes get swapped, such that you'll get an ad sense ad where another iframe is. It seems completely random where iframe content shows up. It seems it may ha...

Change the content type of a pop up window.

This question brought a new one: I have a html page and I need it to change the content type when the user press "save" button so the browser prompt to save the file to disk I've been doing this in the server side to offer "excel" versions of the page ( which is basically a html table ) <c:if test="${page.asExcelAction}"> <% ...

String "</script>" causes an error in IE

If I add this piece of html to my page: <script type="text/javascript"> var s = '</script>' </script> IE 7.0 shows a syntax error (exclamation mark in left bottom corner): "Unterminated string constant" if I change just one letter (any) the error disappears - looks like IE doesn't like this particular word, including brackets. Any ...