html

ASP.NET How to read HTML Form Element?

I have an ASP.NET web form where I have an hidden field, like this: <form id="form1" runat="server" action="http://localhost/fa/Default.aspx"&gt; <div> <input id="requestData" type="hidden" name="requestData" value="" runat="server" /> <asp:Button ID="btnPOST" Text="POST" runat="server" OnClick="do_POST" /> </di...

simple html photo album

hi , i don't know anything about HTML coding and i want create a photo album like this website :link text but without fade in and out ... ...

full page width borders, centred content, best way?

A lot of the designs I am working on just now require that the page be centred, i use margin:0 auto; width: 955; Each main section has a div with a bottom border, which in this layout would be 955 in width in the centre of the screen. I want the actual borders to be the full width of the page however. What is the best way to do this, ...

center a div in css (text-align is not the answer)

Hi im trying to center the newsslider (in the div bottom-container) in this page: http://www.luukratief-design.nl/dump/parallax/index.html I already have text-align: center; Still it does not work. any suggestions? ...

How can I create custom HTML5 video controls?

I'm interested in building a custom video player in HTML5. I have no problem embedding html5 video media utilizing the dual format of Ogg and h.264. My main issue is in referencing the API for the video tag element. What properties and event listeners do I have access to via javascript? ...

HTML select element with fixed width and scrollbars

This is probably a basic CSS question, but I am not fluent in CSS and just seem to be going in circles. Here's what I have in English: I have a fixed width select element of 400px. The text for each of the options does not fit in that 400px width. I don't get a horizontal scroll bar, it just cuts off the text. How do I get the scroll b...

How to pass an IFRAME SESSION to the parent page?

Is it possible to pass a SESSION variable from am embedded IFRAME to the parent page? Meaning: <form> <iframe> upload image to fake AJAX. With PHP, set $_SESSION to be the location of the temporary uploaded photo </iframe> <input type="submit" /> // will this form submit have the $_SESSION variable set from the IFRAME? </form> ...

I have alot of "IF/ELSE" statements, should I write this differently?

This is what I have: (category=="Ljud & Bild")?byId("nav_sub_ljud_bild").style.display='block' : byId("nav_sub_ljud_bild").style.display='none'; (category=="Datorer")?byId("nav_sub_datorer").style.display='block' : byId("nav_sub_datorer").style.display='none'; (category=="Telefoner & Fax")?byId("nav_sub_telefoner").style.display='bloc...

Div with "display: none" style appears anyway

I have a div with the id "hubspot-contact-form". This div has a display style of none. But when the page loads, the div appears anyway. Can anyone help me figure out how to hide this form when the page loads? Here is the whole page. Thanks. <?php include ('includes/secure.php'); include ('includes/globals.php'); $thisPage =...

Jquery dynamic image resizing not taking correct image dimentions

For some reason while clicking around this gallery i'm creating, the dimensions that get assigned to the CSS don't always take when a new image gets loaded in the .product-image container. I think it's caused by assigning css attributes while an image is still loading, as it only seems to happen with larger images. Once ".more-views a" ...

side-by-side divs with form that should not break

I want to have several divs with content side-by-side like D1 D2 D3 D4 D5 D2 contains a form. Without the form it's working (using display:inline and such). There should be no line breaks in the resulting HTML as this is a page header. How can I accomplish that? UPDATE here's the actual code <div id="sep"> <img alt="separator" src...

Convert string to whitespace

I'm looking for av way to convert a string into whitespace; spaces, newlines and tabs, and the other way around. I found a Python script, but I have no idea how to do it using Javascript. I need it for a white-hacking contest. ...

How many div tags are too much?

How many div tags in one HTML document would one need before it affects performance? In this case, the tags are not nested and the content within each is minimal (background color/image). This question is a follow-up on a previous question; http://stackoverflow.com/questions/2281859/drawing-lines-with-clickable-points-using-javascript ...

Manipulate all elements except the one currently clicked

I wanted to know if there's a way to alter child elements while isolating the one that is currently clicked, so far I have a simple traversal with a click event handler inside as follows: $(function() { $(".hd").children("ul").children().each(function(){ $(this).click(function(){ alert('Handler for .click() call...

Web pages with examples of really stupid HTML

I stumbled upon this site http://www.fujinonbinos.com/, and almost laughed out loud at the ridiculous use of the <font> tag. Seriously, do a View Source! So, I coudn't resist a post here to enquire if anyone else had any other spectacular examples of web pages with daft/stupid/crazy HTML that we could all visit and mock mercilessly! CW...

Typeface.js not rendering headers at all in Internet Explorer

Hi, just wodering if anyone has experience with Typeface.js ( http://typeface.neocracy.org ) and fixing issues of the font not being rendered in Internet Explorer ( 6, 7 and 8 ). The font renders in Firefox and Safari fine, hover nothing is displayed in the Explorers. The font is not installed locally so I know that the script is workin...

align headings to same baseline, regardless following text?

Hi, is there a way to align first line of multiple headings of various size to the same baseline? Also regardless to the text that follows, which should be aligned as well. See picture at http://snapplr.com/snap/z1mw please EDIT: re-uploaded: It seems to me the only solution is to put each heading and each body text into separate ...

Little help on making a function which disables some form elements

I have several DIVs on a page. Inside these DIVs I have several form-elements such as inputs and selects. I also have two radio buttons. I want whenever radio nr2 is clicked, to disable ALL OTHER ELEMENTS inside the active DIV. Here is one of my DIVs and its content: <div id="test"> <select name="cars_mile_to" id="cars_mile_to" sty...

Odd error with HTML content and attributes disappearing

I have an odd error with an ASP.NET web page (ASP.NET 2.0, C#). For several users at one customer location, on one part of one page, HTML content and attributes are being stripped out. So, something that should look like this: <p class="adminmainlink"> <a href="ad_resourcewizard.aspx">Add or edit resources</a> <script type="text/ja...

Remember "Radio" value when submitting form to self on php page?

On a text input, this is how you would "remember" the value the user entered if the form gets submitted to itself, for say a picture upload tool which requires that, so the user wont have to type everything into the form again after uploading a picture. <input type="text" id="text" name="text" value="<?php echo @$_POST['text'];?>"> ...