xhtml

Detect XML or SGML parser used in JavaScript

孤街浪徒 提交于 2019-12-13 09:49:33
问题 HTML is a subset of SGML. XHTML is a subset of XML. Both use separate parsers. Presuming an HTML document is correctly served as text/html and an XHTML application is correctly served as application/xhtml+xml is it possible to detect which parser is used to render the page and if so how? I do understand exactly what I am asking. Please do not insist on asking why I want to do this. I'd rather not receive answers suggesting that I do not use one language or the other. This is to avoid debate

How to redirect URL to mobile version?

人走茶凉 提交于 2019-12-13 08:24:54
问题 I want to redirect some URL to mobile version, if the user agent is a mobile. Example : klikkarir.com/jawa-pos/5215/lowongan-call-center-accounting-administration-pt-asia-teleservices-januari-2010.html will redirect to : m.klikkarir.com/5215/lowongan-call-center-accounting-administration-pt-asia-teleservices-januari-2010/ somebody help me. 回答1: I use http://detectmobilebrowser.com, and found it is the quickest and easiest way. It works quite well. This site generates server scripts

Is there any PNG-fix for IE 6 and without modifying current HTML, CSS and image name?

被刻印的时光 ゝ 提交于 2019-12-13 08:06:27
问题 Is there any PNG-fix for IE 6 and without modifying current HTML, CSS and image name? any javascript way. I can add any thing in <head>........</head> but can't modify anythings inside <body>.....</body> . in one shot i want to make transparent all png transparent. 回答1: As I just learned, this script will make IE behave like a standards compliant browser, including PNG fixes. 回答2: OK here's a question: if you can't modify the HTML, CSS or image at all, what the heck can you modify? The raw

Sending a delte.php properly to my db

别等时光非礼了梦想. 提交于 2019-12-13 08:05:44
问题 I have a function on my that has a delete button to erase comments. I have the button all linked up and ready to go. I just don't know what I should put on the 'delte.php' script I am creating, and what to tell it php wise to send to the db to make the status dead. as well as deleting the comment off of the page. Thanks 回答1: Your php script would contain a query to delete the comment mysql_query("delete from comments where id = $id"); Send a request using Ajax which won't reload the current

Can we make onclick effect in css like we have :hover? [duplicate]

心已入冬 提交于 2019-12-13 07:46:28
问题 This question already has answers here : Can I have an onclick effect in CSS? (12 answers) Closed 12 months ago . I'm making a Accordin for a site when i will click on + icon then another div will show. i'm using jquery for this. but is this possible in css to open a div on click on another element 回答1: With strictly CSS, no this isn't possible. With jQuery: $("#idOfPlus").click(function() { $("#myPlusDiv").show(); }); 回答2: It is not possible using plain CSS. You can opt for any javascript

is font/text sizing in % more accessible and manageble than em?

China☆狼群 提交于 2019-12-13 07:28:46
问题 Both article are proving this. http://www.kyleschaeffer.com/best-practices/css-font-size-em-vs-px-vs-pt-vs/ http://www.maxdesign.com.au/presentation/relative/ I want to know SO users view? 回答1: The only differences between % and 100 * em (for setting font size) is that there are a few browser bugs relating to the use of em units (which can be worked around with an explicit body { font-size: 100%; } and then using em units thereafter.) The kyleschaeffer article is, frankly, rubbish. It leaves

Unable to populate values obtained from ajax call using PrimeFaces

走远了吗. 提交于 2019-12-13 07:26:53
问题 Hi I have made an ajax call using primefaces [p:ajax]. The call to the listener was successful and it returned the required values. To update these properties in xhtml, I have checked the DOM source, to find out the exact ID of the column, using which the column or property would be updated. But, in this case the fields are not getting the values. The code I used in this case is <p:dataTable id="table1" var="recepit" rowIndexVar="rowIndex" value="#{ReceiptDetailsBean.iterativeList}"

Loading assets in a noscript element

对着背影说爱祢 提交于 2019-12-13 07:16:19
问题 I expect the standard behavior would be to not load any assets in a <noscript> element, and a quick cursory test in FF and Chrome proves this to be the case. However, are there any situations where assets (e.g. an image) in a <noscript> element, would be loaded when scripts are enabled? 回答1: According to W3 specifications : The NOSCRIPT element allows authors to provide alternate content when a script is not executed. The content of a NOSCRIPT element should only be rendered by a script-aware

Jsoup parsing HTML issue

我只是一个虾纸丫 提交于 2019-12-13 06:39:23
问题 I am new to Jsoup and am trying to parse a website, with the following html, and retrieve the value of the text input in the html below, specifically the "value=14" which I then want to display that value (the number 14 in this case) as a string in a text view in my android app. I have tried multiple ways but it hasn't worked, I just receive "null". Please show example. <div id="PatientsCurrentlyInClinic" style="display: none"> <!-- Messages are shown when a link with these attributes are

Google Analytics _trackEvent doesn't work with XHTML?

[亡魂溺海] 提交于 2019-12-13 05:16:43
问题 I have a php file generating XHTML content and I use <?php header('Content-type: application/xhtml+xml');?> at the top of the page to do so. However, my google analytics event tracking absolutely refuses to work when that tag is present. If I remove that tag, event tracking begins to fire again. I am not altering the tracking code at all, just removing that one php tag defining the page as XHTML. <a href="some-file.zip" onClick="_gaq.push(['_trackEvent', 'Item', 'Download', 'file-name']);"