html

How can I request that browsers always update (a.k.a. never cache) certain page elements, such as CSS sheets?

I've noticed an issue while developing my pages that's always bothered me: while Firefox (my general "dev" browser) always updates CSS and images when they change on the server, Internet Explorer does not always do this. Usually, I need to refresh the page in IE before it will ask the server for updated versions of things. As I understa...

How do you make an element in an XML Schema that allows any HTML element as its children?

I am trying to create an element in an XML schema such that only standard (X)HTML elements can be used as children. What I've tried is this: <xs:element name="description"> <xs:complexType> <xs:sequence minOccurs="0" maxOccurs="unbounded"> <xs:any namespace="http://www.w3.org/1999/xhtml" /> </xs:sequence> </xs:co...

How to prevent buttons from submitting forms

In the following page, with Firefox the remove button submits the form, but the add button doesn't. How do I prevent the remove button from submitting the form? <html> <head> <script type="text/javascript" src="jquery-1.3.2.min.js"></script> <script type="text/javascript"> function addItem() { var v = $('form :hidden:last').attr('nam...

Why do only some of my system fonts work in my HTML?

I have Din Engshrift and other obscure fonts installed on my machine where I do development. But when I try to access them from HTML, they look completely warped. Fonts like "Courier New" work fine. What causes that? ...

What's the ideal way to implement this PHP/XML function in a website?

Hi, I have this code written up to snatch some weather data and make it available on my website: if( ! $xml = simplexml_load_file('http://www.weather.gov/data/current_obs/KBED.xml') ) { echo 'unable to load XML file'; } else { $temp = $xml->temp_f.' Degrees'; $wind = $xml->wind_mph; $wind_dir = $xml->wind_dir; $gust =...

make html image area ‘coord’ blinking or glow …

i trying to make html image <area coord tag more clear to viewer. any javascript sample to make those coordinate blinking effect or similar as long as it each coord is clear to viewer? p/s: problem with paste < area .that why you didn't see the full of my message.sorry repost ...

How to Set Dynamic Width DIVs

Here is my scenario. I have a container div that has (n) child elements inside it. For this instance lets say there are 2 divs within the container div: <div id="container"> <div id="col1"> Stuff in col1 </div> <div id="col2"> Stuff in col2 </div> </div> The container div is going to be a percentage of ...

javascript slide slick_accessible_slideshow

hi everyone, i have three div's in an HTML page. the page look like this HTML Page: leftArrow(>) div rightArrow(<) i need to move the div from left to right and right to left. using javascript and DHTMl or JQuery. Is it Possible to Move in that direction ? Thanks & Regards Ravi ...

How do I save xml in a webbrowser control?

I have a webbrowser control that displays some xml, when I access the document propertie I get the HTML that the control generated and not the xml. How do I save the "source" of the document? (can't use the webclient) ...

Accessible textbox

I have an HTML page with many textboxes. I have to label them for accessibility purpose.But, i don't want label to visible.Is it possible? Or, is there any other design alternative? ...

301 Redirect directly in HTML file

I have changed some file names on my web and now I want to make "301 Permanently Moved" redirect from the old files to the new ones. The problem is that my web is made completelly by static html pages and all 301 redirect tutorials decribe how to do it in PHP, ASP, htaccess etc. I would like to write the redirect directly into the old h...

html & javascript: How to store data referring to html elements

Hello, I'm working on a web application that uses ajax to communicate to the server. My specific situation is the following: I have a list of users lined out in the html page. On each of these users i can do the following: change their 'status' or 'remove' them from the account. What's a good practice for storing information in the pag...

Is there any Javascript feature that lets you check if an element was closed?

Is there any parameter/function in JS that tells you if an element was closed with an ending tag? ... for this purpose. ...

Should I bring HTML snippets or JSON?

Please note: this is not exactly same as this question. Although it looks like that, I have some very specific requirements. In my application, I have two panels to update with a single AJAX request. Currently, I am sending JSON, and constructing two DOMs in JS and appending them in corresponding places. This is becoming difficult to m...

how to set the vertical scroll bar in firefox to be in the left side ?

i want that the vertical scroll bar that show in textarea in fire fox will show in the left side, i have site with 'rtl' direction, and in IE its o.k , in the left side - (oposide the text). ...

sIFR removes all content on page?

Hey everyone I have a really weird error. When I use sIFR to replace a single h1 element, everything else on the page disappears. It's really odd. I don't get any javascript errors. If I edit out the sIFR.activate function in he sifr-config, everything is displayed normally... This is my code... HTML: <!DOCTYPE html PUBLIC "-//W3C//D...

Render HTML table on Windows Mobile 6.0

I am trying to render a HTML table to display on Windows Mobile 6.0 device. I use Mobile Device Emulator to view the output. Here is my html, am I missing something? The table display each cell on it own row. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapfo...

two column css setup floating over container div

I have a very simple two column setup shows below. However in example one where I have the two column setup the #left and #right divs will float above the #posts container. Example 2 does not float like this but is not the two column setup I am looking for. Suggestions? div#posts { width: 700px; margin: 0 auto; margin-t...

A better way to determine even/odd rows in table

Say you have a webpage with following sample code: <tr class="even"> <td>something1</td> <td colspan="1">somthing1.1</td> </tr> <tr class="odd"> <td>something2</td> <td><b>something2.1</b></td> </tr> <tr class="even"> <td>something3</td> <td><b>something3.1</b></td> </tr> These are not in a loop so I have to explicitly say 'e...

set div visible fasle in get method of controller

I am using C# with MVC. I want to set the div visible true/false based on a condition from database in the Get method of Controller. Please suggest ...