html

How to "check" certain checkboxes only using Jquery?

Hi I have a HTML form containing checkboxes in the form of .. <input type="checkbox" name="range[]" class="range_opts" id="range-1" value="1" /> 1 <br /> <input type="checkbox" name="range[]" class="range_opts" id="range-2" value="2" /> 2 <br /> <input type="checkbox" name="range[]" class="range_opts" id="range-3" value="3" /> 3 <br /...

Implementing regular page refresh but without page flashing

I cannot understand how Bing Community site is implemented. Clicking one of the "All Recent" "Unanswered" "Unread" or "Your Discussions" issues regulare request that refreshes whole page (proxy display regular request) also it changes URL (full URL not just #hash). But page does not flash! How they achieved this? ...

How do I view the HTML Dom afer a jQuery modification?

I am using DebugBar in IE to view the DOM. But after I modify the DOM with jQuery I can not see the new or modified DOM with DebugBar. How Do I view the modified DOM? ...

rails: emulate "Save page as" behaviour

Hey guys, for a rails project I need to provide the user with a downloadable HTML version of a statistics page. I got so far as creating a controller action that will set the header as follows and then render and return my vanilla html page: headers["Content-Type"] ||= 'application/x-unknown' headers["Content-Disposition"] = "attachmen...

How can I place a cross-browser button within (on top) of an text input?

I'd like to create a text input with a clear button in a confined space. Like the iPhone, I want to place the button (a small x image) 'inside' the input at the far right so that a user can just click that to clear the value, instead of having to waste space beside the input. Right now I'm using a background image on the input and an in...

How to draw vertical text with CSS cross-browser?

Hi, i want to rotate a single word of text by 90 degrees cross-browser (>= ie6, >= ff2, webkit). ...

How to debug CSS/Javascript hover issues

I often find myself wanting to debug CSS layout issues that involve DOM changes caused by Javascript in reaction to a hover event or different CSS rules applying due to the :hover selector. Normally, I'd use Firebug to inspect the element that's giving me trouble and see what its CSS properties were, and where those properties come from...

Very basic HTML/CSS question- having a link line up with the rest of the sentence

So I want to have this: In association with Company Name What I'm getting right now is this: In association with Company Name The company name is a link, but I have my links be red with no underlining by setting them to a class in CSS. This is the html I have: <a>In association with <div id="bodylinks" class="bodylink"><a hre...

Can the spacing of a defintion list be adjusted in html/css?

I'd like a defintion list that looks like: term 1 definition 1 term 2 definition 2 rather than term 1 definition 1 term 2 definition 2 What's the easiest way to to this? ...

finding the previous item in a JQuery array

I have the jquery: $(".item") which gives me all elements of class item. I need to select an item from the array I get from this method, and then find the item before this. something like: $(".item").select("#3").prev() - except it should work :) so, assuming I had the list of items: <div id=1 class="item"></div> <div id=2 class="...

Why developers hate iframes?

While working with web developers, I always hear from them that using iframes is something we must avoid as we can, and some say it's something bad, annoying and makes a lot of problems. Also when i told my previous boss "not a developer" one day that i will use iframe, he looked at me as a bad developer :) What i want to know, does i...

Escaping double quotes in JavaScript onClick event handler

The simple code block below can be served up in a static HTML page but results in a JavaScript error. How should you escape the embedded double quote in the onClick handler (i.e. \"xyz)? Note that the HTML is generated dynamically by pulling data from a database, the data of which is snippets of other HTML code that could have either s...

Change Response type in asp

Hello, I've used xml type by writing (asp coding) Response.ContentType = "text/xml" Now xml contents are over and I'd like to add html content so I wrote Response.ContentType = "text/html" But it still writing in xml what would be the problem here? ...

object, param, jquery

<object width="438" height="280" id="pano" > <param value="url_flash" name="movie" /> <param value="false" name="menu"/> <param value="high" name="quality"/> <param value="#FFFFFF" name="bgcolor"/> <embed width="438" height="280" pluginpage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-fl...

how can I adjust volume in my program?

I'm creating an audio player program in HTML and Javascript. How can I adjust the volume in my program? ...

Center LI elements in a CSS menu in IE?

I need to center a CSS menu that has an unknown width. I found a solution. By setting the UL tag to display:table or display:inline-table the LI elements can be aligned in the center. This solution did not work in IE. Is there another solution that will work in IE, with only HTML / CSS? If you want a good look at my code i've pasted it...

jQuery Ajax - Get Elements Inner Text

I have a PHP file which will return something like <div id="title">Add Us On Myspace!</div><img id="image" src="http://i39.tinypic.com/67jybs.png" alt="Add Us On Myspace!" /> This is called using this... $.ajax({ url: "Tabnews.php", success: function(tab1html){ $("#tabs-1").html(tab1html); } }); I need to de...

Encoding error when using HTML Agility Pack

hi I'm trying to parse a html doc using some code I found from this actual site but I keep getting a parsing error HtmlAgilityPack.HtmlDocument htmlDoc = new HtmlAgilityPack.HtmlDocument(); // There are various options, set as needed htmlDoc.OptionFixNestedTags = true; // filePath is a path to a file containin...

How to unescape html in C

I'm interested in unescaping text for example: '&#x5c;' -> '\' in C. Anyone knows of a good library? By html escape I mean, all the entity references. ...

Css position in ie7

Hello, I have a file uploading site and my template works fine in every browser except ie7 the google ads are not showing correctly in ie7, i tried applying css properties display: block and also tried with inline, specified width and height, specified position: relative, so what should i add to css to get it correctly positioned with ...