html

HTML Select Option not recognized when tab and arrows used to select option

This is an odd problem and likely a rookie mistake. For some odd reason, if I use the arrow keys to select a select option from below, it fails to submit unless I deselect by clicking somewhere else on the page. If I keep focus on the select option, the submission will fail to recognize the value. Am I committing some stupid mistake? <s...

Storing and Displaying TextArea user inputs

Hi, How can i handle user inputs with textarea, i need to strip user entered html tags, store text somewhere and display it back in a webpage. I also need to take care about line breaks Any best practices without using <pre> tag ? ...

Set page scroll position on page load of MVC app.

Hi, I have a ASP.NET MVC app. How do I set the scroll position of a page on page load at a defined point? Can I do it with an anchor, if so how?? Malcolm ...

CSS: How to put a checkmark icon/acsii character next to all visited links?

For any visited (a:visited) web page, I would like to display those links on my website with a small checkmark to the left of the link. So for example: "this is an unvisited link" √ "this is a visited link" Question: how do I accomplish the checkmark using CSS? ...

disabling text box in html?

hey all, i've got some js code that populates an input field with a name, when a number is selected. once the name is populated, it can't be edited. the problem is, when i disable the field and submit the form, it doesn't submit the disabled value. and i can't seem to make the field work by making it a readonly field. what other option...

accessing elements of child html page from parent html page?

i have a html page main.html and it has a frame frame1 in which i am showing another html page child.html so basically child.html is the child of main.html and i want to change the value of text box which is in child.html after clicking on link which is in main.html. how can i do this? ...

IE6 - CSS - elements not floating corectly

Hey, I've been trying to code a menu, without making the icons fixed width (with just padding-left/right) and it works fine in every browser, except IE6. I checked other websites and they do it the same way as I do, but it works well for them. (It looks like IE6 is ignoring the float). Do you know what should I do to make it work? And ...

How do i handle ajax and closing pages.

If the user happens to have a delay in connecting to my site, the ajax hasnt timed out and the user decides to close the window. The ajax query will be terminated? Is there a way i can say still processing are you close you want to leave this page? (bonus if it will close once ajax was successful). How do i do this? I am not sure if thi...

CSS - Multiple 100% height divs?

Hi, as I've understood, for a div to actually be 100% in height, the parent div needs to be set right? So, imagine a div structure that looks like this: <title>A CSS Sticky Footer</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" media="screen" href="main....

IE8 Randomly does not show background images of my divs

I have this annoying problem driving me nuts, IE 8 randomly won't show background images of my divs. One minute it shows, then the next time it won't. Then I have to refresh the page 2-3 times for it to show. All my pages work fine on firefox, chrome. Has anyone faced a similar problem? Any solutions? ...

How to submit info from 2 submit button but from one button through jquery?

I have 2 SUBMIT button in a form one is display:hidden and one is display:block if user click on SUBMIT button (display:block) then another SUBMIT button {display:hidden} should also submitted. Is it possible with jquery? ...

HTML {% %} tags?

I was watching a video coding html, and I saw in the video they used a bit of code that looked like this: <body> {% block %} {% endblock %} </body> Is this some form of commenting in html? I think the coder they were using was Espresso for Mac. I've just never seen it. The video is here: http://vimeo.com/7405114, at about 5 m...

concatenate the html tag with asp.net

i need to concatenate the html tag like <br/> and &nbsp; to the textbox.text in asp.net textbox i have used this txtMessage.Text + <br/> + strgetlist; but it is displaying TaskName<br/>Project1,project2.. how to give break and space between thest two. Any idea???? ...

Is there a lib to make html easier in C#/.NET/ASP.NET

I remember once seeing a project a guy did where he write something like this in some language with json like strings which created pretty good html. Is there something like it i can use for C# or .NET radio-box{ AName, [First|Second|Value:9|ItsLikeAnEnum]}, TextBox[user, password], Checkbox[RememberMe:true, blah]} //blah is default wh...

output code AS IS

add in note i have to paste 3 time the following code in the html body of a static webpage, instead of having to paste it and have a lot of code, i prefer to only have one line (3 times) that call the writing of the code, like this : <?php getgooglepub(); ?> I like to make a php function that will ouput to the hmtl page the google ana...

Selecting all the divs with png background-image

How can i select in jQuery all the divs that have background-image: Url('somepath/somename.png'); in their style? Thanks. ...

How to Load HTML Snippet returned from Handler call into a string?

Hi all I have an ASP.NET MVC application and I'm trying to load the following html snippet from a Handler in another ASP.NET project, from one of my controllers to display in a View: <br /> <div id="ctl00_divCommentary" class="commentary"> <div id="ctl00_divCommentaryHeader"> <span id="ctl00_lblCommentaryHeaderBold" class="...

CSS div is not visible

With this css .addProblemClass{ width:300px; height:300px; border:solid 1px #000000; background-color:#FFFFFF; opacity:0.9;/*For chrome and mozilla*/ filter:alpha(opacity=90);/*For IE*/ } .boxHeader{ border: solid 1px #000000; height: 15%; } .addProblemHeaderTextDiv{ border:solid 1px #FF0000; ma...

Auto-Scroll in FireFox

My application is a Live chat. I have a Div to wrap the messages, each message is a div, so, after a few messages my DOM looks like this : <div id = "divChatHistory"> <div id = "msg1> Message number one </div> <div id = "msg2> Message number two </div> <div id = "msg3> Message number three </div> // ... </div> Now a need t...

Google Mini cURL request returns HTML, should be RAW XML

Hey, I am quering a local google mini box on my network but im getting back HTML and not raw XML as requested. I have the output param set to xml in the GET request. my request is the following: curl http://192.168.20.196/search?q=soccer&amp;output=xml Any help would be much appreciated, Thanks, Matt ...