html

Dynamically Expanding the width of a TD

Is there a way for expanding the width of a TD in the table based on the width of the next TD. The asp:Panel is going to be hidden or displayed based on some condition in the code behind. I'm thinking it's some CSS thing that would help me fix this, but unable to put a finger on it. Help!! Here's the HTML Markup: <tr> <td class=...

Can use of special characters in coding be a problem for users somehow?

I have a website with UTF-8 format on all pages. The website is in Swedish so there are three special characters... Using these characters in the code (values, ID:s, names etc) works fine on my computer and my browsers, but I wonder if it does work the same on all browsers? In other words, do you think this will be a problem? Thanks ...

Javascript onchange different in IE and FireFox

When this onchange event in IE returns false, IE focus stays on that input box. In Firefox the focus always moves to the next field regardless. HTML: input name="seminar_donation" type="text" id="seminar_donation" onchange="return CheckTotal(this);" JavaScript: function CheckTotal(inputbox) { if (isNaN(parseInt(inputbox.va...

HTML text and image line folding

Hello. I have the html page where textual article title is followed by an image. When the title is big enough some part of it goes to newline together with the image. But sometimes the textual title fits the page, but only without image, so the image goes to newline. How to glue the image with the last word of the title, so that image w...

Achieving sub numbering on ol items html

Im not sure what its called but is it possible to achieve the format of: 1. 1.1 1.2 1.2.1 1.2.2 1.3 I think thats all, thanks! ...

Output first two paragraphs from html stored as string

Hi, I have html stored in a string variable within my c# .net 2.0 code. Below is an example: <div class="track"> <img alt="" src="http://hits.guardian.co.uk/b/ss/guardiangu-feeds/1/H.20.3/30561?ns=guardian&amp;pageName=Hundreds+feared+dead+in+Haiti+quake%3AArticle%3A1336252&amp;ch=World+news&amp;c3=GU.co.uk&amp;c4=Haiti+%28News%29%...

Jquery modal window help

All, I need to get the below code (radio buttons,input boxes,textarea) on a jquery modal window. The requirements are that the contents should be enlarged on opening a dialog window when clicked on (Open window) hyperlink.Else be small in size. Please help me out with it. PS:I had posted the same question in another post (i have for...

Output text file with line breaks in PHP

I'm trying to open a text file and output its contents with the code below. The text file includes line breaks but when I echo the file its unformatted. How do I fix this? Thanks. <html> <head> </head> <body> $fh = fopen("filename.txt", 'r'); $pageText = fread($fh, 25000); echo $pageText; </body> </html...

innerHTML alternative for retrieving contents of page?

I'm currently using innerHTML to retrieve the contents of an HTML element and I've discovered that in some browsers it doesn't return exactly what is in the source. For example, using innerHTML in Firefox on the following line: <div id="test"><strong>Bold text</strong></strong></div> Will return: <strong>Bold text</strong> In IE,...

Whats the rendering difference between a span and label tag?

So I understand the functional difference between the span and label tags... however it appears there is also a rendering difference between the tags and I can't seem to figure out what it is? Does anyone know the rendering difference between span and label? Thanks ...

Using Javascript to change the method/function an HTML element calls.

I was wondering if its possible to use Javascript to change the function/method that an HTML element calls. Example: <input type="button" id="some_id" name="some_name" value="A Button" onclick="someFunction()" /> I now want to use Javascript to change the method/function called on the onclick event to another function has displayed ...

JQuery Rotating Banner Question...

I am looking for a JQuery solution to something like the rotating banner located at http://www.bazaarvoice.com. One where it has a timed scroll but also allows the user to toggle by rolling over tabs. Anyone know of a good, easy to style one? ...

Why is this HTML table not 508 compliant?

So I ran one of my pages source code through a 508 compliance checker online, and it came back saying some of my tables are not correct, I followed the guidelines to use the scope setting but it still fails: <table> <tr bgcolor="#f6f7f7"> <td scope="col">adsf</td> <td scope="col">Type</td> <td scope="col">&n...

jQuery: How to get a set of elements?

I have a simle html div with a variable number of input checkboxes and i whould like to chek which chekbox is cheked and which isn't HTML code: <div> <input type="checkbox" val="1"/>Check One<br/> <input type="checkbox" val="2" checked="checked"/>Check Two<br/> </div> Javascript code: var $kids = $("div").children("input"); ...

How do I append a / (forward slash) to a URL?

I am working on an Expression Engine site and the URLs end as follows: http://www.mydomain.com/education/new-courses I need to be able append a forward slash after just this one link, so that it looks like this: http://www.mydomain.com/education/new-courses/ I am looking for an appropriate ReWrite rule that would add the necessary ...

For a states dropdown, should you list CA provinces by default?

This isn't exactly a programming question, but it relates to web forms, and the generation of markup for states/provinces. My site is by default the en-US locale and there is no Canadian version, should I list the Canadian provinces or should I just have a label that says something like "Other ( Province )" ? I'm realizing th...

What are best practices to make layout scalable?

What is technical difference between Fluid vs liquid vs elastic vs Flexible css layouts? Are these all same or different technically? Is fluid layout better for both mobiles and computer user? I think there are only two properties to make fluid layout "em" and "%". And we already use "em" for font even in fixed width layouts. What ar...

Firefox plug-in that downloads a complete webpage?

I recall using a Firefox plug-in that saves a web-page to disk, including all dependencies, such as images, CSS, Javascript, etc. Just can't recall the exact name of it. I think it was called "snapshot" or something, but I've been Googling for half an hour and still can't find it. Can anyone help? ...

iPhone SDK: control websites in UIWebView programmatically

I need to control a website that is loaded into a UIWebView like sending post data and using get requests. After each request the response should be loaded as a string into a variable. The reason for this is that I'm trying to fetch data from a website that has no public web api and using cookie based user authentication. So I want to l...

html nested radio buttons

i have 4 radio button(a,b,c,d).when i click radio button a, there would be another 2 option which is a1 and ab.and also..when i click on radio button d there is the same output d1 and d2..and if i choose d2..another radio 2 button appear..how to do that?thanks..i really need this..if possible can u give me the coding?`` ...