html

Format <textarea>

function text_window() { var xmlDoc; if (window.XMLHttpRequest) { xmlDoc=new window.XMLHttpRequest(); xmlDoc.open("GET","cd_catalog.xml",false); xmlDoc.send(""); xmlDoc=xmlDoc.responseXML; } // IE 5 and IE 6 else if (ActiveXObject("Microsoft.XMLDOM")) { xmlDoc=new ActiveXObject("Microsoft.XMLDOM"); xmlDoc.async=false; ...

CMS vs. Straight HTML for a site?

I'm going to start work on a site for a client and I'm struggling with how to go about doing it. They want (in order of priority) A site that looks pretty and is functional in that it will present the information they want in a way that makes sense. A site that is easy to update and add to. The guy who will be doing the updates is a sm...

can the name of a input tag be changed with javascript ?

I want to know if its possible to change the name of the input tag with javascript or jquery, for example in this code : <input type="radio" name="some_name" value=""> I want to change the some_name value when user select this radio button. the reason what i want to do this is described here : http://stackoverflow.com/questions/13247...

How might I calculate the sum of radio button values using jQuery?

I am trying to create a form with many groups containing many radio buttons. When the user selects a button, I would like to calculate the sum of each selected radio button value and show this sum to the user. I have found a plugin for jQuery which will do the calculation, this plugin use the name attribute of the buttons to calculate. ...

Simple CSS MasterPage layout.

I'm helpless, tried my best understanding CSS but it's just not for me. I would like to make a really simple MasterPage: at the top a div of full width and height 40px (1) at the bottom also a div of full width and height 40px (2) in the middle: on the left: a div of width 200 px (3) on the right side of the left div: a d...

<input> multi-line capable via CSS

Is there a way to get an <input />-field in HTML to wrap lines if the text is longer than the field using CSS? I don't want to use <textarea /> as I want to avoid users entering hard line-breaks by pressing enter. ...

Unobtrusive JavaScript - Safe Attributes?

I'm working on separating JavaScript code from my HTML. I currently have code that looks like this: <div onclick="return do_something_with('100566');" class="clickable">Click Me!</div> I'd like to swap the onclick to an attribute containing just the parameter I'm passing to the method. I'm using jQuery for this with the following ty...

Force mail client to use text rather then HTML through mailto:

I'm using SubVersion and TRAC on a C# project I am working on, and I have my TRAC system setup with a email address that can be used to create tickets. In my program I've added a simple "FeedBack" button in my program which sends an email to this address. To open the email I'm just "starting" a mailto link as shown below. System.Reflect...

why doesn't this jQuery code work in IE?

The following code is used so when clicking 'enter' when focused in an input field within a form, it disables the standard submit button functionality. Rather the javascript builds a new form and sends a post request to another page. I am using this so that I can achieve a "form within a form" functionality. The input field has its ow...

Floating Bottom Bar jerky when moved

Hi all, I created this sample page with the bottom floating bar http://www.innovie.com/Untitled-3.html The problem is that when I move the scroll bar on the right, the floating bottom bar is moving jerkily although it eventually is at bottom. I tried to fix the jerky movement by either removing the background img for BODY or removing...

Javascript file inclusion in html pages- what happens underneath in the browser?

Hello, I think this may be a browser dependent question- Suppose I have 10 Javascript files and several HTML pages. Suppose HTML pageA needs only JS1.js and JS3.js, similarly HTML pageB needs JS4.js and JS1.js. I want to know what would be effect of including all the 10 javascript files in all HTML pages? Will it directly relate to the ...

Complicated CSS layout

Hi, could somebody help me with freaking complicated tile layout as it specified under the link. I have tried to use float:left for widgets but I getting the red block always below #2. I should be able to dynamically add widgets to black dashboard. I can use html5, css3 and jquery. There are not just 2 columns. If the dashboard has fre...

PNG not shown in IE6

When I open a specific png file in IE6, it just displays a red X, which looks like image not found error. It works fine in other browsers. Some other png images can render correct in IE6. I checked the can-render png with can-not-render png with fiddler, I found the can-not-render png is only 150 bytes. I wonder if the too small size cau...

How do I stop table data from breaking my layout?

I have a table of data that is being dumped from our database but because some of the information is extremely long it is breaking the layout of my page. If one of the fields contains a string that makes the table wider than its conatiner or even the screen then the table drops below my left-hand menu div. If you need more information,...

How to REDIRECT a web Page for every ten seconds

In simple there is any way to redirect a page for every ten seconds in PHP ...

HTML CSS LAYERS

i created a page on which i tried to attain the effect of bottom aligned tool bar like the one face book has. For that i made a div with highest z-index set the position to fixed and set the bottom 0 like #bar { z-index : 11; position : fixed; bottom : 0; height : 50; left : 0; right : 0; } it works fine but while sc...

Does GTK kill CSS and HTML?

I have heard that GTK covers all controls so that developers do not care about CSS and HTML any more. Do you guys agree with this idea? ...

How I can make a table be 100% height in Mozilla browsers?

hi friends, Can someone tell me how I can make a table be 100% height in Mozilla browsers? this is the html code <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>New Page 1</title> </head> <body> <table cellpadding="0" cellspacing="0" width="177" height ="100%"> <tr> <td height=...

Updating MySQL with textarea content without reloading

Hi, I'm building a page which loads the contents of our MySQL db for editing. Each row of the table is in a seperate, editable textarea on the page. I need the user to be able to update each row (ie send it's contents to the db) without reloading the whole page, with a click of a button that's responsible for that specific textarea. I u...

python extract contents of regex

hello, I want a regular expression to extract the title from a HTML page. Currently I have this: title = re.search('<title>.*</title>', html, re.IGNORECASE).group() if title: title = title.replace('<title>', '').replace('</title>', '') Is there a regular expression that will extract just the contents of so I don't have to remov...