html

input type="image" vs type="submit"

I programmed for a long time checking for StructKeyExists(form,"Update") until I change my input from type="submit" to type="image". IE doesn't send the name of the control back when type="image", but instead sends Update.X and Update.Y. <form method="post"> Old Way:<br /> <input type="submit" value="3" name="Update" /><br /> <input ty...

Why are two menu items with the same CSS acting differently?

[link removed] Menu items within 'projects' are clickable but not in 'about us'. Any suggestions would be appreciated :) ...

Using WCF to Render HTML?

Hi. I have a stylistic question, really. I am wondering which is the best, fastest, most "iterative" way to generate client HTML? The road I am currently traveling is to use WCF (or a DLL) to expose a method that can be called depending on the page being loaded: private AuthClient auth = null; PageLoad { auth = new AuthClient...

Best way to Fingerprint and Verify html structure.

Hello there, I just want to know what is your opinion about how to fingerprint/verify html/links structure. The problem I want to solve is: fingerprint for example 10 different sites, html pages. And after some time I want to have possibility to verify them, so is, if site has been changed, links changed, verification fails, othervise...

defining events for html control running at server in c# page

i have a custom control which consists of html select and html inputtext and i want to define the events for that custom control running at server in c# page ? i wan to write code for that custom control click event in c# page? can any one help me in that. ...

To support Chinese/Japanese characters what should be the character set declaration in HTML document?

I tried with the following string content=”text/html; charset=utf-8” Though I can experiment myself. I don't know Japanese characters so can't verify browsers displaying it correctly or not. Thanks for any help. ...

Color Picker Farbtastic sync on 2 classes

http://acko.net/dev/farbtastic I would like to have a few INPUT and users can change color for each. However, each input is synced with some other classes (like body background color, or menu background color). I want to be able to change color with Farbtastic Color Picker and it affects BOTH the INPUT and the CLASS / ID that synced wi...

Is it expected that jQuery $('span').html() turns XHTML br tag to html syntax?

If I have a span tag like this: <span>Hi<br />SecondLine</span> And I call this jQuery function: var html = $('span').html(); html is set to: Hi<br>SecondLine Now, I realize the name of the function is html() and not xhtml(). But is this expected behavior? Can I count on it, or do I alway need to check for a xhtml br tag an...

Using html inside resource files

I am developing a standard small ASP.Net MVC website which will be made multilingual using ASP.Net resource files. My question is about the resource files. See if you have a block of text which should be shown in paragraphes, is it appropriate to add <p> tags inside your resource file text? If not, what would be the best way to deal wi...

How can I stop inline C# from adding a space to a element on a View in MVC ASP.Net

Hi, I have a code chunck below that is being output with a space in the element when it's formated as shown and the condition is false. If I put it on one line it generates the required output. What I'm after is a more elegant solution. Any ideas? Code Formated: <ul class="drop-menu-top dropdown-menu"> <% if (propertyC...

Change cursor type when the mouse gets over some selected text using HTML/Javascript

I need to change cursor type when the mouse gets over a selected text. Here you can find an explanatory image : In this example the user has to drag some text to the textarea. Since the traditional pointer is not intuitive I would like to use the "move" pointer (cursor:pointer). I made this image with photoshop. Does anyone know how...

Special Characters not working in link titles.

Hello. Basically, i have a site put together with PHP, HTML and CSS. I had a problem with it not showing special characters (eg. å,ä,ö), so i changed the charset from UTF-8 to ISO-8859-1. That solved the problem for the text on the site, but everything inside a pair of tags still fails to show up correctly. Any thoughts? Edit: I change...

Loading and resizing images dynamically

HTML/Javascript - I want to load images dynamically, and the images I'm going to load can be of varying aspect ratios. I want the images to fit into a specific area of the containing div - an area 40% of the containing div's width and 80% of its height. Since they have varying aspect ratios, of course they will not always use up this en...

controlling list indexing

In html the list (ul and ol ) provides indexing like 1.main 1.1 sub1 1.2 sub2 1.2.1 .... i want indexing as 1. main 1.1 sub1 1.2 sub2 how to do this ...

How to set the row id [ TR ] and column id [ TD] in displaytag?

I am using Displaytag to display the DataGrid. Now, I have to change the color of rows based on some calculation. Like if the value of column3 + column4 > coulmn5 then the row color should be yellow value of column3 + column4 < coulmn5 then the row color should be red value of column3 + column4 = coulmn5 then the row color should be ...

Z-Index vs Physical Location and jQuery

In the following markup, "image 3" would the only visible div if all .image divs were positioned absolutely and with no z-index. I could "reshuffle" the deck, so to speak, by adjusting the z-index of all elements, or I could reshuffle it by manually placing the last .image div before the first, making the sequence "image 3, image 1, imag...

HTML form needs double click to focus on field

For some reason one of my forms (I have 2 forms in the same page) is not working properly because I need to double click on each form field in order to be able to enter data. Any ideas why this may be happening? ...

Right aligning image in max-width div

Hello, I have a wrapper div with a max width of 700px and the only content is an right-aligned image of less than 700px width. Since it doesn't fill it, the wrapper doesn't expand to 700px. How can I make the wrapper expand to the full width when there is space in the browser window? The only hack I have found so far is to also include ...

html - divs position to relative.

Hi guys, I have a question: There are 3 divs. 2 of them should have their background-images and their position is to the 2 sides of user-area. (one to the right, and one to the left). The 3rd div should be over them and full-width. How can I do this with css? ...

Creating a custom jQuery countdown table.

Hi guys, before you reply or downvote - I'm not asking for somone to code this for me, I just want a bit of advice and guidance. Basically, I started learning jquery last week and for my first project I want to make a countdown table. e.g. ===================== Time|Desc --------------------- 1.03|Item 1 --------------------- 0.50|Item...