w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
CSS selectors that is not applied if hierarchy contains an element?
How about using direct descendant selectors? > means it will select button tag, which is direct child to an element having class noGeneralStyles or generalStyles Demo .noGeneralStyles > button { color: black; } .generalStyles > button { color: red; }

Categories : CSS

Styles applied to multiple selectors won't work for both
This is not working Because :before is a pseudo-element, not a pseudo-class. So please don't used to this on input tag More info Go to here

Categories : CSS

Why are CSS rules with namespace-prefixed selectors not being applied to XSLT output?
This "issue" has nothing to do with xslt (at leased in the first place). If the css is not doing what you are expecting you have to consider the html (which is generated by your xslt). Because you are removing any namespaces prefixes there is not manespaces prefix in your generated hmtl. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title></title> <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8"> <style type="text/css"> aa:p{background: #00ff00;} </style> </head> <body> <p>aaa</p> <p>aaa</p> </body> </html> B

Categories : CSS

Group Concat Returns Duplicate Entries when applied on multiple columns
you can remove the duplicate using DISTINCT GROUP_CONCAT(DISTINCT b.name SEPARATOR ',') SQLFiddle Demo the reason for having duplicate values is because it happens that one of the records from the one table has multiple matches on the other table. see here.

Categories : Mysql

How to combine two multidimensional arrays with showing duplicate keys or if duplicate, must add the values
$array1 = array( 'a1' => array(200,300,300), 'a2' => array(100,600,200)); $array2 = array( 'a1' => array('gen','gen2','gen'), 'a2' => array('gen2','gen3','gen3')); $result = array('a1' => array(), 'a2' => array()); foreach($array2 as $k => $v) { foreach ($v as $k2 => $v2){ if (array_key_exists($v2, $result[$k])){ $result[$k][$v2] += $array1[$k][$k2]; } else { $result[$k][$v2] = $array1[$k][$k2]; } } } Output: Array ( [a1] => Array ( [gen] => 500 [gen2] => 300 ) [a2] => Array ( [gen2] => 100 [gen3] => 800 ) )

Categories : PHP

Hudson server running app engine, duplicate shell script executions result in duplicate property errors
It might be the case that the dev_appserver is already running and then you run it again with hudson job. The best way will be to stop the dev_appserver instance first and then pump it up again.

Categories : Python

Styles are not set in IE10
first you should avoid doing inline style settings. But I think you are setting an attribute, which is a deprecated way to apply the width to an element, it should be in a style rule. So in your css file (please avoid inline styles) create a class to set your with: .myInput250{ width:250px; } and in your webforms textbox declaration reference it:

Categories : Asp Net

MP4 not played in IE10
sApparently you can't override this in a location tag or even in your web.config like so: <staticContent> <mimeMap fileExtension="woff" mimeType="application/x-font-woff" /> <remove fileExtension="ogg"/> <remove fileExtension="mp4"/> <remove fileExtension="webm"/> <mimeMap fileExtension="ogg" mimeType="video/ogg" /> <mimeMap fileExtension="webm" mimeType="video/webm" /> <mimeMap fileExtension="mp4" mimeType="video/mp4" /> </staticContent> Instead, I had to add .mp4 under mime types in the GUI (this doesn't appear to have altered web.config at all) as a local definition: Confirmed with fiddler, the .mp4 is now served with a content type of video/mp4 (even though the staticContent tag was defined previously)

Categories : Asp Net

Best way to detect <= IE10
Use conditional comments for IE6-9 and a little custom function for IE10. For example: HTML: <!--[if lt IE 7 ]> <html class="ie6 ie"> <![endif]--> <!--[if IE 7 ]> <html class="ie7 ie"> <![endif]--> <!--[if IE 8 ]> <html class="ie8 ie"> <![endif]--> <!--[if IE 9 ]> <html class="ie9 ie"> <![endif]--> <!--[if (gt IE 9)|!(IE)]><!--> <html class=""> <!--<![endif]--> JS: if ($('html').hasClass('ie') || (Function('/*@cc_on return document.documentMode===10@*/')())){ isIE = true; }else{ isIE = false; } or you can just use: if (Function('/*@cc_on return document.documentMode===10@*/')()){ document.documentElement.className+=' ie'; } // Then.. if($('html').hasClass('ie')){..

Categories : Jquery

How to combine css selectors
You can use descendant or child selectors (technically "combinators") to combine the first part: document.querySelectorAll('.datagrid .even')[3].querySelectorAll('tbody tr') ...but it will make the browser work a bit harder than your code does, because the first part of your code (document.querySelector('.datagrid')) will stop looking when it finds the first matching element, and then look for .even elements only within that. The above looks for all .even elements that have .datagrid ancestors. So it may need to search more of the document. Most of the time that doesn't matter, but it's worth pointing out. The above also assumes that there are at least four .even elements in the first .datagrid. If there aren't, your code would throw an error (because of the attempt to call .querySelect

Categories : Javascript

Using CSS properties in CSS selectors?
The easy way is jquery - $("#dom_element").css("display") will return you the current display style of whatever you reference. There's a way to do it in flat js but jquery is easy - what you want to do here is iterate through the A B C D matched class elements until you get to the one you want. http://api.jquery.com/css/

Categories : CSS

What's the difference between 2 css selectors (one using > and one not)
The > indicates immediate nesting. The img is an immediate child of #someID. The first selector will affect all images anywhere within #someID. The second will affect only immediate children.

Categories : CSS

Non-public selectors
go to your project folder in terminal and type: $ find . | grep -v .svn | grep ".a" | grep -v ".app" | xargs grep hasPhotoType Source of inspiration from here: App rejected, but I don't use UDID

Categories : IOS

How to use CSS selectors in CSS3
There are two different levels of this: .row *:only-child Selects all children of .row that are the only child, where as .row > *:only:child Selects all the direct children of .row that are the only child. Note that you don't actually need the * as it will be implied if you just use the :only-child selector. Which would make your selector look like .row > :only-child. So, in the following example: <div class="row"> <p id="p1">Text goes here</p> </div> <div class="row"> <p id="p2"><span id="span1">Text</span></p> <p id="p3">More text is here</p> </div> The first selector will select #p1 and #span1, where as the second will only select #p1

Categories : CSS

Overlapping selectors in css
You can use the :last-child selector to target the last div and its containing <p> tags. footer div:last-child p{color:#f00;} Here is an example fiddle - http://jsfiddle.net/vuGpt/ And here is some further reading - http://www.w3schools.com/cssref/css_selectors.asp There's no real order to CSS selectors, except the order you create. The styles you define will be overridden if you select the same element later in your css. You just have to be aware of how you are selecting your elemnts. A general selector will be overridden by a more specific selector. For example if you defined the following p{color:#0f0;} Then this selector will be overridden by your more direct selector as defined above. To overcome this, you can add !important to your rules. That way you can be reasonably

Categories : CSS

Using CSS Selectors Incorrectly
First thing, IDs are meant for unique selector whereas class is for a group of elements. Update: First I missed to catch $ and #, which are not allowed. Option1: ID selector #ElementId { padding-right: 20px; } Option2: Using your div's ID or class #classID { padding-right: 20px; } Option3: Using Pseudo selector like JSFiddle, in your case you can try something similar to this. div:last-child span{ padding-right: 20px; } Still more options available.

Categories : HTML

Can you "and" jQuery selectors together?
Just use: $('.c.b') as your selector, here it is working: http://jsfiddle.net/BEGZy/1/ This selects an element with both .c and .b classes.

Categories : Jquery

Chain of selectors
Well from the small snippet of markup you've given, you can do it like this: $(".bar").text("Whatever you want it to say instead"); But if there are other elements that match .bar you will need to be more specific: // All of these would select that element $(".intro .bar") $(".foo1 .intro .bar") $(".intro > .bar") $(".intro:first-child .bar") If you need to select it relative to the .body element: // All of these would work $(".body").siblings(".intro").find(".bar") $(".body").parent().find(".bar") I think you get the point... we can't give you a proper answer unless you expand your question.

Categories : Javascript

CSS selectors priority
You can calculate the specificity of those selectors (here's a friendlier version): .menu > li has specificity 0,0,1,1 (11). ul > li has specificity 0,0,0,2 (2). .two has specificity 0,0,1,0 (10). The bold numbers are just the base-10 representations of the specificities. You won't always be able to write them that way, as 0,0,100,0 is also a valid specificity and must be represented in a base higher than 100. So back to your question: .menu > li > .two > ul > li, as class selectors are more specific than tag name (type) selectors.

Categories : HTML

Download URL history of IE9 and IE10
The use of the term "Downloads" is a bit ambiguous-- do you mean "File downloads" or "All content downloaded by the browser including images, CSS, JS, etc)? Internet Explorer stores virtually all of its records in databases (IE9 and below use memory-mapped files named index.dat, while IE10+ use a proper database engine). You should not attempt to manually interact with index.dat or the database; instead, you should use the appropriate APIs (e.g. the WinINET cache APIs or the IE History APIs) to collect data as needed.

Categories : C++

IE10 strips out hashtag from the URL
I'm actually surprised, that FF and Chrome don't strip it out. The URL hash (it's not a "hashtag") is purely a client side feature. It's normally not sent to the server at all. The browser requests the document from the server using the URL (without the hash) and then looks for an element with an ID matching the hash and scrolls to it. See e.g. Why the hash part of the URL is not in the server side? and similar questions.

Categories : Jquery

Need to work around selectSingleNode in IE10
As for http://doogalbellend.blogspot.fr/2012/04/cross-browser-selectsinglenode-for-xml.html Update – This no longer works in IE10, since selectSingleNode has been removed from the XML document returned from AJAX calls. This can be worked around by setting the response type of the XmlHttpRequest, like so : xhr.responseType = 'msxml-document'; Modifying your request by adding responseType: 'msxml-document' in the options should work.

Categories : Javascript

preserve-3d not working in IE10
preserve-3d is not supported in IE10, though it is in other current-version browsers. See http://caniuse.com/transforms3d. The workaround for this is stated on the MSDN website: Note:  The W3C specification defines a keyword value of preserve-3d for this property, which indicates that flattening is not performed. At this time, Internet Explorer 10 does not support the preserve-3d keyword. You can work around this by manually applying the parent element's transform to each of the child elements in addition to the child element's normal transform. Credit goes to Rob for discovering the link.

Categories : HTML

Capture microphone in IE10
I recognize that my answer a bit late, but... You may upload a blob to a server as following (Javascript): function saveBlob(blob) { var uploader = new CustomXMLHttpRequest(); uploader.onpartreceived = function (response) { // TODO: handle the server response here }; var base = window.location.toString(); var uploadService = base.substr(0, base.lastIndexOf("/")) + "/api/upload"; uploader.open("POST", uploadService, true); uploader.responseType = "text"; var form = new FormData(); form.append("fname", blob, "audio.wav"); uploader.send(form); } On the server side, you may treat this blob as a file attachment, e.g. (C#): public class UploadController : ApiController { public async Task<HttpResponseMessage> PostFile() { // Check

Categories : Javascript

IE10 following HTTP 302 redirect twice
I just found a solution (after seeing your posting). It's described here http://support.microsoft.com/kb/2691205 In my case, I was opening up a dialog (using jquery) that contained an iframe. Instead of putting the src in the iframe (eg ), I added some javascript to the dialog popup html = '<iframe id="myIframe">iframe not supported</iframe>'; $('#' + dialogId).append(html); $('#' + dialogId).dialog({ title: 'SOME TITLE', open: function () { $('#' + dialogId + 'iframe').attr('src', url); } //IE10 HACK to prevent double request!!!! });

Categories : Internet Explorer

IE10 CSS div float issue
Give clear: both (before float: left;) to #menu .nav-collapse. #menu .nav-collapse is present in your template.css file. (just elongating my answer) #menu .nav-collapse{ clear: both; float: left; }

Categories : CSS

Updating JS to work with IE10
getDocumentElement should be just documentElement Works on pretty much all version of IE according to this

Categories : Javascript

Alternative to readAsBinaryString for IE10
I found the answer here: var binary = ""; var bytes = new Uint8Array(buffer); var length = bytes.byteLength; for (var i = 0; i < length; i++) { binary += String.fromCharCode(bytes[i]); }

Categories : Javascript

AngularJS, Firebase, & IE10
I assume and hope you've solved this already, but anyway: you have one slash ('/') missing from the URL pointing to firebase.js which makes IE to trip over. Interestingly, other browsers seem to be able to load the script. You are also missing the starting <head> element.

Categories : Angularjs

IE10 Favicon Issue
I had the same problem a few days ago. If you change the path of the favicon using versions for example its clears all caching issues. <link rel="icon" href="/favicon.ico?v=1" type="image/x-icon" />

Categories : HTML

IE10 and cookies encoding
Per RFC 2109 (sec. 4.2.2) and RFC 2616 (sec. 2.2, 4.2), HTTP headers may only be transmitted in ISO-8859-1. (There is an exception, but this is primarily used for MIME and is pretty much never seen in HTTP.) Since ISO-8859-1 is really just a series of octets, the server can choose to use a different encoding (UTF8, in this case) if it wishes, since cookies are intended to be treated opaquely by the client anyway. Thus it should be round-tripped correctly in all cases, but if the client tries parsing the cookie it will get different results based on whether or not it is following the RFCs. Please try to avoid sending non-ASCII characters in headers if at all possible. The HTTP spec never really accounted for this properly, and as a result it causes pain and heartache when used in pract

Categories : Javascript

onmouseover not working in IE10?
As an alternate you can use some third party Javascript library like JQuery, YUI, etc to handle all the user events/clicks. Benefits of using 3rd party tool is you don't have to worry about compatibility issues and plus you will get lot of additional features. 1) http://jquery.com/ 2) http://yuilibrary.com/

Categories : HTML

CSS flexbox not working in IE10
Flex layout modes are not (fully) natively supported in IE yet. IE10 implements the "tween" version of the spec which is not fully recent, but still works. https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Flexible_boxes This CSS-Tricks article has some advice on cross-browser use of flexbox (including IE): http://css-tricks.com/using-flexbox/ edit: after a bit more research, IE10 flexbox layout mode implemented current to the March 2012 W3C draft spec: http://www.w3.org/TR/2012/WD-css3-flexbox-20120322/ The most current draft is a year or so more recent: http://dev.w3.org/csswg/css-flexbox/

Categories : CSS

DXFilter is somehow still working in IE10?
Obsolete does not mean removed. In this case, there are two reasons: The comment before the doctype triggers IE5 quirksmode The site is running in the Intranet Zone or Trusted Sites Zone If it is inconsistently appearing in the Internet Zone, there are two reasons: End-users can change these settings (for these document modes only) by using Internet Options to change the security settings for the zone in question. Administrators can also use Group Policy.

Categories : Internet Explorer

Iframe not resizing IE10
Sorry if I was too vague in the question. I did Google this and found similar situations but not exactly like mine. I alerted out the height var and checked with a conditional and like I mentioned the browser would only run the function on resize, all other browsers were fine. I don't know why but I decided to add empty parenthesis to the call in on the onload event and it worked. document.getElementById('frame').onload = resizeIframe();

Categories : Javascript

IE10 min-height not working
Add html to the top of the css file by changing the body part of the CSS to: html, body { margin:0;padding:0; height:100%; } You can also remove all of the min-height properties you have set as height:100% should cover it.

Categories : Internet Explorer

My web application is not working on IE10
Try this way's . 1: Update your server/website with the latest version of .net. The version you are using does not recognise the IE10 UAS. to debug your websites press f12>Script tab, click "Start Debugging" SCRIPT5009: 'WebForm_GetElementByTagName' is undefined use Tools>Choose User Agent String and change the UAS to IE9 and the above error message disappears indicating that the version of .net you are using on your server is using UAS sniffing. 2: Upgrade your website to .Net 4.0. Then publish your website to the server and change the application pool to .Net 4. 3: http://discusscode.blogspot.in/2012/12/fixing-aspnet-application-for-ie10.html 4: http://www.hanselman.com/blog/BugAndFixASPNETFailsToDetectIE10CausingDoPostBackIsUndefinedJavaScriptErrorOrMaintainFF5ScrollbarPositi

Categories : Asp Net

How to play .wav files with IE10?
Actually, I found out that I can use a simple <embed> tag. <embed src="path/mywav.wav" autostart=false width=1 height=1 id="wavfile" enablejavascript="true">

Categories : HTML

Bookmarklet not appending in IE10
It worked for me but I'm on IE8. Did you compress it first? javascript:(function(){var elem=document.createElement('script');elem.setAttribute('type','text/javascript');elem.setAttribute('src','http://www.joshdforbes.com/web2mobile/web2mobile.js?t='+(new Date().getTime()));document.body.appendChild(elem);})() I did get the warning message initially, but I ignored it and it worked.

Categories : Javascript

How to make this UserScript run on IE10?
I know this is an old thread, but I want to highlight that you can run Userscripts in IE with TrixieWPF45 (a clone of Trixie). It works with IE11 on Windows 8: http://sourceforge.net/projects/trixiewpf45/ It is not the simplest to use, ei. when you develop userscripts you have to reload them via the Trixie settings panel to refresh the scripts. Additionally you can use IE7Pro (disregard the name, it does work with later versions of IE) http://download.cnet.com/IE7Pro/3000-12512_4-10649334.html But it is a much larger plugin and more bulky

Categories : Javascript



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.