xhtml

XPATH not working on the HTML

别来无恙 提交于 2019-12-11 19:24:01
问题 I have a code that reads an HTML file from my local web server localhost and then converts it to XHTML with tidy . Then i load that XHTML into my DOM . the code looks like this <?php function getXHTML($html) { $options = array("output-html" => true,"quote-nbsp" => true, "drop-proprietary-attributes" => true,"drop-font-tags" => true,"drop-empty-paras" => true,"hide-comments" => true); $tidy=new tidy(); $xhtml=$tidy->repairString($html,$options); echo $xhtml; return $xhtml; } $content = file

css, button selection and html tags

若如初见. 提交于 2019-12-11 18:32:30
问题 <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server"> <script src="http://ajax.aspnetcdn.com/ajax/jQuery/JScript.js" type="text/javascript"></script> <script src="http://ajax.aspnetcdn.com/ajax/jQuery/fns.js" type="text/javascript"></script> <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.5.min.js" type="text/javascript"></script> <script type="text/javascript"> $(function () { $('li').removeClass("first active first-active"); $("a[href='DietPlan.aspx']").parent()

How to disable autoplay of the movie in XHTML transitional

让人想犯罪 __ 提交于 2019-12-11 18:28:50
问题 Here's my code <object type="application/x-shockwave-flash" style="width:425px; height:349px;" data="multimedia/1.mp4"> <param name="movie" value="multimedia/1.mp4" /> <param name="autoplay" value="false" /> <param name="allowFullScreen" value="true" /> </object> When i open my website, the movies are automatically playing. What is the solution so i can disable the autoplay of my movies in my website that use XHTML transitional? 回答1: I'd remove the autoplay attribute, since if the browser

Using mark of the web with MathML

試著忘記壹切 提交于 2019-12-11 18:28:11
问题 I have a program that is creating MathML documents on users computers that I would like them to be able to open with Internet Explorer. In order to do this you have to download the MathML player. This works fine, but every time the user tries to open a document they are shown a banner that says: To help protect your security, Internet Explorer has restricted this webpage from running scripts or ActiveX controls that could access your computer. Click here for options... I have done some

Frameset problem in html

橙三吉。 提交于 2019-12-11 17:49:23
问题 I have created a website with multiple no of pages with in a same folder (i mean all those pages are with in a folder). I have developed this design under the frames. I have used 3 frames top for banner, left side for menu and and right side for main page. While clicking the left side menu frame i just navigate the main page into different page. My problem is while clicking the menu, i just change the target of the right side main frame. Is it possible to change the URL while navigating to

Input text without previously entered value [duplicate]

别说谁变了你拦得住时间么 提交于 2019-12-11 17:27:07
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: How do you disable browser Autocomplete on web form field / input tag? I entered a value in input text for example: email@email.com, after when I entering another value same area, seems the previously entered data (email@email.com).But I don't want to appear it. How can I do this? 回答1: You could use "placeholder" <input type="text" placeholder="email@email.com"> 来源: https://stackoverflow.com/questions/13607378

XHTML 2.0 Vs HTML 5 [duplicate]

时光怂恿深爱的人放手 提交于 2019-12-11 17:13:53
问题 This question already has answers here : Closed 10 years ago . Duplicate: Why are (X)HTML 5 and XHTML 2 separate standards? HTML 5 versus XHTML 1.0 Transitional? HTML vs XHTML does it still matter? There appears to be a unified opinion that the developments in HTML 5 and support by browser vendors of HTML 5, make the adoption of XHTML 1.0 with hopes of the day of XHTML 2.0 a bad choice. For this reason I have decided for my most recent project to use a strict HTML 4.01 doctype, which has

Character Entity References - numeric or not?

蹲街弑〆低调 提交于 2019-12-11 15:29:17
问题 So, i know that I can represent an apersand as & or & . I have found that at least one method of parsing XML does not allow for the abbreviation-based style - only numeric. Is there a best-practice? I want to instruct my team to use the numeric versions because of my experience, but one instance hardly seems like enough reason to convince them. Can anyone provide any other insight as to which method to favor? 回答1: XML only has a small set of these symbolic entities, for amp, quot, gt and lt.

How can I download a file with PHP or HTML?

守給你的承諾、 提交于 2019-12-11 15:12:52
问题 I am making a file hosting website and am about 95% done but have one issue. When the user clicks their file to download it, the file just appears in the browser. I need to know a way where I can define the $file variable in the while loop to be downloadable. The variable that I need to make downloadable is surrounded by asterisks(*) LOOP: $directory = 'uploads/' . $_SESSION['user'] . '/'; if ($handle = opendir($directory)) { echo '<h3>Your files are listed below</h3>'; while ($file = readdir

Eclipse jsf managedBean javax.el.PropertyNotFoundException

和自甴很熟 提交于 2019-12-11 15:07:13
问题 In a simple non maven jsf project i'm having this error SEVERE: javax.el.PropertyNotFoundException: /form_tour.xhtml @13,49 value="#{tourBean.kindOfTour}" Caused by: javax.el.PropertyNotFoundException: Target Unreachable, identifier [tourBean] resolved to null . I checked the bean class and the xhtml and everything looks fine to me. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999