html

can I specify the style of underlined text in html?

can I specify how text is underlined? For example can I make it underlined by a double line? ...

N-Level Tree PHP MYSQL HELP

I have been looking at a N-level tree class. Could anyone possibly advise on the best way I could display the results ie, the looping of the result set, should I use DIVs or ULs? An example result set will look like so if you find the article too long to read Array ( [531] => stdClass Object ( [id] => 531 [rid] => 0 [created] => 12553...

Help with js file exists query

First let me acknowledge that I'm in way over my head. Our church website was dropped on me and I'm doing my best to get up to speed after about a 10 year hiatus. Currently undergoing pretty serious chemotherapy, so at least I have lots of time. I am trying to figure out a way to script an html web page to check for the existence of ...

Hide all table rows that lack a particular class?

Hey all, I am using a jQuery's toggleClass() method to handle table row highlighting and what I would like to do is create a function that will hide all table rows that do not have the "highlight" class applied. The table itself has an ID (tblTest) and each row has an ID as well. However in this case I don't really care about ID's so ...

opacity in ie using absolutely positioned divs not working

I've been banging my head against the wall for a few hours how trying to sort this out. I'm trying to position one div on top of another for the purpose of fading one in on top of the other. The divs will have an image and some other html in them. I cannot get opacity to work in ie8. I've simplified my html as much as possible: <!DOCTYP...

jQuery: Move Table Row?

Say I had to links with up/down arrows for moving a table row up or down in order. What would be the most straightforward way to move that row up or down one position (using jQuery)? There doesn't seem to be any direct way to do this using jQuery's built in methods, and after selecting the row with jQuery, I haven't found a way to then ...

CSS header tag question

I'm trying to place normal size text on the same line as a header tag. Doing this put the normal size text on the next line because a header tag is a block element. <h1>Header</h1>normal size text Any help is much appreciated. ...

How do I parse HTML using regular expressions in C#?

How do I parse HTML using regular expressions in C#? For example, given HTML code <s2> t1 </s2> <img src='1.gif' /> <span> span1 <span/> I am trying to obtain 1. <s2> 2. t1 3. </s2> 4. <img src='1.gif' /> 5. <span> 6. span1 7. <span/> How do I do this using regular expressions in C#? In my case, the HTML input is not well-for...

Browser related: css print style sheets - stopping client download overhead with @media

Hi Hopefully I can explain this well and hopefully I'm thinking the right way :) My question is, If I have a print style sheet that has a couple of classes that "displays" a background image, is there a way to make the browser download the images at the point of printing or do you have to preload the images. I have mixed results doing...

What's the best doctype?

It used to be so that documents with doctypes got standards mode, documents without doctypes got quirks mode. But it seems that these days there are some almost-standard modes, different browsers follow different rules etc. What's the best doctype to use for HTML? Is there any reason not to use the simplest one <!DOCTYPE html>? Most doc...

how to display a element always at top and centered?

Hi all, I was just wondering why my following code doesn't work: EDIT: The following code works in firefox 3.5, i can't test on other browsers, does it work universally, or is there some problems with it? <html> <head> <style type="text/css"> #test{ position:fixed; left:50%; } </style> </head> <body> <div id="test">Center</di...

If I use HTML 5's DocType what will happen?

I recently been learning about DocTypes and was wondering what the differnces between <!DOCTYPE html> and some of the others were. I know <!DOCTYPE html> is the HTML 5 doctype and it is experimental but was wondering what would happen if I used it instead of the other DocTypes. Thanks in advance!!!! ...

Getting dynamically generated HTML controls when using UpdatePanel

I'm generating HTML elements on the fly using javascript. These controls are located within an update panel on the browser. For some reason, I'm unable to access those elements in the Page.Form[] array. Is there a reason for this? My current solution creates an array of strings, turns that into a JSON string, stores that in a hidden v...

get iframe page title from javascript using jquery

How to get iframe src page title and then set main page title ...

xpath find specific link in page

I'm trying to get the email to a friend link from this page using xpath. http://www.guardian.co.uk/education/2009/oct/14/30000-miss-university-place The link itself is wrapped up in tags like this <li><a class="rollover sendlink" href="http://www.guardian.co.uk/email/354237257" title="Opens an email form" name="&lid={pageToolbo...

Need a Windows exe file to launch a html page in local drive without ActiveX warning

I need to distribute a flash-based application to end users. I have a very simple index page to launch another window: <HTML> <HEAD> <SCRIPT LANGUAGE="JavaScript"> function popUp(URL, w, h) { win=window.open(URL,"window","menubar=no,width=" + w + ",height=" + h + ",toolbar=no,resizable=no;titlebar=no"); self.close(); } </script> <BODY o...

htm vs html which one should be preferred ?

Possible Duplicate: .htm vs .html I have seen many static webpages having two variants of file extensions, which one is preferred and why there are two? ...

change content of div on hover, jQuery

Hi there... help :=) I have a menu <li> that when hovered slides a panel down which contains a submenu. (fixed) Now I need to fill that submenu with content that changes depending on which of the menu items is hovered.(fixed) last problem: I can only make the content-change happen if .click is used instead of .hover ... - is there an ...

How to use Html.Encode with Html.Texbox in Asp.net MVC?

How to use Html.Encode with html helper in ASP.NET MVC to prevent javascript injection? For instance with: <%= Html.TextBox("Name") %> ...

When using <pre> tag, text goes outside parent <asp:label> border

Hello, I've got a weird issue, i've got a datarepeater that reads some user entries froma database, and then shows them in an <asp:label> .. my 1st problem was that when the text is read all \ns got dropped .. so I use a <pre> tag to solve the problem.. however... a new problem occurred.. now the text actually goes beyond the label's...