xhtml

How to use an incremented counter to provide a unique id in XSLT?

I am using XSLT to convert a very large XML document into (X)HTML. For some of the tags I am converting them to a <div>. I would like to be able to create a unique id for these tags, using an incremented integer to form part of the unique id. An example of the rule I am using is: <xsl:template match="bookcoll/book"> <div class="b...

display webpage inside other webpage without frames

Hi, i'm looking for a way to display a web page inside a div of other web page. i can fetch the the webpage with CURL, but since it has an external stylesheet when i try to display it, it appears without all his style properties. i remember facebook used this technique with shared links (you used to see the page that was linked with a fa...

IE Positioning Help.

I’m currently working on this theme : http://tf.ffffffive.com/fancy/ I just need a few pointers on how to get it working in IE6 and IE7 . -The positioning is a bit off. -If you guys have a helpful blog post of maybe give me a hand with some CSS coding I would really appreciate it. Also the Javascript scrolling effect isn't working co...

Localization for XHTML files

Hi. I hav this web application using spring faces. How do i implement localization in XHTML files. I tried using loadBundle tag of JSF in loading labels fom properties file but it won't render as expected. ...

Block Level Elements inside Inline elements

The W3C Validator tells me I can't put block-level elements inside inline elements. Makes sense... but what if I'm using CSS to change that block-level element into an inline element? And what if I'm using CSS to convert an inline element into a block-level element (when inside another inline element)? The Validator doesn't pick up on...

Removeable side bar layout possible without CSS expression?

I have the following layout with a sidebar that is only present on some pages and not others. When the sidebar is not present #main should fill the available width of the container. It works but makes use of a CSS expression - is it possible to achieve the same layout without this expression? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1....

Website surfacing blank pages in IE6

- Since discovering more about my problem I have modified my question A single user is complaining that (on XP and using IE6) they're not able to follow any links around my site. The behaviour they're seeing is clicking a link shows a blank page, but doesn't change the url in the address bar of the browser. Pressing refresh at this poin...

How do you build a website that uses SOAP requests and responses?

Basically, I'm looking to create a simple music playlist platform but in the form of webpages. Users create playlist, add songs to it, and other users can view these playlists. But the website must use SOAP to send and retrieve data. How is this possible? Is this possible? ...

multi-dimensional array post from form

i want to know how i can post a multi-dimensional array? basically i want to select a user and selected user will have email and name to sent to post. so selecting 100 users, will have email and name.. i want to get in php like following $_POST['users'] = array(array(name, email), array(name2, email2), array(name3, email3)); any idea...

Whole code of Asp.net page renders in a form tag is it W3C valid?

Whole code of Asp.net page renders in a form tag is it W3C valid to render everything in form tag? <body> <form runat="server"> remaining code..... </form> </body> ...

Can we make Print button without JavaScript?

Can we make Print button without JavaScript? to open browser print window. ...

Styling the DD tag

I am using dl,dt and dd tags in one of my project . Now I want give a bullet before dd . How can I make my dd's to a bulleted list using css ? Any Ideas ??? ...

Is %20 in site urls and and file name can create any problem on any server or browser(web/mobile) or OS or device etc ?

Is %20 in site urls and and file name can create any problem on any server or browser or device etc ? Is it bad for SEO ? ...

Obtaining body background color via Javascript (jQuery) in Webkit & Opera

This code only seems to work in Firefox. Safari and Opera don't like it: alert($("<body>").css("background-color")); I've tried other methods too which are even less successful. alert(document.getElementsByTagName("body")[0].styles.backgroundColor); alert(document.body.styles.backgroundColor); I've tested these browsers on Mac - an...

How do you make the area of a div clickable? Not the whole div!

If you have a background image in a div with a (drawn) button in the middle and some other drawings around it. How do you make the button clickable but not the whole div because I don't want the user to click the drawings around it, if that makes sense!? I am I wasting my time playing with padding and margins? Should I just create two di...

Can we use 2 different url on same anchor tag for javascript disabled and enabled condition ?

Can we use 2 different url on same for javascript disabled and enabled condition If javascript is enabled then link should be <a href="link1"> and If javascript is disabled then link should be <a href="link2"> ...

Regular expression HTML tags in an array

I've split a large body of XHTML into individual array elements, and I now need to iterate through them and split it at regular intervals. That's not a problem, but I want to ensure I don't split it in the middle of an XHTML tag. So the array looks like: [41] => <p> [42] => materials [43] => and [44] => dosage [45] => forms:</p> [46] =>...

Proper entity types for XHTML, XML and inside inline JavaScript

First, the way I understand it, it's more appropriate to use numeric entities in an XHTML document, such as &#034; instead of &quot;, is that right? Second, for my RSS XML feed, which entity type is correct? Named or numeric? I believe it's numeric, but see examples of both in my searches. Third, which of the following is correct for e...

How to build a simple CSS layout that expands to the viewport?

I am trying to build this very simple (visually speaking) layout using HTML/CSS that you can see in the wire frame below: /------------------------------------------\ | | | header div | | | |-----------------------------------...

How do I best prioritize HTTP requests on a web page?

I need to prioritize the downloading of (in my case) images. To do this I would prefer to use some kind of plugin (preferably for jQuery) that lets me do this without having to build my own downloadqueue mechanism. Consider this scenario: You have a web page. Your web page is able to show a given user three images. These images are on...