html

Selective emboldeing of text in a webpage

while printing out utf-8 characters onto a webpage, if encapsulate them with they get emboldened, but anything else, the page turns blank. Why? def main(): print "Content-type: text/html\r\n\r\n"; print '<html>' print '<head>' print '<style type="text/css">' print '.highlight { background-color: yellow }' print '.color1 { color: green;...

Making form submissions unique using PHP and HTML

Hello all I'm currently developing a page where the user fills out a form, and when submitted they are taken to the next page. When on the next page, I want to have it so that if the user went back to the previous page using the back button, or hit refresh, the submission will not be saved into the DB. Now I recall reading somewhere t...

need help with markup for nested table data. needs to be semantic and accessible.

see image here: http://www.x-reference.com/wp-content/uploads/2010/05/nested-table-data.gif How should I write the code for the section entitled "Retiree and Employee On Demand Community" so that screen readers don't get confused on it? A nested table doesn't seem to be the best solution, it doesn't seem semantic either. The data in th...

How do you change an HTML radiobutton selection from Javascript?

I need to select an HTML radiobutton (deselecting any previously selected radiobutton) on my form, from within Javascript. How is this accomplished? ...

IE resizes table columns when dynamically adding rows

I want to create a table where each row has an expandable details row. See the below simplified example code. Upon clicking a row in the visible table, the corresponding row from the hidden table should be cloned and inserted below the clicked row -- thus creating an expanded row effect. A second click removes the details row. The probl...

Designing a different kind of tag cloud.

Rather than having a bunch of links that are all different sizes, I want all of my tags to be the same size. However, my goal is to minimize the amount of space required to make the cloud, aka minimizing the number of lines used. Take this example: Looks like any normal tag cloud. However, look at all that extra space around the 'rou...

how to display a dialog if user can't download file

hi. dealing with php/html/javascript. i'm trying to figure out a good/best approach to allowing a user to download a file. i can have the traditional href link, that interfaces with the back end php app to download the file. however, i want to have the app display some sort of dialog/alert if the user isn't able (basedon acl/permissio...

embedded web/application server

I need to write an user menu for an embedded device (mips linux). The menu has to be accessible from network (web page - AJAX?) and it has to be able to read/write hardware settings. What would be the easiest way to implement such an app/server? Where do I start? PS: c/c++ preferred. PS 2: I have limited resources ...

Hiding <option>s in IE

I wrote this nifty function to filter select boxes when their value is changed... $.fn.cascade = function() { var opts = this.children('option'); var rel = this.attr('rel'); $('[name='+rel+']').change(function() { var val = $(this).val(); var disp = opts.filter('[rel='+val+']'); opts.filter(':visible'...

Browser Incompatible Please Use Mozilla Firefox 3.2 above OR IE 8.0 above

Hi, chrome browser showing this: Browser Incompatible Please Use Mozilla Firefox 3.2 above OR IE 8.0 above for website http://test.theartness.com/... I didn't understand what causing this error. i checked char encoding etc etc. everything.. I have seen in http://web-sniffer.net/ , it seems server sending that response for netscap...

php mail - special character

hai I have a Spanish site in php. In this a mail body contain a subject "Solicitud de cotización" but the subject appears in hot mailbox like Solicitud de cotización‏. But it's appear correct in mail section. How I avoid this problem. Does any one know this? ...

Why aren't these Canvases rendering?

I'm creating a web app that allows users to enter a number of colors, by specifying RGB values. Upon submission, the user will see a canvas with a solid rectangle drawn in the color chosen. On this page, I have 7 canvases. The first one draws just fine, but none of the rest show up. The browser is Safari. Here's the relevant code: Fir...

window.open(), HTML elements missing

I'm opening an aspx page with window.open(). but it never loads all html elements. The page contains images, google map etc. sometimes some images are missing, sometimes google map is missing on page load. Then if I refresh the page by F5 or Ctrl+F5 then all page elements are loaded correctly. Please tell me why it is doing so and how to...

background-color:#070707; different in photoshop than in browser

I'm coding a website with: background-color:#070707; That color should be a very dark gray, just the way I see it in photoshop. Now when I launch this in my browser (the background-color is set on the body using CSS, so it's not an exported image), the color is darker than in Photoshop. I know there can be differences when exporting i...

Problem in displaying image in FireFox

Hello friends, I have a JSP page on which I have a div tag in which there is a a IMG tag. Using this IMG tag I want to show an image in it. Here the source path of an image is comes from database so I assigned a JSP variable using JSP scriplet. This JSP variable have the source path of an image. This path of image may be of differen...

How to add jsf components in javascript?

Is it possible to add JSF Components using javascript? In my case , on change of a select option , i need to display a different combination of input controls (like text box(s)). I thought i could use a element and innerHTML property to display the dynamic controls.But it seems to not work!!! <h:selectOneMenu id="browseType" class="Tex...

which unit i should use in CSS, while designing web page

I deisgned more than 10 sites, still i had a doubt in mind of 'Whats the correct unit I should use'. Whether it is px, or em or %. Plz guide me to right direction EDIT 1: FOR LAYOUTS (Especially for container boxes) ...

HTML link over text issue

I need to add a link over the entirety of a div which contains some more divs. Looks like this: div.top { width: 150px; height: 150px; position: relative; } a.link { width: 150px; height: 150px; position: absolute; top: 0; } <div class="top"> <div class="text1">Text 1</div> <div class="text2">Text 2</div> <a class...

wxpython printing html

How it is possible wxHtmlEasyPrinting to force to work with utf-8 encoding? # -*- coding: utf-8 -*- import wx import wx.html as html import wx.lib.printout as printer class MyFrame(wx.Frame): def __init__(self, parent, title): wx.Frame.__init__(self, parent, -1, title, size=(450, 500)) wind = wx.SplitterWindow(se...

What unit should I use for sizing boxes inside wrapper in CSS?

I have a wrapper of certain width. I want to float 3 boxes inside that wrapper. What unit should I specify the size of the boxes in — px, em or %? ...