html

'Unexpected' behaviour when calling ColdFusion code (server-side code) from javascript event handlers

I have a simple YUI dialog with 2 buttons - Accept and Decline. I would like to call ColdFusion code together with JavaScript code when each of the buttons is clicked. When I introduce CF code together with JS code unfortunately both CF code present in each of the functions get triggered. All the code is shown below: <script type="tex...

dl and span tag in one line

I have the code like this <div> <span>This is text</span> <span> <dl> <dt><a href="#"><span>Please select category</span></a></dt> <dd> <ul> <li><a href="#">Brazil<span class="value">Cat1</span></a></li> <li><a href="#">France<span class="value">Cat2</span></a></li> ...

HTML Checkboxes in select list

I'm trying to build a checkbox list within a select list (like the one for countries here: link text) I'm using Asp.net MVC so it needs to be pure/html &| javascript/JQuery. Is this possable? Or is there already a prebuild one I could download load? Thanks Ripped HTML/CSS: <html xmlns="http://www.w3.org/1999/xhtml" > <head> <style ...

How can I get browsers to download an exe instead of opening it in the browser window?

I have a website from which I want to enable browser users to download an exe. I am testing it with a very simple HTML file which I load into the web browser with "File>Open". The "body" looks something like this: <body> <a href="http://www.example.com/myprogram.exe" target="_self">click to download exe</a> <a href="http://www.example....

Check if HTML contains JavaScript in PHP

I need to check if user submitted HTML contains any javascript. Im using PHP for validation. Thanks for any help! ...

Is it necessary to use H2 after h1

Is it mandatory to use H2 after h1 if text is too small then can we use h4 after h1 . and is it accessible ? ...

Wrapping text around a div

Hi, I have a layout like this: Header div divLeft divRight Footer div divLeft is a bunch of text and divRight is a div with some stuff in it. divLeft is a lot longer and I would like the text to wrap under divright. right now it's just making two columns and there's a lot of white space under divRight. Help? Thanks! ...

Div does not expand to maximum width

I have the following css class: .CtractLabel { font-weight:bold; padding: 2px; text-align:left; /* width:120px; */ width:150px; float:left; border-bottom:solid 1px #aaaaaa; border-right:solid 1px #aaaaaa; background: white url('../Images/GridHeaderBg.gif') repeat-x bottom; } On my page, I have a a d...

How do I get form values to disappear when I enter the field?

I am making a simple form with about eight input fields. I want the initial value in the field to indicate what people are supposed to enter. For example value="name" so that people know to enter there name there. My question though is how do you get the initial value to vanish when they enter that field so that the initial value is on...

How can I retrieve the contents of a HTML text box from PHP in response to a button click?

What is the best way to put a text box on the following HTML page and then, without reloading the page, get its content in PHP when the user clicks the button? <?php require_once "phpuploader/include_phpuploader.php" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <h...

how to set line spacing for html <p>

For html <p>...</p>, how to set the line spacing using style sheet if the text for the paragraph have more then one line? ...

textarea with syntax / code highlighting

Is there some sort of textarea control equivalent that will properly color syntax as its entered on a webpage, similar to Visual Studio or Eclipse? I'm not looking for an editor like fckedit, i only need it for presentation purposes (coloring on the fly). I'd like for this to highlight/color HTML, javascript, and vbscript ...

XML Serialization of HTML

Okay this one DID it! Thanks to all of you! public class Result { public String htmlEscaped { set; get; } [XmlIgnore] public String htmlValue { set; get; } [XmlElement("htmlValue")] public XmlCDataSection htmlValueCData { get { XmlDocument _dummyDoc = new ...

wrapped captcha control in a p tag, how to shift it to the right?

wrapped captcha control in a p tag, how to shift it to the right about 50 px? Edit I am using reCaptcha using the .net control. My input elements are to the right of the page by about 50 px. My repactha is rendering left aligned (all the way to the left, so the alignment is off when compared to my other input fields). ...

How to keep Jquery function from overwriting one input field with onclick write to second input?

I have a form with two input fields and a tag cloud. I want the user to put focus in the first input, then click a tag thus triggering a jquery function that puts the clicked-on tag in the first input. Then the user focuses the second input, clicks a tag triggering a similiar jquery function to put the second tag in the second input ...

Jquery Slider spacing fubar on ie7 and i6..

So ive been trying to debug this friggin spacing issue for the last 4 hours.. and I cant friggin solve it!!! If you go to http://myurbanlunchbox.com you will see right away what I am refering to. The image slider has spacing issues, but only in IE6 and IE7.. (as usual). Can anyone point out where im going wrong? ...

Links not showing in firefox & safari

I have kind of a weird problem .. Something that isn't working on ff & safari but IS working on IE on itself is already pretty weird but I can't seem to figure out this problem.. On my site http://www.turnkring-excelsior.be there are links to social media in the top right corner (youtube, facebook and flickr), on IE they are linked, on...

Link to current page without query string

I know there are a lot of tricks for doing links, for example <a href="?query=string"> will link to the current page after appending the query string. Is there a way to link back to the current page, after removing the query string without just typing the file name? Example, at the page foo.php?q=3, I want to link to foo.php. Is there a...

jQuery Ajax loading content from another page of the site

I'm trying to pull the contents of Div from another page of the site I'm working on and update the Div on the current page. I want to do this so I don't need a page reload. The Ajax call I'm making works fine in Firefox, it updates the Div with the content from the other page of the site. The problem is it breaks in IE, when I try to get...

Javascript performance ? - Put events in html tag, or bind them?

I'm wondering which is better for performance... I have a "web app" sort of thing. It has a lot of javascript. When a button is clicked, a hidden div becomes visible. This new div has 5 buttons. Which is better for performance: 1.) put the button click events in the html tag of each button like onClick="alert('hey');" 2.) Attach events ...