html

What is benefit of <thead>

Hello, What is benefit of using thead instead of just td? If there is benefit... ...

Align 2 columns of text links

Hi , I have this code in my block and i would like to have the two columns left and right . Now the 2-nd one is under the first column . <style type="text/css"> a img{border:none;} #planninglaunchbox { background:#f3f8e7; color:#1f1f1f; font:normal 11px Arial,sans-serif; margin:0 10px 10px 0;...

Prevent Coldfusion from encoding html

I am trying to return html from <cfsavecontent variables="html"> <p>Some html</p> </cfsavecontent> <cfreturn html> But when it comes back from the function the html is encoded I found this thread http://www.coldfusionjedi.com/forums/messages.cfm?threadid=BB31B124-19B9-E658-9D3F5726B8607FD8 which has some solutions but im hoping for...

Using JavaScript's split to chop up a string and put it in two arrays

I can use JavaScript's split to put a comma-separated list of items in an array: var mystring = "a,b,c,d,e"; var myarray = mystring.split(","); What I have in mind is a little more complicated. I have this dictionary-esque string: myvalue=0;othervalue=1;anothervalue=0; How do I split this so that the keys end up in one array and th...

JavaScript - Basic URL rewrite + creating record in history

Here's the situation. I have a site where clicking hyperlinks within a certain div makes a jQuery function get the content of a div from a separate page. Because of this, the URL don't change. I need it to change as well as writing an entry in history. My pages are setup like this (not sure this is the smartest way of going though) a...

how to set form action through javascript?

I have an html form whose action should be set dynamically throught javascript. How do i do it? Here is what i am trying to do: <script type="text/javscript"> function get_action() { // inside script tags return form_action; } </script> <form action=get_action()> ... </form> ...

Howto get html popup inside svg at correct position (using javascript)

I have a simplr svg-graph and I'm trying to create a simple tooltip-popup for this graph, but I'm unable to find out how to set the position of the tooltip properly. I have a .css where my popup-div is absolute: #popup { position: relative When creating nodes in the svg I hook a listener like: p.setAttributeNS(null,"onmousem...

how to customize html/CSS tooltips ?

hi, what's the best way to customize html-css tooltips ? (I mean an easy cross-browser solution). I need to reduce the fade-in delay and change the style. (also, could you suggest a good jQuery plug-in for it ? thanks ...

HTML: Is there an ascii character for a up/down triangle (arrow)?

I'm looking for an html/ascii character which is a triangle up and down so that I can use it as a toggle switch. I found , and - but those have an arrow "stem". I'm looking just for the html arrow "head". ...

Convert html to aspx.

Hi is there any tool or code to convert html files to .aspx ? Elaboration to earlier question: I am looking for tool or code that automatically converts html controls to .aspx server control without having to manually change each control. i.e something that will take html page as input, parses it and outputs the controls for .aspx page...

How do I find the previous/default value of a radio button in JS?

I'm not sure if this is even possible, but I figured I'd ask before clubbing togehter an ugly solution. What I have is a group of radio buttons and I want to trigger a function if the radio button value is changed. For example say there are three buttons X Y and Z with Y default selected. If a user clicks on an unselected button (i.e. ...

Replace the surround of an html element with another document

I have an html page with (among other things) a Unity3D window. I would like to replace everything on the page without causing the Unity window to reload. I have tried the following jquery-tastic function replaceSurround(keepElem, newElem) { keepElem.siblings().remove(); keepElem.prepend(newElem.prevAll()); ...

Is there a client-side way to prevent an image from being cached?

Is it possible to control with javascript whether a browser goes to the server for an image or to the browser cache? Can I force the browser to make a server call when it would otherwise use a cached image? I know I can simply append a query string to my image url, but, if I understand correctly, that works because the browser sees that ...

Which of the following Unicode characters should be used in HTML?

I am aware that any Unicode character can be inserted into an HTML document via the following format: &#x0000; ...where 0000 is the character code of the desired character My question is: which of these characters has the most widespread availability when it comes to the client's browser being able to display the character? In other...

Blogger Template: how to change the color of the border css

Hi, I'm trying to change the borders in the style sheet of the template on my blog, but I've never done anything with css so I'm a little bit at a loss... I want to keep the dark background, but I want to create a small border with a slightly different color around my postings. If my guess is correct, then I should modify some of these d...

How can I use the FOR attribute of a LABEL tag without the ID attribute on the INPUT tag

Is there a solution to the problem illustrated in the code below? Start by opening the code in a browser to get straight to the point and not have to look through all that code before knowing what you're looking for. <html> <head> <title>Input ID creates problems</title> <style type="text/css"> #prologue, #summary { margin: 5em;...

How to add url in onclick function?

I have the code new_element.innerHTML ="<a href='#'><img src='"+imagePath+"' alt='' title='' width='466' onclick='addWidget('"+url+"');' height='165'></a>"; which will call the function addWidget: function addWidget(url) { alert(url); var main= document.getElementById('mainwidget'); main.innerHTML = "<iframe src='"+url+"' alig...

Can't Prevent Nested Div's from Overflowing when using Percent Sizes and Padding in CSS?

I want to be able to layout nested divs with these properties: width: 100% height: 100% padding: 10px I want it to be such that, the children are 100% width and height of the remaining space after padding is calculated, not before. Otherwise, when I have a document like the below example, the child makes the scrollbars appear. But ...

How to create a web proxy?

I want to create web proxy . I googled it and even found some tutorial but those were in PHP. If somebody is having tutorial of web proxy creation in java then please post it here Or simply let me know what approach should i follow to create web proxy. [ i will be using Tomcat { if that matters for your answer } ] Thanks Edit i guess ...

Does IE6 Really not Allow Me to set width/height from left/right/top/bottom???

Building a site super quick and having it work on all my Mac browsers, I thought I'd take a gander on a friends old dell laptop with Windows XP and IE6. Nothing looks remotely correct. It's because I used lots of left/right/top/bottom (constraint) declarations to size elements proportionally to their parent's size (I didn't use percen...