html

Multiple dynamic selections

I need a way of having multiple selections but only one visible at a time. When the user wants to add another selection he/she clicks a button,checkbox,radio..whatever They need to be able to add an unlimited number of selections. Any Ideas? ...

Creating a signup page like twitter/signup?

Hi, A lot of newer sites have neat-o sign up forms. I do c++/java dev, and am getting in to web dev, css is a bit of a mystery to me yet. If I wanted to create a page like twitter.com/signup, I know I can use firefox and try to copy the layout using firebug. This is going to take a bit of time to get through though. Is there any how-t...

Visual Studio 2010 powertools HTML clipboard support

I installed http://weblogs.asp.net/scottgu/archive/2010/06/09/visual-studio-2010-productivity-power-tool-extensions.aspx but I can not find where I can make use of the HTML clipboard support. Anyone knows where to find it? I already searched in the kebyoard settings after Copy but that didn't provide me something useful. Anyone? ...

How can I use Firebug to check data if the page is reloaded?

Hi, How can I use Firebug to check data if the page is reloaded (in the case of AJAX, etc.)? Thanks. ...

Non-linear shadow in HTML design

Hi I'm trying to create a shadow that is wider in the top like in the picture below. It does not have to be very cross-browser, recent Firefox and WebKit based browser will do just fine. Does anyone have any good ideas on how to do this? ...

Detect differences from html and css changes from live site

We have a webpage that can be hosted in an iframe on another site. When it's shown in another website we override the css to have the l&f of that site. What happens is when someone changes the css class name or properties in the webpage it might look bad on other site where it's hosted until we detect and change it. If there is a way...

CSS for Disabled Textbox (Prevent "graying out" in Firefox/Chrome)

Is it possible to set CSS for disabled textboxes? I don't want the automatic gray-out in Firefox/Chrome. The reason is that I'm sometimes disabling textboxes right before submitting a form so they don't get unnecessarily transmitted (and clutter the URL), and that gray-out behavior is degrading the user experience by creating flicker. ...

Internet explorer 7 and 8 truncating website content

Hello All, I've spent a few days with this problem and I can't seem to find a solution anywhere and it's driving me nuts. I created a web page that loads all of it's content dynamically and for some reason the content gets truncated in IE 7 and 8. It works fine in firefox and opera though. The content is larger than the size of the wi...

Non-terminating RegExp.exec in Rhino

I have the following JavaScript program saved in a file pre.js: var pre = readFile("method-help.html"); RegExp.multiline = true; print(/<pre>((?:.|\s)+)<\/pre>/.exec(pre)[1]); The contents of method-help.html is simply the page at http://api.stackoverflow.com/1.0/help/method?method=answers/%7bid%7d. What I'm trying to do is get the J...

how to change the text of a textarea when a dropdown list is selected

how to change the text of a textarea when a dropdown list is selected. Here is my code... <html> <head> <script type="text/javascript"> function fifa() { abc=document.forms[0].browsers.value; if(abc==""); document.form1.text1value="you selected A"; else if document.form1.text1.value="you selected B"; else document.form1.text1.value="you...

Client Path of uploaded file or image?

Here is what I am trying to make. Whenever a user browses a image from a file field. I want to grab the clients path and show it on the page so that user can be certain of what image he choosed, before uploading it. ...

How to render HTML form from schema using formencode?

I'm using formencode for validating and submitting forms in my Pylons application. The documentation says that it can be used also for generating forms, but there is no any example. I even found the old topic which says it can be done with form = HTMLForm(form_template, FormSchema) form.render() but for the latest version of formenco...

Remove all JavaScript event listeners of an element and its children?

Hi, Is it possible to remove all event listeners of an element and its children? Something like: myElem.removeEventListeners(); I need this because I have a complex element with events, and I need to create a copy of it -- like a static image that does not react to any events. ...

Specify an url in html for the bookmark option on the iPhone.

I am building an iPhone optimized website and when people use the '+' button on the iPhone you can add a bookmark to the website on the homescreen of the iPhone. How can I specify a url that will be used instead of the page they are on. For example, if they are in the /Foo/Bar url I want the bookmark to be /Home so they go automatic to ...

how to open the url in Internet Explorer in a new window

when i click on button1 it should open the url in Internet Explorer in a new window... thanks in advance , - Miss Subanki ...

check box input size

I want to increase the check box size for my following code: <div id="chatBox"> <form> <input type="checkbox" name="chat" value="LiveChat" />Live Chat<br /> <input type="checkbox" name="email" value="Email us" />Email Us </form> </div> is it possible? ...

Is it possible to pass parameters in the HTML class attribute?

I want to be able to embed certain information into HTML elements (images) without breaking valid HTML markup. Would the following be valid HTML? <img src="..." class="isearcher:tags(paris+hilton,gary+suneese)" > The hope is to latter extract it with a regex in javascript/jQuery. ...

How to make a transparent background without background image ?

I would like a div to have a transparent background. I tried to do this using background-color and opacity, but the problem is that the border and the text inside become also transparent. Example here. Is this possible to achieve this without using transparent PNG background image ? ...

Position div side by side with css

I have this simple Layout in my page <div id="content-wrap"> <form id="form1" runat="server"> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <div id="content" style="height: 550px"> </div> </form> </div> And the css: #content-wrap { clear: both; float:...

How do I create a string from a block of text that contains the " character

I've got a block of html code that includes some form action stuff, which has the " appearing a lot. Is there a way I can make the entire block into a string? public string methodName() { return @ " text goes here.. blah blah <p> a bit of html stuff</p> <form action="www...." method="post"> <input type="hidden" name="cmd" I g...