I'm currently doing this to replace extended-ascii characters with their HTML-entity-number equivalents:
s.encode('ascii', 'xmlcharrefreplace')
What I would like to do is convert to the HTML-entity-name equivalent (i.e. © instead of ©). This small program below shows what I'm trying to do that is failing. Is there a way to ...
The question is similar to this one, but I cannot figure how to make the formatting also apply to the ASP.NET server side tag <% %>
Like the related question, a block like this one
Good
<ul id="menu">
<li><%: Html.ActionLink("Home", "Index", "Home")%></li>
<li><%: Html.ActionLink("About", "About", "Home")%></li>
</ul>
Will g...
How do you check in JS what the value of the td above the current one is in a table? I'm trying to get a table like this:
|column1 | column2 | column3 | column4 |
----------------------------------------
| | | | |
----------------------------------------
| | | data | |
----------...
I'd simply like not to have a JQuery based HTML editor that use <b>, <i>, <font> and all those deprecated tags. Can you help me please?
...
I'm trying to make a div with a static height and variable width. With multiple horizontal tabs. The active tab should stretch horizontally to fill the container and the inactive tabs should shrink back down to their inactive size (24px in this case).
I can't quite get it to work. The tab stretches, but too much. It bumps the tabs afte...
Hi have the following flash object placed in HTML, flash seems to be rendering good in Firefox, Chrome, Safari but not in any version of IE!!!
Can someone please let me know whats wrong in this object, or what I miss specially for IE!!
Thanks in advance,
Tanmay
...
Is it possible to overlay HTML elements over XBAP?
I have an XBAP application in an iframe on a webpage, and I'm trying to overlay HTML elements over it. I can easily do it over Flash, but I have yet to figure out how to do it over XBAP.
...
This question occurred to me after a user named patrick pointed out an error in an answer I'd given earlier today.
Given the following html:
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"></script>
<script type="text/javascript">
$(function(){ ...
how do i save checkbox state through sessions? i'm using this jquery code to toggle the options:
$('div.check input:checkbox').bind('change',function(){
$('#'+this.id+'txt').toggle($(this).is(':checked'));
});
but when i reload, the checkboxes are back to their default state. i know i'd have to use sessions, but how do i make the ...
Hello everybody
I have a html/css problem. I have a website which is made of a "wrapper" table in width: 100%. In this website there is a "results" page, which shows a table with many different products and their columns of information. Due to the fact that there are many columns, the table exceeds the size of the screen. When I use ...
I need to show "x" number of cateogories in a menu (basically a hidden div that pop up when someone clicks on a nav menu called "Category"). No problem with the div, but I am struggling with arranging the categories in any form of order inside the div. I don't want it to be a single column list an stretch all the way down to the page, so...
Is it possible to constrain a draggable YUI2 Container in a DIV instead of the whole page?
I know its possible using YUI3 Drag n Drop:
http://developer.yahoo.com/yui/3/examples/dd/constrained-drag_clean.html
...
I have four buttons in an HTML form.
Here is the HTML:
<div class="fileinputs">
<input type="file" class="file" name="uploadedfile" />
<div class="fake...
Hi guys
I am trying to make CSS drop down menu (no javascript involved). According to
http://pixelspread.com/blog/289/css-drop-down-menu I only need to add
#menuBar #test2 a:hover .subMenu{display:block;}
to make the sub menu show up. However, in my code, it doesn't work. Could someone help me about this issue? Thanks a lot!
...
I have a site on my server that is pulling in an iframe from an external site in which I do not have access.
I want the iframe to resize the height based on the content that is being pulled in so the page as a whole looks like a single page.
*I do not need to know how to get rid of the scroll bars.
Does anyone have any ideas? Thanks ...
I want to do this
<?php
$dropDown = "<select><option value=\"0\">1-50</option><option value=\"50\">51-100</option><option value=\"100\">151-200</option></select>";
?>
<html>
<head>
</head>
<body bgcolor="333333">
<script language="javascript">
<!--
var params = new Object();
params.dropDown = <?php print $dropDown; ?>;
</scri...
I know how white space is handled in text nodes for XML and HTML, but I'm uncertain about white spaces inside tag elements themselves. Obviously, white spaces are used inside tags to separate attributes, but is it valid to have white spaces before the '<' or '>'?
For example:
< foo >
< /foo >
Or even:
<foo>
< / foo >
Are these...
Hello,
I have been trying to create a HTML E-mail, which is just one image that I sliced up using Fireworks CS4.
When looking at it in IE, Opera, and Firefox the actual image looks fine. However as soon as I import it into Microsoft Outlook 2007, I end up with a horizontal white spaces below the top image (WinstonsAd_r1_c1), and a ver...
Hi,
What I want is that the URL to some specific images should change on reload / new visit.
No news but this is how it looks today...
<li><a href="http://nameToSite/images/bkg1.jpg"></a></li>
Is it possible to make a jQuery url change
To something like
<li><a href="http://nameToSite/images/randomImages[1].jpg"&g...
Hi guys.
I am trying to make drop down menu. Some folks help me on
http://stackoverflow.com/questions/3314198/css-only-drop-down-menu post.
Everything works fine except when I hover my mouse to my submenu. The hover state background image in my #menubar #test2 a:hover will return to #menubar #test2 a state` . I really need to get th...