xhtml

XML allows for external entities; what about XHTML?

This question about web page 'inclusion' triggered my curiosity. The XML allows you to specify a reference to an 'external' portion. Can you do the same in XHTML, then? XML example: <!ENTITY foo SYSTEM "http://www.mydomain.com/logo.gif" NDATA GIF87A> ... <SOMETHING>&foo;</SOMETHING> ...

What is the quickest and easiest way to just build a email html page? and subscribe page?

We just want to build a very quick webpage that has two pages. One page where there is a form where a user can fill out a form and email us. Another page for users to put in their email address to subscribe to our newsletter. What is the quickest way to build this? We are familiar with most web app technologies (asp, php, jsp, perl etc...

Why does Opera parse my web page as XML?

I just tried viewing my website http://www.logmytime.de/ in Opera (version 10.50) it gives me an "xml parsing failed error" and refuses to display the web page. I can choose to "Reparse the document as HTML" and then the page works fine, but that's hardly a solution to my problem. The weird thing is that the error still occurs after s...

How to give transparent hexagon angle at the last <li> only?

I have to make menu like this. Items of drop-down can be increased and decreased If client will add or remove pages. width of drop-down's will depend on how many character in page title name. angle only needed at last item's right bottom corner. I Know how to make drop-down menu and how to give cross browser transparency , but I wan...

How to make this type of image popping out of box using XHTML css

How to make this type of image popping out of box using XHTML css. without using whole box along with image as a background Only globe image will be image. ...

How to make this toggle effect possible?

default condition After clicking on Sitemap link How to write HTML to get footer links after the sitemap tree upon clicking on Sitemap link? ...

Parsing XHTML results from Bing

Hello, i am trying to parse received search queries from bing search engines which are received in xhtml in java. I am using sax XmlReader to read the results but i keep on getting errors. here is my code-this one is for the hadler of the reader: import org.xml.sax.Attributes; import org.xml.sax.SAXException; import org.xml.sax.helpers....

What kind of data structure shall i use for handling huge data

I am parsing huge xhtml files and am trying to play around with the content in it. Basically the words in it, their positions etc. I tried using the HashMap, ArayList etc. All of them give OutOfMemory issue after loading 130347 data. What is the kind of data structure that can be used to hold huge data in JAVA. ...

php populate listbox dynamically without submitting form

Hi Everyone, I'll try to explain this as best as I can. I have a form that accepts multiple fields, and in the end, e-mails all the fields to a specific e-mail address. So for example, I have three text boxes, one list box and two submit buttons. Two of the text boxes are first name, and e-mail address The third text box is used to p...

browser scroll not going at bottom of toggle?

I 'm using this code to make a toogle effect at bottom of the page. it's working but toogle div going under the fold but browser do not to scroll at bottom following the toogle area <script type="text/javascript"> jQuery.noConflict(); jQuery(document).ready(function() { // toggles the slickbox on clicking the noted l...

another onmouseover problem this one concerns pictures

Hi all! have problems with mouseover in Mozilla and Chrome after making it work in IE, for sure I can tell you that my code woked perfectly in Chrome at least, cause thats my default browser and I used it for debuging when creating the javascipt and it worked nicely... until I tried to make it work in IE too. Here I post the full code o...

CKEditor disable HTML transformation

I've got a problem with CKEditor. Especially the br- and img-Tags are transformed to not be valid. In the source-view I see and but when I inspect the rte-source the slashes are gone as well as when submitting the form. Can someone tell me where I can disable this or enable XHTML-conformity? The embedding page is XHTML. Thank to any h...

Change URL Submitted to Depending on Form Selection

I have a form which I need to submit to one of three different URLs depending on a selection made in the form. I suspect the easiest solution is to use jQuery to insert the appropriate path before the rest of the form parameters as the selection is made, but not sure on what the code would be. Any pointers greratly appreciated! <form i...

Why is there a margin at the top of my browser?

I have a web page that is displays differently in Firefox and Safari (IE testing yet to come). The page displays as expected in Safari, but there is a 50px margin between the body and the HTML that I can't determine what is causing it. Here is the CSS for the body: body { font-size: 13px; line-height: 1.333em; background: #f6ea...

How to view doctype in generated source code

I am using an XSL transformation on an xml file to create an xml document. The problem i am running into is that when i go to view the generated source (the transformed source) i can't see the DOCTYPE attribute of the html so i don't know if its being emitted properly. Is there any way to view the doctype in this way? ...

How to get transparent corner using jquery corner plugin

http://jquery.malsup.com/corner/ I tried but it fills color at corners in place of white i need transparent corner with 0 opacity. ...

Dynamically writing page titles and active classes with php

For some time now I've been using the following code to dynamically write in html page titles and add an active class to menu items. Is this still a good why to achieve this or are there better/smarter/optimal ways of achieving the same thing? <?php echo (basename($_SERVER['SCRIPT_FILENAME'])=='contact.php'? 'class="active"' : '');?> ...

How to select first empty value option in a select menu?

The following always preselects the last option, even when I set the selected attribute, but I like the first option to be preselected. <select name="filter"> <option value="" selected>Make a choice</option> <option value="1">1</option> <option value="3">3</option> <option value="7">7</option> <option value="">all</o...

php email html link, but just showing up as html code

Hi everyone, I'm trying to e-mail a html table, that has links within it. But when I receive the e-mail, it just shows me the html code itself. I'm using PHP pear to send the email. I try constructing a string like so $body = "<table>"; $body = $body . "<tr><td><a href='http://google.ca'&gt;Google&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;"; ...

Should we always keep same value for body {font-size:...} which we want to use content <p>?

What are pros and cons to define font-size for body? what if somewhere i will need font smaller and bigger than body? will i get body font size (12px) + needed font size for <p> (10px) = 22 Should we always keep same value for body font size which we want to use content paragraph? ...