html

set html text color and size using javascript

Hello everyone, Suppose I have the following line of code in html, how to set the text color and size inside "MonitorInformation" DIV element in a programming way using Javascript in an easy way? Sorry for my stupid, I figured a long time but cannot figure out. :-( <div id="MonitorInformation">Connecting...wait</div> thanks in advanc...

JSP DataBase Result Display Problem

I have a JSP MySQL query <sql:query var="libraries" dataSource="jdbc/ArabiTagOnline"><br> SELECT l.LibraryId, v1.LAvalue AS "dbESTid", v2.LAValue AS "LibName", v3.LAValue AS "Desc" FROM ((Library l LEFT JOIN LibAttrValue v1 ON l.LibraryId = v1.LibraryId AND v1.AttributeId = 1) LEFT JOIN LibAttrValue v2 ON l.LibraryId = ...

div overlay background

In my application am using transparent div like a show modal dialog.Its working fine in firefox but not working well in internet explorer. What is the solution to work similar in both Thanks ...

print.css Issues

I was just recently asked to add a print stylesheet to a site I've coded out and am baffled as to why Firefox is mangling the output. A print preview of the following page reveals what I'm referring to: http://webreviewportal.com/ethicalmovers/newsite/aaem-customer-testimonials.php When you try to print that page in Firefox, you get t...

hide column of table with codebehind

I have a (html)table (sample layout below) that I'd like to hide the last two columns under certain conditions, using the C# codebehind. I'd prefer not to do this by shrinking the width of the columns to 0, though I'm not ruling it out. There aren't any CSS classes really supplied to most of the rows and none of the columns. I've tried u...

Weird IE7 div resize float bug? Form buttons remain fixed!

I have a form: <form> <div id=content> form content (fields, etc) </div> <div id=buttons> <table> <tr> <td>submit button</td> <td>cancel button</td> </tr> </table> </div> </form> When I display error messages, the content div gets a bit bigger in height to fit in the error messages. The weird thing is, in IE...

How do I use raw javascript in jquery and add unique functions to jquery selectors?

I am looking to do what the title says. As I am new to client side programming with java script all to together I do not know the "right" and "proper" way of achieveing what I need done. I wish to use a simple javascript function var x; var items = {}; for (x = 0, x < 7; x++) { items[x] = new num; } $("li").addclass("items" + n...

HTML select tag allowing you to access Rails variable

<p class="acp3"> <label>Status</label> <select> <% if <option>Active</option> %> <%= account["status"] == "Active" %> <% elsif <option>Disabled</option> %> <%= account["status"] == "Disabled" %> <% end %> </select> </p> I am creating a selector with the html and I want to be able to have it access that variable...

How can I float 1st div to left and the 2nd to the right?

I have a DIV with two update panels inside of them. The update panels render as divs but asp.net does not let me assign a class to a div. I can do this using jQuery by assigning css to the first child, then assigning different css to the 2nd or las child. Can I do this purely with css? Something similiar to this. .outerdiv div { widt...

How to display ul list in two columns in one row?

I have the list as below: <div class="ListStyle"> <ul> <li>List1 <ul> <li>ChildList1</li> <li>ChildList2</li> </ul> </li> <li>List2 <ul> <li>ChildList1</li> </ul> </li> </ul> </div i wanna display in this format: (Parent li in o...

HTML Email using CSS

I'm trying to build an HTML email using DIVs instead of tables, and I'm quite new to CSS. What I'm trying to achieve would look something like: ******************* XXXXXXXXXXXX XXXXXXXXXXX * image here * XXXXXXXXXXXX XXXXXXXXXXX ******************* XXXXXXXXXXXX XXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX...

How to make a web site on CD searchable

I have a client who has a static site with several HTML indexes of MS Word and .xls files they wish to distribute on CD Rom (i.e., no web server). They would like to make this content searchable (both the HTML and the linked DOC and XLS files). I'm tempted to just make a PDF out of this whole thing, but it seems like a blunt tool. Can a...

HTML: Empty-linked anchor

I have an anchor that doesn't go anywhere but has an onclick (e.g. <a onclick="..."></a>). My question pertains to the href attribute. What should I put for the value? If I simply omit href, the anchor doesn't have the appropriate decoration--the mouse pointer icon doesn't change when the mouse is put over it. If I use href="#", then t...

CSS to PDF, using THEAD for repeating header on new page

Hey everyone, I have CSS and HTML that I will be converting into PDF. I want to specify a header on each page that, in the PDF, will repeat on each new page. I know that I can use THEAD to specify the header, however, is there a free html-to-pdf converter that will respect the THEAD tag? If not, are there any alternatives? Thanks... ...

How can I open a non-resizable popup at a fixed position?

See title. Using either javascript or pure HTML. ...

How to control ASP.NET controls location in the page

Hi all, What is the best way to control the web controls position in ASP.NET page? Back in the early days in pure HTML I use to do it with Table. Is this still the best way? Thank you in advance, Roy. ...

Good resources for cross browser ASP.NET website development

Does anyone know of any good resources for learning about cross-browser development in ASP.NET? Specifically, what causes a page to look different in FF/Chrome/IE, what are the gotchas when developing, how can this issue be addressed in a new project etc. ...

I'd like to send a "Fire and Forget" query to a PHP page.

I'm implementing various PHP & ASP.NET web apps for a client. I'd like to install a very low overhead user tracking system. (It has to be on the intranet, this is an internal system only). I'd like to do something like the following: line 1 normal code line 2 normal code line 3 Send Request/Query/Info to http://internal-IP/userTra...

Disable select form field but still send the value.

I have a select form field that I want to mark as "readonly", as in the user cannot modify the value, but the value is still submitted with the form. Using the disabled attribute prevents the user from changing the value, but does not submit the value with the form. The readonly attribute is only available for input and textarea fields...

To Tableless or not to tableless: Html expanding box with custom corners

Hi, i'm running into problems using DIV's to style a contentbox for my website. It basically looks like this: container +--------------------------+ |+--+------------------+--+| ||c1| r1 |c2|| |+--+------------------+--+| || | | || || | | || ||r4| content |r2|| || ...