xhtml

how to overcome “name” attribute error in xhtml Strict

我的梦境 提交于 2019-12-24 13:27:33
问题 in my form i have this code <form action="mail.php" class="contactForm" name="cform" method="post"> Problem is when i validate it tells me "name" is not allowed on xhtml strict. is there a way i can use soem thing else for this. thanks 回答1: You should be using id as a unique identifier instead of name . Is there a particular reason that you need to set the name though? You can just remove the name declaration unless there's a reason for it. 回答2: Use ID. <form action="mail.php" class=

how to extract an XPATH from an html page with BaseX commandline

不问归期 提交于 2019-12-24 10:46:13
问题 I would like to extract the XPATH //DIV[@id="ps-content"] out from this web page: http://www.amazon.com/dp/1449319432 (saved as a local file) I would like to do it with a single line of command-line with one of the best parsers, like BaseX or Saxon-PE. So far the shortest solution that I (seemed to have) found is with these two lines: java -jar tagsoup-1.2.1.jar <page.html >page.xhtml" basex -ipage.xhtml "//DIV[@id='ps-content']" but all what it returns is an empty line, instead than my

PHP & MySQL deleting multiple rows script problem

痞子三分冷 提交于 2019-12-24 10:44:59
问题 I'm trying to delete two tables rows from two different tables at once when a user clicks the delete button, but for some reason I cant get the table rows to delete can some one help me figure out what is wrong with my script? Thanks Here is the MySQL tables. CREATE TABLE cases ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, file VARCHAR(255) NOT NULL, case VARCHAR(255) NOT NULL, name VARCHAR(255) NOT NULL, PRIMARY KEY (id) ); CREATE TABLE users_cases ( id INT UNSIGNED NOT NULL AUTO_INCREMENT,

Rotate text with CSS/Javascript/Jquery

不打扰是莪最后的温柔 提交于 2019-12-24 10:18:34
问题 I have tried this to rotate text to 270 Degree -webkit-transform: rotate(-90deg); -moz-transform: rotate(-90deg); filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); Working Perfectly in Firefox, Google Chrome, Safari working with some spacing issue in IE 8,7,6 but its really Sucks in OPERA Any Idea??? 回答1: It works for me. Using Opera 11 on Linux Sample: http://www.inwardpath.com.au /* This wrapper is required to rotate the text around the left edge */ #page_title { overflow:

Import code from extarnal file to HTML

一曲冷凌霜 提交于 2019-12-24 10:05:08
问题 Say I have a text file (test.txt) that contains only the following line: <h1>Text text text text text</h1> Is there any command that I can call the contents from this text file in an HTML document, so the contents in the text file imports where the call is made, every time the side shows? Example: ?????"/test.txt"????? 回答1: I believe you mean to ask whether there exists a "command" in HTML which allows you to include a file. In pure HTML by itself there does not, but the Apache server-side

What are the longest and shortest HTML character entity names? [closed]

会有一股神秘感。 提交于 2019-12-24 09:06:05
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 7 years ago . There are a million cheatsheets all around the tubes that enumerate to different levels of comprehension the character entities specified by various

Element “frameset” is not supported from visual studio 2010

拜拜、爱过 提交于 2019-12-24 08:57:55
问题 I have a plain html file like this: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> </head> <frameset rows="*"> <frame name="inner" src="inner.htm" /> </frameset> </html> In visual studio 2010 I get warnings "(XHTML 1.0 Transitional): Element 'body' occurs too few times" and "(XHTML 1.0 Transitional): Element 'frameset' is not supported.". However the w3c

special characters in embedded javascript

╄→尐↘猪︶ㄣ 提交于 2019-12-24 08:46:29
问题 I have some javascript that is embedded in the html file like this <html> <head> <script> // and the script runs here </script> </head> <body></body> </html> And it has a line like this if((os == 'Mac')&&((br == 'Safari')||(br == 'Chrome'))) Everything goes OK (which means the script works), but the validator is screaming: ... character "&" is the first character of a delimiter but occurred as data ... This message may appear in several cases: -You tried to include the "<" character in your

How to make HTML underneath overlapping Flash accessible

…衆ロ難τιáo~ 提交于 2019-12-24 08:28:21
问题 I have a Flash header with a transparent background contained inside of a relative positioned div with a z-index of 10. The resulting effect allows my Flash movie with a transparent windowmode to overlap and hover over the HTML content. Unfortunately, the HTML that is underneath the invisible Flash is not accessible. For example, the anchors will not work. An example can be found here. Notice how the very top of the anchor links don't activate the hover state? I've seen Flash rollovers

Which markup language to use for the new Web site? (Desktop & Mobile)

浪子不回头ぞ 提交于 2019-12-24 08:04:10
问题 I need to redesign the old site and was thinking what would be the best Web markup language to use. Here are my two questions. Please help me to find the right answer to both or any of them: What's the optimal Web standard for desktop users? HTML? XHTML? Anything else? What version of it (e.g. "XHTML 1.0 Transitional")? What is the optimal markup language for mobile users? The site I'm going to redesign is about applications for mobile devices. So, naturally I have a lot of mobile visitors.