ie-developer-tools

console.log() is defined but doesn't log in IE - empty console

时间秒杀一切 提交于 2019-12-23 18:49:10
问题 Javascript on a page in Internet Explorer (8 and 9) with Developer Tools open reaches console.log() , which is defined - but nothing appears in the actual log . Things tried: Double-checking with alert() s that console is defined and that console.log is a function. Checking with alert() s before and after that the code does reach the console.log() line, Checking code for any IE fallbacks like if(ie){console={log:function(){}}} , removing links to libraries and checking code snippets for

Cookie set for subdomain, but IE Developer Tools show cookie at root domain. What am I missing?

≡放荡痞女 提交于 2019-12-23 10:26:17
问题 We have a number of sites hanging off a root domain. E.g: dev.mydomain.co.nz test.mydomain.co.nz www.mydomain.co.nz I monitor my connection to dev.mydomain.co.nz with Fiddler and receive a cookie with a header like: Set-Cookie: mytest=blah; domain=dev.mydomain.co.nz; path=/ Then in IE10 I use F12 Developer Tools, then select Cache - View cookie information. It shows me this: NAME mytest VALUE blah DOMAIN mydomain.co.nz PATH / EXPIRES At the end of the Session Where'd the "dev" subdomain go?

IE8 forces compatibility mode when inserting data into a div

你离开我真会死。 提交于 2019-12-22 10:56:25
问题 I've been fighting against IE8's compatibility mode all day and I'm about to chuck a brick at it. I have some code, which uses jquery 1.2 (yes it's old - can't change that), to search for some records in our web app. The results of the search can be clicked on to view the contents of the record (by using .animate() it opens a space under the row and creates another TR underneath and inserts HTML data from a json feed). In IE8, clicking on a result to view the content forces it to reload in

IE8 Developer Tools not displaying Style info

感情迁移 提交于 2019-12-22 06:27:20
问题 I'm running into an issue with IE8 developer tools where they Style information is not displaying in the pane when I select an element. It is definitely page specific as I can switch to another page and the styles will appear for that page when I select an element. Strangely, if I add an inline style to an element, the inline element will display in the style pane. The page finds the CSS files just fine since the page is rendering with the styles. Anyone else encounter such a problem? If it

Debug a modal dialog (showModalDialog) in IE

我的未来我决定 提交于 2019-12-20 10:18:35
问题 I want to debug (examine DOM, use the interactive JS console, etc) part of a web application that is inside a modal dialog that was created by showModalDialog() . I can't find a way to use the standard IE-8 developer tools for this; The dialog doesn't have a toolbar and the usual shortcut (F12) doesn't work. Another SO question (I unfortunately have lost the link to) suggested that the only solution is to (perhaps temporarily) replace showModalDialog() with an old-fashioned window.open() . If

console.time() in IE8 Developer Tools

时光总嘲笑我的痴心妄想 提交于 2019-12-20 08:50:01
问题 Is there an equivalent to console.time(''); console.timeEnd(''); in IE8 Developer Tools? 回答1: There isn't, but you can define it easily with JavaScript: // console.time implementation for IE if(window.console && typeof(window.console.time) == "undefined") { console.time = function(name, reset){ if(!name) { return; } var time = new Date().getTime(); if(!console.timeCounters) { console.timeCounters = {}; } var key = "KEY" + name.toString(); if(!reset && console.timeCounters[key]) { return; }

Displaying objects in IE Developer Tools console

非 Y 不嫁゛ 提交于 2019-12-18 11:47:35
问题 I'm debugging my web application in Firefox, Chrome and Internet Explorer. With the latter I'm using Developer Tools to debug my scripts. The problem I'm having is that when I write some expression in console window and it should return an object all I can see is a simple {...} which isn't really helpful. Is it possible to make it work similar to Firebug or Chrome console that actually display object content. Chrome is the best in this regard, because you can directly traverse the whole

jQuery attribute auto added to elements

白昼怎懂夜的黑 提交于 2019-12-17 12:47:28
问题 After using the IE8 built in Developers Tools for the first time, I noticed jQuery is attaching an attribute to some of my elements: alt text http://thebe.jtan.com/~vince/stack/jquery.PNG I've never noticed this before. In fact, this doesn't show up in Firebug... I'm only seeing it for the first time now in IE8 Developer Tools. Does anyone know what jQuery uses this for, and why it's hidden in firebug? 回答1: The jQuery source is pretty easy to read, and you can look at what the data function

jQuery attribute auto added to elements

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-17 12:47:09
问题 After using the IE8 built in Developers Tools for the first time, I noticed jQuery is attaching an attribute to some of my elements: alt text http://thebe.jtan.com/~vince/stack/jquery.PNG I've never noticed this before. In fact, this doesn't show up in Firebug... I'm only seeing it for the first time now in IE8 Developer Tools. Does anyone know what jQuery uses this for, and why it's hidden in firebug? 回答1: The jQuery source is pretty easy to read, and you can look at what the data function

Find attached / bound events of an element using Chrome Development Tools / Firebug / IE Developer Toolbar

☆樱花仙子☆ 提交于 2019-12-17 08:31:47
问题 When inspecting a page's DOM, I would like to know the attached event(s) of an element quickly For example, if a button has this HTML DOM <button id="button1">Click Me</button> And somewhere (not in a place that I know in advance) it has an event attached, e.g. $("#button1").click(function(){...}); I know it can be done programatically ( Can I find events bound on an element with jQuery? ) but is there a way using just one of the developer tools for Chrome / Firefox / IE to see a list of