html

Toggle tables upon selection

I have a select element with a few options. Depending on what is selected, I would like to toggle the display for inherited data. <select> <option>Option "A"</option> <option>Option "B"</option> </select> <table> <tr><th>TABLE A SELECT</th></tr> </table> <table> <tr><th>TABLE B SELECT</th></tr> </table> option ...

What would be the correct markup in this situation (page title and "rootline")?

So, in my current project, when you navigate to the "team" page, which has the path /home/about/company/team/ the header of the page looks like this: /home/about/company/ <--- this is what i call the "rootline" TEAM <-- this is the title of the current page ... content goes here ... My current markup looks like ...

use CSS sprites for list (<li>) background image

Is it possible to use CSS sprites for the list background image? Normally, I render my sprites with CSS like this: .sprite { background: url(sprite.png) no-repeat top left;} .sprite-checkmark { background-position: 0 -24px; width: 24px; height: 23px; } .sprite-comment { background-position: 0 -48px; width: 14px; height: 14px; } <div c...

Populating div with checkboxes

I use this code to determine checkbox width and height: var chk = $('input[type="checkbox"]:first'); chkWidth = chk.innerWidth() + parseInt(chk.css('margin-left').replace('px', '')) + parseInt(chk.css('margin-right').replace('px', '')); /*IS there better way instead of px replace?? */ chkHeight = chk.innerHeight() + parseIn...

Is there any way to access parent dom object from the child element ?

Hi, I have a simple DOM code like the following <div> <div> </div> </div> I want to set the background color of the outer div using the inner div alone. Is it possible? The question might be a bit crazy. But I have a strong reason behind asking that. I am working on a framework where there are html code generated dynamically...

changing input text to textarea just like in facebook

i would like to replicate that you see a regular input text and when you click it changes into textarea. is this a hidden layer or is it actually changing the input to textarea? how to do it? ...

Show code demos online

Is any website where I could upload my JQuery/Javascript, CSS, and HTML projects to show demos? I am looking for any free file hosting service to show my demos, has a public download location for those files, and is more than just storing files on their server. I have asked this question because I would be providing links on my wor...

navigation menu issues with css (background is not appearing behind the whole div)

I am writing a css code for a webpage, i have a navigation menu on the top with the code: <div class="nav-menu"> <ul> <li><a href="#">Services</a></li> <li><a href="#">About us</a></li> <li><a href="#">Tell a friend</a></li> <li><a href="#">Mission</a></li> <li><a h...

Split HTML files

How would I split a HTML formatted file into several HTML files (complete with with HTML, HEAD and BODY tags) with PHP? I would have a placeholder tag (something like <div class='placeholder'></div> ) for all the places I want to cut. Thanks. ...

Printing an HTML page on preprinted paper

I need to design a page for a web application that makes sense for user input. Sadly, the simplest and most logical manner for the user to interact with the data is completely unlike the form it needs to be printed in. I'm aware of the @media @print @screen styles that allow me to style up the page differently for different media. Wha...

html auto tag completion

Is there any IDE that lets or complete the tag immediately ? eg. once i finish writing <html>, it will insert </html> automatically. this will reduce time and also help to reduce error. I am working in windows and would like to have some free editors/IDE. I am just starting to learn some html and web programming, so any tips is welco...

How to find what ActiveX control is referred on a web page?

I have developed a web application (ASP.NET Web Forms). One of my customer has very restrictive policies. When he accesses the web page, IE shows this message: Your security settings do not allow Web sites to use ActiveX controls installed on your computer. This page may not display correctly. As far as I know, we don't use ActiveX con...

How do you change a link based on an input field?

Im designing my school's website and I kind of want to do like a "What are you looking for" page with only an input box where people can enter in phone or something and it would be completed with autosuggest (got that part ok). Then when the user clicked go, the button would take them to the page defined by the search so it would go dire...

IE8 Form Not Submitting (Intermittent)

I have a complex classic ASP system that has worked well for years but has recently started having a strange and intermittent problem. On some forms, folks will report that they click "Submit" but that the form just resets itself (or, perhaps, the browser just reloads the form - my users are probably not able to tell the difference). M...

Resize table headers dynamically

I want to let the user resize the headers (width) of an HTML table in a similar way Excel does. I know there are JS frameworks and widgets that support it, but we use and old widget server library (Common Controls) and I would like to add this support in a simple way, to already existing tables. I was thinking in a Javascript object th...

"What Tag did I select?" in jquery

Let's say I do something stupid like this: <div class="my_class">fun wee!!</div> <span class="my_class"><b class="my_class">Title</b></span> <p class="my_class">Client</p> <Script> $('.my_class').click(function() { alert('You clicked a ??????? Tag!!'); }); </script> Where I have selected lots of different tags with the same selec...

Servlet, JSP, JavaBeans and HTML form

Hi, I'm working on a servlet that makes a connection to a database gets the information of one of the tables ans sends this information to a jsp file. This file will print on the brower the information table, adding radio buttons that allows us to choose one of the rows. The servlet looks like this: List<InfoBean> items = new ArrayList...

help embedding some html in a webpage

I don't know much css or html, so I have a question about taking html that looks like this: html code paste and putting into another page. The problem is when I just copy and paste this into a webpage is completely messes up the background (turns it black) and overwrites other settings. How can I take that exported html and css so that ...

Sum value of elements inside of a div using jquery

I'm doing a sorting of a set of users, I have 4 groupings like so (2 shown): <div id="team1" class="groupWrapper"> <div id="p1" class="groupItem"><div class="itemHeader"><div class="first">John</div><div class="skill">15</div></div></div> <div id="p2" class="groupItem"><div class="itemHeader"><div class="first">Luke</div><div class=...

Flash movie that reads html values and rotates them every 10 seconds

I was wondering if it is possible to create a flash movie that rotates values that are stored in HTML. For example if i have these 3 containers: <div style="display:none"> <img src="someimage1" /> <span class="text1">text1</span> <span class="text2">text2</span> </div> <div style="display:none"> <img src="someimage2" /> ...