html

Get files from input.files instead of value on submit.

Hi, I have following problem. I have input field in form, type of file: <FORM action="http://server.com/cgi/handle" enctype="multipart/form-data" method="post"> <P> What is your name? <INPUT type="text" name="submit-name"><BR> What files are you sending? <INPUT type="file" name="files"><BR> <INPUT type="submi...

Picture in Document

<script type="text/javascript"> picture1 = new Image; picture1.src = "picture/loading.jpg"; picture2 = new Image; picture2.src = "picture/loader.jpg"; </script> </head> <body> <form id="form1" runat="server"> <div> <a href="page5.html" onmouseover="document.picture2.src=picture2.src" ...

Unable to validate a form using Javascript; PHP redirect issues?

Hello, I've coded a simple form for a friend's hobby; basically, we are trying to guess the starting lineup for a couple of teams in the 2010 FIFAWorld Cup (just for the kicks). Anyway, I need to validate the following form. All the Javascript functions appear to function well because if i just call them outside of the tag, everything...

What's HTML character code 8203?

What does the character code (HTML) &#8203;? I found it in one of my jQuery scripts and wondered what it was.. Thanks. Edit: Here is the script it was in (it was added to the end, found it in Firebug) {literal} <script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script> <script type="text/javascript"> var $...

A stubborn fixed DIV inside a 100% DIV

This must be the most frequently occurring issue in my life! I have to position a fixed DIV (800px) inside a 100% DIV and as always it works fine in everything but IE. I have tried the old "text-align" trick but nothing this time, I just can't get it to work. If you want to inspect the actual page its www.chunkydesign.com and any answ...

MySql syntax error; Deleting from two tables in one query possible?

Is it not possible to perform two deletes in one query by separating them with a semicolon? Here is my query: $query="DELETE FROM $sql_table WHERE EXISTS ( SELECT 1 FROM classified WHERE classified.poster_password = '$pass' AND classified.ad_id = '$id' AND classified.classified_id = $sql_table.classified_id ...

Webkit and IE breaking jQuery slideUp/Down function. FIXED!

Rephrasing a previous question, been worknig on it a while and have fixed a few issues, but remaining is that some menus don't expand or close when clicked in IE and Webkit browsers. Everything works perfectly fine in FF. And the Chrome Developer tools and IE's tools don't show any errors in the scripts. The FILTER MENY is meant to clos...

How do I get outter HTML from a dynamically created checkbox w/ jQuery?

I am trying to get the HTML of an element to use in a template. I tried using jQuery to create the element and then grab the HTML, but that doesn't seem to do what I thought it would do. I am able to get most of the HTML string from the new element, but the "checked" attribute doesn't seem to get saved. I can manually build up the HTM...

HTML to EXCEL -> simple question

O have a ,,export to excel" function, I have some tables and it works fine, but I have one single problem. For moving to the next line I use <br />, but what if I want to switch to the next column? What tag can I use to switch to the next column? Thanks ...

How to center li items in quicksand jQuery plugin

My problem is that in some screen resolutions the list items are not in the center of the div while the ul is centered. Does anyone know a solution? Thanks! <ul class="news-grid"> <li></li> <li></li> </ul> $(function() { $('#buttons a').click(function(e) { $.get( $(this).attr('href'), function(data) { ...

How do you create a round navigation system?

Hi. I need to create a round navigation system, similar to the round nav button on an iPod Touch (see image here: http://www.flickr.com/photos/37476174@N06/4668497237/). It needs to be JavaScript-based (not Flash). It would have different menu items around the dial. It also needs to be small (around 300px in diameter). Does such a JavaS...

div inside table

Can somebody tell me whether div inside a table is allowed or not according to w3c ...

How to change an HTML elements style, and then revert it onLoad() with JS?

Hi, I have a problem with a Lightbox type modal window not working properly with IE. I have identified the problem as being due to the style attribute of the hidden image as 'display: none'. This works fine in all other browsers. But for IE, I need to change the value onload to 'display: block' and then straight back to 'display: none...

How to truncate HTML to certain number of characters?

I have some content (some from an external source, some specially written) that is displayed in a kind of blog format. I want to cut off the text after a certain number of characters, so currently I'm doing this: <?=substr( strip_tags($a['content']), 0, 400 )?> The problem is, this loses all the formatting and I just get one massive b...

starting a development in xhtml-mp

hello i want to develop some application in mobile web i dont know how to start with, which emulator to be used for testing plz suggest me some books and nice emulator for testing . ...

How to access proprietary .js file in Spring MVC?

Hi guys, I am newby in Spring, but have a task, and I am learning on the fly. I used Roo to generates for me part of the code, but now I have to make some dynamic list binding, which is done with form, popping-up in new window, and when the submit button is pushed I have to insert the new values in the parent window. For the purpose I...

Wrapping a table or DIVs columns to multiple rows

Hey, I'm working with a CMS that parses variables into content using placeholders, e.g. <td> [[TITLE]] <br /> [[DESCRIPTION]] </td> The problem is that this will make one long table row. Because of the way the code is written, I can't get it to insert a <tr> after every few columns. Is there any way to wrap the rows (even using DIVs ...

How to fix flicker when using Webkit transforms & transitions

I have a very simple demo working that uses Webkit transforms and transitions for smooth horizontal scrolling between 'panels' (divs). The reason I want to go this route as opposed to a Javascript driven system is that it's for the iPad and Javascript performance is quite poor, but the css transforms and transitions are smooth as silk. ...

how do I get this effect?

http://www.apple.com/why-mac/ has a cool little thing where you hover your cursor over the image and it scrolls upward to show hidden text. I'm wanting to create a mockup with that same effect, where I have the mockup as one flat background image and then place the scrolling images on top of it. Any ideas as to how I can do this? ...

Best practice to deal with form processing

Hello guys, I was wondering what is the best practice to deal with form processing? In my case I do something like that: if the user hasn't submited the form display the form else if there are form errors display errors display form again else display a success message (and) display the form again My problem is that I'm rep...