html

Html attributes for EditorFor() in ASP.NET MVC

Why can't I pass in html attributes to EditorFor()? eg; <%= Html.EditorFor(model => model.Control.PeriodType, new { disabled = "disabled", readonly = "readonly" }) %> I don't want to use metadata Update: The solution was to call this from the view : <%=Html.EditorFor( model => model.Control.PeriodEndDate, new {Modifiable=mode...

Is there any way to write css such that particular style applies to a particular browser?

I have external CSS in my project and it contains all the styles for the site, the site works well with FF but gets bad and mad in IE (as-usual). So, Is there any way to write css such that particular style applies to a particular browser? If I have a class say: .col2{ width:237px; } How can I edit the above class to apply with dif...

What's wrong with this html?

My html that starts with: <html> <head> <script type="text/javascript" language="JavaScript1.3" src="js/euDock.2.0.js"></script> <script type="text/javascript" language="JavaScript1.3" src="js/euDock.Image.js"></script> </head> Netbeans says on the <head> line: The tag content is unresolved, expecting one of <ISINDEX>, ...

What is the difference between escapeXml and escapeHtml?

I would like to escape characters in JSP pages. Which is more suitable, escapeXml or escapeHtml? ...

javascript scrolling menu with scroll bar.

Hey Guys, Looking for an easy to use vertical sidebar with the following conditions. The sidebar follows you as you move down the page. The sidebar contains a scrollbar for extra long lists. Any help would be great! Cheers, Ash ...

Content fade-in as user scrolls browser window

I'm discovering more websites that perform this visual trick where as you scroll down the browser window, the content fades into view. I'm wondering how this trick is done and (more importantly) why? I'm guessing that for exceptionally long pages, the content isn't fetched until you actually reveal that div, image, whatever therefore s...

Image Height Width Problem

How to change image resolution using jQuery.I have applied a image on body background using css/php. Now I want to apply screen height and width to the image, so image displays in full windows. Actuly i haven't use repeat style. Used Code Is: <style type="text/css"> <?php global $post; ...

search string for specific word and replace it

I think it is a regex I need. I have a text-input where users may search my website. They may use the word "ELLER" between search phrases, which is in english equal to "OR". My search engine however, requires it in english, so I need to replace all ELLER in the query string with OR instead. How can I do this? Btw, it is php... Thank...

jQuery Dropdown Menu Question

Having some issues with my dropdown menu. Code here: http://jsfiddle.net/xY2p6/1/ Something simple I'm just not getting, but as you can see it's not functioning correctly. I'm not sure how to link the hiding of the dropdown to when the user hovers off of the menu link, rather than the actual dropdown. Any ideas? ...

update: problem showing image while waiting to page to load

Hi! I'm trying to show an image to let the user known that something is happening while some pages are being loaded. I tried several examples that I found in google. My goal is every time that I click in some link, the image should appear to let me known that the page is loading. But I'm not able to do that. So far what I accomplish ...

How to read inputstream from HTML file type in C# ASP.NET without using ASP.NET server side control

I have the following form <form id="upload" method="post" EncType="Multipart/Form-Data" action="reciver.aspx"> <input type="file" id="upload" name="upload" /><br/> <input type="submit" id="save" class="button" value="Save" /> </form> When I look at the file collection it is empty. HttpFileCollection Files ...

Create HTML form from XML

I have a number of different xml files that I need to edit from an html form. I want the form to be generated dynamically (the files could any valid xml structure) and I want to save the modified xml content back to the database in the same structure. I've seen a few examples of using XSLT when you know the structure of the xml, but in ...

Vertical-align with baseline and textareas

I'm trying to get a label lined up with the baseline of the first line of text in a text area. The naive attempt: <div style="vertical-align: baseline; display: inline-block"> <label for="comments">Comments:</label> </div> <div style="vertical-align: baseline; display: inline-block"> <textarea name="comments" id="comments"></text...

Buttons in a table in a div need to stay on edge of screen when window is resized

I have an interface with a header graphic and beneath that I have a set of 5 buttons. The three on the left are set fine, but the two on the right (back and next buttons) need to dynamically reposition themselves depending on the window being resized or maximized. The buttons reside in a table that is in a div. How can I make the tw...

remove styling of telephone numbers

Is there a way to remove the default blue hyperlink colour from a telephone number when viewed on an iPhone? Like a specific Mobile Safari tag or CSS to add? Have this rendering issue on some of my websites but can't see why this is occurring. ...

CSS Rounded Corners Not Working - Why Not?

<div id="main-solutions"> <div id="main-solutions-top-left"></div> <div id="main-solutions-top-right"></div> <div id="main-solutions-body"> blah blah blah </div> </div> css #main-solutions { } #main-solutions-top-left { position: absolute; top: 0px; left: 0px; background: url('../images/Top-Left-Gra...

Cant access website/images under /var/www/

About a year ago I placed some media and some web pages under my /var/www/ on my server(I am using ubuntu-server). I was able to access these web pages by going to http://myipaddressgoedhere/pagename recently, I have a need to store media in a folder in /var/www/images when I went to go see if I could still access these web pages s...

Looking for jQuery Carousel with resizing elements. write from scratch or plugin?

I have a task ahead of me and I would like to plan the best way of attacking it before diving in. I need to make a carousel with resizing elements that animate similar to this page/plugin http://www.eogallery.com/ This gallery seems like it needs a lot of work and does not operate very smooth. I have used jcarousel many times and have ...

javascript events and html.

Hi folks, Could you suggest the best way to keep focus on a particular input field on page? What I am trying to say is, no matter where user clicks on the screen, the focus should return back to this one particular input. I am thinking of a timer function that would check for focus every 500ms and if its not there, then bring it back. ...

Simplest way to implement slightly-rounded corners like on this example site?

I have to implement a tab control identical in terms of style to what can be seen here: http://funds.ft.com This is the example I've come up with so far: http://jsfiddle.net/MZUQK/ The biggest issue I'm facing is that the first one has 'rounded' corners that was implemented automatically by the ASP.NET AJAX used to develop the site. ...