html

Facebook uses all Javascript... why?

I noticed that like Google Email, FB's source code shows nothing but Javascript. Why do they use JS to write the page? ...

Html and CSS for emails, how to, where to?

Hi, I have to design quite a lot of html email. The way I do it at the present is I design and html file and the css until it´s looking good in the browser. Then I send it, and start fixing it for the different clients, there it all goes really wrong (believe me outlook plays tricks on your mind, much like his cousin IE does). The qu...

C# Version of Html Tidy?

Just looking for a really easy way to clean up some HTML (possibly with embedded JavaScript). Tried two different HtmlTidy .NET ports and both and throwing exceptions... Sorry, by "clean" I mean "indent". The HTML is not malformed, at all. It's XHTML strict. Finally got something working with SGML, but this is seriously the most ridi...

making this right in html

Hello i tried hard to make exactly like this: But it's difficult for me, and its not right at all. My boxes arent so perfect as in the image, and same with the text under it. <table border="0" align="center" cellspacing="2" cellpadding="2" > <tr > <td class="cell" style="color: #CCC; font-size: 10px;">...

Center Form Dynamically Add Elements Remain Center?

I have a basic HTML form that I am centering. I am using jQuery plugin to dynamically validate that the fields are required. When it adds the "Field is required" message after the text box, it causes the form/table to shift due to the fact that it is in a table. This makes sense. The question I have is what is the best way to keep th...

Visual Studio reformats my pre-formatted HTML

When I put text directly into a <pre> tag and press Ctrl+K, Ctrl+D, the whitespace is preserved. <pre> This whitespace gets preserved.</pre> But when I put text in a tag nested within a <pre> tag, the whitespace is not preserved. <pre><code>This whitespace doesn't get preserved.</code></pre> Only text directly w...

JavaScript: I have an array. I want to check if the first element is a fieldset.

OK, so here was my original problem. You don't have to read it but in case it helps: http://stackoverflow.com/questions/4001246/firefox-thinks-fieldset-is-a-form-element-chrome-doesnt Basically, Firefox and IE count the fieldset in my HTML as an element in my array, and that screws everything up. But Google Chrome does not count the fie...

Please find problem in my html <form> tag

Hi? I'm a university student of Korea, and this semester I'm studying internet programming. I made html, and I made tag. However I think that there is problem in my tag. In fact I hardly effort to find problem, but I cannot find that. Experts!!!Please find the problem!!!! This is my form tag. <html> <head></head> <body> <form name="fi...

How to pass parameter in the newElement.setAttribute in javascrip

Hi guys, I am using this code to generate the textbox dynamically by using the javascript.Its working fine .But my issue is all generated textbox have the same name .Is there is possible to prefix the textbox count with the textbox name So that it is easy to post the textbox values. <html> <head> <script>//addElement('INP...

Horizontal nav menu with jQuery css sprite rollover

I was thinking of having a unique setup for my left navigation on my Mario themed website: OK, so for each link, I would have the text like "Action Figures" for example in a certain font. Give a little room, and then insert a sprite of a certain Mario character, Mario would go next to "Action Figures", Luigi next to "Board Games", so o...

is it possible to prevent iframe content from escaping into main page using js ?

it is often done by code like this: if ( window.parent.frames.length>0 ) {} // check how many frames, if none do nothing else { window.location="[new destination]"; // else change the current location } But I want to prevent iframe content from knowing that it is on the iframe. I am writing a php proxy and content will be from t...

How to replace text URLs and exclude URLs in HTML tags?

I need you help here. I want to turn this: sometext sometext http://www.somedomain.com/index.html sometext sometext into: sometext sometext <a href="http://somedoamai.com/index.html"&gt;www.somedomain.com/index.html&lt;/a&gt; sometext sometext I have managed it by using this regex: preg_replace("#((http|https|ftp)://(\S*?\.\S*?))...

regarding runat=server

I got this div tag who's background image's being set in the CSS using some method like this.. Inline CSS:- .id0, .mySprite:hover div { background-image: url(<%=GetImage()%>); background-repeat: no-repeat; width: 728px; height: 243px; } HTML:- <div class="id0"></div> Now do I need to set ru...

PHP and Keywords

Hi, I would like to know if I can make a php script that will allow me to echo keywords into a meta tag.To be more precise will the keywords echoed by the php script be indexed by search engines? I don't need the actual script I just need to know if this will be any good for indexing. ...

XSL Writing html code directly in docbook

I am new to docbook, but can not find a decent way to write some pieces of html code directly in the docbook xml structure. The best I could find was dbhtml-include, but it requires a separate html file to parse. Is it possible to write a few html lines directly ? What I am actually trying to do is to write math with mathjax inside do...

input type = checkbox problem.

Hello, Why is this line not working? <input type="checkbox" checked="no"/> <input type="checkbox" checked="false"/> Even though i have specified no and false in checkbox value both are checked by default. Thanks in advance :) ...

How can i add click handler to x-label element of gwt-visualisation chart

Hi Guys, I am using gwt-visualisation chart But is there any way to add click handler to x-label Thanks ...

HTML onload - using variables as parameters

Hi, I want to use something like: <body onLoad="init('A sentence with "quoted text" as parameter')"> Unfortunately, this does work, as the quotes in the parameter are not treated properly. Escaping the quotes also does not work <body onLoad="init('A sentence with \"quoted text\" as parameter')"> (Above also does not work). How ...

Reindenting HTML with Embeded Ruby Code (erb)

I'm wondering if there's an existent solution to the following problem: I have the following code: <div> <div> <div><%= {:something => 'abc', :else => 'abc', :nice => 'ok'} %> </div> </div> </div> As you can see it's unested and hard to read. I was wondering if there's an existent tool preferably in ruby which c...

need help with z-index property

I have a sprite image that is the background of a div and the div contains "li" elements with anchor links in them..I want that when user hovers over links ..diff parts of sprites' image are displayed in div's background.. now sprite was working great until I added a master page to my aspx page..the image hid behind the "Links"..but whe...