html

Change value of display:none input?

Is it possible to change the value of an <input type="text"> that has been hidden with a style of display:none? I have some JS that seems to work when the input is <input type="hidden"> but not when it's hidden with display:none. And AFAIK, you can't change an input's type with JS either. Basically, I want to replace an <input> with a <...

jQuery/css/html: scrollable table with fixed header

hi all, i know this question has been asked several times but i couldn't find a satisfying, x-browser solution yet :( i thought the easiest way to acomplish a scrollable table with fixed header should be using 2 tables: (1 for header, 1 for the content) and kinda sync them. i've tried that but there's always slight glitches in the layo...

PHP array question.

Is it alright if I put the cat[] array value in the for, name and id attributes. code. <label for="cat[]">' . $cat['category'] . '</label> <input type="checkbox" name="cat[]" id="cat[]" value="' . $cat['id'] . '" /> ...

Google Search AJAX API, Retrieving Pictures and storing them into destinated path on handphones?

When users search for etc, Sir Stamford, there'll be pictures of him returned on the Google search list of pictures and i'll want to store the first image returned from the search onto the mobile device, namely Samsung Omnia. I currently have a search which returns the pictures of requested query and would like to store them somewhere s...

HTML Text Input not allowing text input

Hi, I having been running into some strange problems with a webpage that I have designed. For some reason, when you click inside the text input box, it doesn't place the pointer inside and doesn't allow you to type inside the text input box. Here is the URL of the page: http://worldrunningleague.com/iphone/login.php I've poured over the ...

JavaScript gets rid of trailing slash in <img /> tag

I have the following JS code: validateConfigName.html('<img src="/rta/images/check-24.png" />'); But when it executes in Firefox I see this as the generated code: <img src="/rta/images/check-24.png"> Why? ...

return vector from servlet

I have to do an HTML page with 2 text boxes, one for name and the other one for ammount, then theres a widget that let me choose which type of account im creating, savings or checking, then a send button, this information is going to be sent to the servlet. The servlet have to create an object depending on the type of account, then save ...

What are benefit to use doctype DTD XHTML+RDFa 1.0//EN over XHTML 1.0 Strict?

In some sites on web I noticed they are using this doctype. What is this doctype and what is the benefit of this Doctype XHTML+RDFa? <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML+RDFa 1.0//EN' 'http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd'&gt; <html xmlns='http://www.w3.org/1999/xhtml' xmlns:v="http://rdf.data-vocabulary.org/#" xml:lang='en...

Using the jQuery spritely plugin's .pan() to skip in between a defined space

OK, sorry for the awkward title! It's kind of a unique situation in my opinion. So basically, with the jQuery plugin Spritely, it's possible to call a .pan() method/action which allows you to (self-explanatory really) pan something across the screen. I currently have three video game scenes panning from left to right and visa versa in...

How do I get the tab button to focus on a checkbox element in my HTML form?

The title says it all I tried giving the checkbox a tabIndex but that didn't seem to affect anything. Thanks. ...

How do I get the title of a .pdf document to appear as the page title?

I'm posting a PDF at a website and have a link pointing to it, the same as any other file. If the browser is capable, it displays the PDF in a new tab. But the URL (and an unwieldy one at that) is showing up on the top of the tab where the document title usually goes. Do PDF files have a parameter for this I can adjust? Or is there a way...

XSLT 1.0 word count with HTML

I am looking to call a template that will trim down a field to 30 words. However, this field contains HTML and the HTML should not count as a word. ...

HTML <input type='file'> File Selection Event

let say with this code <form action='' method='POST' enctype='multipart/form-data'> <input type='file' name='userFile'><br> <input type='submit' name='upload_btn' value='upload'> </form> with this we get now when we click the 'Browse...' button, a file search dialog box is opened now the user will select the file by double-clic...

Special Characters line ' are not displayed in text box of html form

I want to show a predefined value in the text box which may contain special characters like ' i.e. single quote e.g. Amit's Birthday.... When I am displaying the string it shows only Amit and omitted the further string. I used htmlspecialchars() function as i am using php but its not happening result is still same. Some body please Help ...

I want to implement the floating window in the html

I want to implement the floating window in the html which it has scroll down when i am scrolling the page down ...

Why Some Sites not opening in Pop Window?

I have an html page. On that page I want to open popup window. I have a link on which I have to click & open new pop up. But, it is not a new browser window. It is AJAX based popup. I do have used Queness popup & YUI dialog popup. Now, in that window I want to show an iframe which will display page related to link I have clicked. But, ...

how can i connect a database and store something in that with the help of id and passwords in static page

how can i connect detabese and store something in that with the help of id and passwords in static page ...

How to set frameset col value to a variable

This piece of code produces a page with two vertical columns: <frameset id="set" cols="*,*"> <frame id="frame1" src="index.html"> <frame id="frame2" src="index2.html"> </frameset> However, I want to be able to set the cols value independantly like this: function setvalue(){ var framewidth=prompt("Enter the default ...

Are image maps <map> deprecated?

Are image maps deprecated in (x)HTML? ...

What is solution for center alignment in html?

I have an html page : <html> <head> <title> All Time Set Window </title> </head> <body> <div align="center" style="width:1000px; height:100%; margin-left:auto; margin-right:auto;"> <div style="width:100%; height:20%; background-color:#F8E0E0; float:top;"> <div align="center">This is Header</div> </div> <div style="wi...