html

Match any character (including newlines) in sed

I have a sed command that I want to run on a huge, terrible, ugly html file that was created from a microsoft word document. All it should do is remove any instance of the string style='text-align:center; color:blue; exampleStyle:exampleValue' The sed command that I am trying to modify is sed "s/ style='[^']*'//" fileA > fileB It w...

CSS column layout

Hi peeps. I'm going round in circles with a CSS layout. I basically want it like: <-------><--------------> <------><------> 400px 50% 50% So its 3 colums, one fixed size, and the other two taking up 50% each of the remaining space. I cant seem to make the second and third take up 50% of the remaining space. Any h...

multi-line options in htm select

Hi, is it possible (using HTML only) to display select with options that span multiple lines each? regards chriss ...

Can I prevent text in a div block from overflowing?

Can I prevent text in a div block from overflowing? ...

Does the img tag's alt attribute require encoding?

In html does the text inside the img tag's alt attribute require encoding/escaping? Non encoded example: <img src="myimg.png" alt="image description" /> Encoded example: <img src="myimg.png" alt="image%20description" /> ...

How to create a hovering pop up

I would like to have a link on my site that when you click it a site segment that hovers above the content appears and displays some information until it is closed in some way, and I would like to be able to insert anything I want to in there- text, images, CSS formatting, etc. What language should I use for this? Do you know any sites...

Setting Scroll Bar on a JScrollPane

I have this JTextPane (wrapped in a JScrollPane) that is backed by a HTMLEditorKit. The contents of the JTextPane is simple HTML with some images (local files) embedded using img tags. The problem is that when you load the the JTextPane, it takes a split second to load and then it comes up with the scroll bar at the bottom of the page. I...

CSS Pullquote with images

I'm trying to make a style for a pullquote that includes an image at the top left and bottom right corners of the div. My current solution is working in Safari, but in Firefox, only the end quote displays, although the space for the beginning quote is there. This is the HTML: Lorem ipsum dolor sit amet, consectetur adipiscing elit...

Jquery - Reference by ID - Supposed to return an array?

I just started using jQuery, and various sources suggest that the following should be used to reference an element by ID: $("#imgThumbnail") theoretically making something like this possible: $("#imgThumbnail").src; But my testing indicates that something like $("#imgThumbnail") returns an array, making the following necessary: $(...

Is there a way to get the entire source of a page with yql?

I am trying to load the source of any page into a textbox for a client side only html editor. I need to be able to get the entire source of a web page, not just the body. This yql query returns just the body: http://query.yahooapis.com/v1/public/yql?format=xml&amp;callback=editor.handleLoad&amp;q=select+*+from+html+where+url%3D%22exampl...

I want to test flash on my ASP.NET 3.5 website - any info on how i can?

I am using ASP.NET 3.5 and i am busy setting up a test site for the administrators to see if they can host my ASP.NET site with no problems. I have all ready added some Ajax and Session variables and now i want to add some flash in there as well. I have NO CLUE how to use it and where to start. Would i be able to just get some flash HTML...

efficency of storing data in cookies

On my non membership site I would might like to keep track of what songs a user last listened to via Cookies The maximum number of values in this cookie would be maybe 100 values. The IDs of the songs: (30,31,32,32,34....... and on and on.) Is there any reason not to do this? Users are not authenticated in anyway. And this is non ess...

jQuery .blur doesn't work

I have 3 .blur's and only the first one works for some reason. here's the jquery code: <script type='text/javascript'> $(document).ready(function() { $("#user_name").blur(function() { if ($(this).val().length > 4) { $("#usernamecheckbox").html("<img src='images/checkmark.png' alt='' />"); } else { $("#...

Table Row, can you set the height to zero?

I'm curious, Can you set a table row height to 0? IE 8, chrome, firefox, opera. Why you ask! Well, I have a row which is dynamically built and displayed when a user clicks a parent row. The trouble is that if there is no rows, when clicked, it still displays an empty 1 pixel high row. Thanks, R. This is the child gridview: <asp:T...

Javascript File References Problem (with jQuery)

Before, I had this: <head> <script src="/Scripts/jquery-1.3.2.min.js" type="text/javascript"></script> <script type="text/javascript"> var optPrompt = "- Select One -"; var subCats; var parentCats; var nextBtn; var ParentChanged = function() { ClearDescription(); ...

Hiding/Showing a swf in a div?

Hi. I have a flex app that I want to hide in a div until the user clicks a link or element of some type. I've noticed that embedding the swf in a div with style display:none does not actually hide the swf, so how would I go about accomplishing this? The goal is to have the flex app loading in the background while the user does other thi...

HtmlUnit property undefined script error

I’m submitting a form using java HtmlUnit package. I am able to get pages and submit forms but on one page I’m getting a ScriptException error. The message is “Cannot set property "disabled" of undefined to "0"” I think it might be caused by a javascript method that tries to set a variable that has not been declared in the form but I’...

Should we sort country list ?

I just wrote a list of country from the Wikipedia ISO 3166-1 My goal is to use it in select inside my xhtml, but it's a huge list. How many are you from Aruba? But how many are you from United Kingdom, France, or even United States of America? Sometimes, I can see that the most common countries are listed at the top of the list. Is it...

IE7 and posting a form in an iframe in MS CRM = new window

I have an ASP.Net MVC Page with a very simple form on it: One Textbox and a submit button. The form uses the standard mvc BeginForm() syntax: <% using (Html.BeginForm()) { %> When the page is opened directly, everything works fine. However, we have another web site (non MVC) that loads this page within an iFrame. Most browsers seem t...

Div. Combine precentage and fixed size.

Is it possible? div "menu" and "submenu" needs to be 50px tall. "top" and "bottom" needs to be 60% and 40%. The behinde-the-scene-calculation would be 60% - 50px for "top". <div id="menu"></div> <div id="top"> </div> <div id="submenu"></div> <div id="bottom"> </div> ...