html

How to prevent HTML form reset

I have a form where everything is supposed to be disabled on load except the first field. The first field is an autocomplete input. When they select something from it, it goes disabled, and then sets the second field to be enabled. The second field is a dropdown. The problem is, after a user uses the form and clicks the back button, i...

Looking for a question that combines the understanding of few web technologies

I am teaching a web development course at a CS department, I wrote most of the final test by now, each question focus on a specific feature or a specific technology, I wonder if you can think of/recommend a question that combine the knowledge of few technologies.. The course mostly covers: HTML, CSS, JS, HTTP, Servlets, JSP and JDBC. ...

How do I get placeholder text in firefox and other browsers that don't support the html5 tag option?

This works in Chrome and any other browser that supports placeholder text in HTML5 <input id="name" name="name" type="text" placeholder="Please enter your name..." required /> <br /> But, it doesn't work in 3.5 and earlier of Firefox, and obviously IE8, and possibly other browsers. How do I achieve the same thing (preferably in HTML...

How do I replace a form button with an image, and have the image change on hover? Also sprites vs separate images?

I remember reading somewhere (a long time ago) that sprites - or at least I think that's what they were called - were better than using two images when you were trying to change an image on hover. I believe the reasoning was something to do with not having a delay. For example sometimes I'll go to a website and go to click on a link and ...

android html data parsing

Hi guys suddenly I have no experience with java and html parsing and I really need it...(possibly from http://www.uefa.com/teamsandplayers/teams/club=52280/domestic/index.html) I want a simple way to convert an html website to xml document(fetch,convert,parse) or an easy alternative way to do it... ps:if you know any alternative FREE r...

Bind control to JavaScript file

I had JavaScript slide show which had Image and text .But I want to mange js code to retrieve it's data(image, text) from database by code .please anyone help more it more difficult. aspx page: <form id="form1" runat="server"> <div class="hom_scrooler_con tm10 "><script type="text/javascript" src="js/scroller.js"></script> <div clas...

Adjusting <ul>'s width to accommodate menu items using jQuery

This is an expansion of a question I posted a while ago: http://stackoverflow.com/questions/3275997/fitting-a-uls-width-to-accommodate-the-menu-items Is there a snippet of jQuery code that can adjust the width of every <ul> inside a certain <ul> to make sure the <li> items don't overflow? The menu looks something like this: <ul id="men...

How to embed sfDoctrineGuardPlugin signin form into an existing template (homepage) and have it take on the template it occurs in

I'm working with the Symfony Framework, I have installed the sfDoctrineGuardPlugin. I already have my own homepage design and I'm trying to embed my sfGuardAuth signin/login fields into my homepage. I want them to use my homepage design too. I paste this into one of my table rows: <?php echo $form['username']->render() ?> which is bas...

How Can i Center a Simple HTML Page?

I have HTML page that appears in browser as: I want to make the page to appear centered and compact as: I made the borders visible in the first picture to reveal the structure. Here is the HTML source code: <html> <head> <title></title> </head> <body> <div id="body"> <div id="masthead"> <table border="1" cellpadding="0" cellspa...

Form inside a form, is that alright?

Whether we can have a form inside another form?. Is there any problem with that. ...

How do I make my CSS/HTML category menu minimize gracefully when a user minimizes the browser window?

My Problem When I minimize the browser window the category menu does not minimize the way I would like it to. I would like the li elements to drop one by one below the other other li elements as the window is minimized. The problem is that the whole ul element is dropped below the p element. A live example of the menu is located here. ...

HTML code for INR

For pound () there is HTML code &pound;. For INR can you please tell me the HTML code? ...

How can the colors of an image be changed using CSS3?

This works: a { color: hsla(0,100%,50%,0.2) } And this does not: img { color: hsla(0,100%,50%,0.2) } Is there something like img { opacity: 1 } that allows to define hsl values to an image? ...

how to download video flv video directly from youtube

Hi, I'm trying to download flv video directly from youtube using http://www.youtube.com/get_video?video_id=9Mu23wVb--4=TOKEN Note:In place of TOKEN i placed the value of obtained from below url.... youtube.com/get_video_info?&video_id=9Mu23wVb--4 After trying this option, i'm getting page not found. is there any way to get the flv ...

How to check a checkbox using javascript?

I have set of images and checkboxes like below <form name="food_type_form method="post" action="proc.php"> <img src="images/type_indian.jpg" alt="Select Indian food" /> <input type="checkbox" name="food_type[]" value="indian" />Indian <img src="images/type_chinese.jpg" alt="Select Chinese food" /> <input type="checkbox" name="food_type...

Changing link class based on dates

I have got a list of menus up on our website with the current week's menu highlighted with a different colour background which is decided by a class of 'current' on that item. At the moment I change this class manually each week but was wondering if there is something I can set that changes the class automatically based on dates that I g...

How to make a SVG box created by Raphaeljs transparent to mouse events

I'd like to create a SVG overlay over my webpage using "z-index:1000" and make this overlay transparent to mouse events. However right now if I create a SVG object at absolute position using i.e. this call: r = Raphael(0,0,150,150); r.path("M0 0L150 150").attr('cursor','crosshair'); $(r.canvas).css({'z-index':1000, 'position':'absolute...

can you have multiple columns have a rowspan in the same table

i want a table with three column and i want the first and third column to both have rowspan="3" but the second column i want data on "each" row. is this possible? ...

IE7 phantom border-top

Hi everyone, On this site that i'm working on, http://boldstyle.allthingswebdesign.com there is a gray border-top on the footer ul elements. If you look in FF or chrome, you can see that it creates a subtle effect. If you view it in IE7, the border is way out of place. I cannot figure out why. Please help. ...

insert external html

Hello everyone! I am just learning to create websites and I have been programmming a lot of OOB languages before so I am kind of used to write small objects and just paste them where I want them. I would like to know if there is a way to create for instace a login form och what ever piece of html that you use regulare on sites and save...