google-chrome-devtools

div not being selected when pound sign is appended

只谈情不闲聊 提交于 2019-12-12 03:33:56
问题 For debugging purposes, this is what I tried to type in Chrome Console: $("#loading") > null But if I do this, it correctly retrieves the div: $("loading") > <div id="loading" align="center" style="display: none;"> I'm using jquery-1.4.1.min.js. <script type="text/javascript" src="../../js/jquery-1.4.1.min.js"></script> This doesn't make sense to me, why can I not select a div by # sign but I can when I exclude it? Edit: Sorry, huge fail on my part. I meant the other way around. Please see

How can I determine the cause of the Internal Server Error resulting from my Ajax call?

喜夏-厌秋 提交于 2019-12-12 03:28:45
问题 In my ASP.NET MVC app, with this AJAX call: $.ajax({ type: 'GET', url: '@Url.Action("GetUnitReportPairVals", "Home")', data: { unit: unitval, report: rptval }, // data: model, contentType: 'application/json', cache: false, success: function (result) { alert(result); }, error: function (result) { alert('failed'); alert(result); } }); ...calling this Controller method: public JsonResult GetUnitReportPairVals(string unit, string report) { int rptId = GetReportIDForName(report); DataTable

How to organize local folders in Chrome DevTools workspace?

流过昼夜 提交于 2019-12-12 03:11:51
问题 I am using Google Chrome DevTools, and I have to support several projects. I am often editing my source files directly in DevTools, so I added my local source folders to the DevTools workspace. What is bothering me: there seems to be only one workspace, and DevTools only shows the names of the folders I added - which are just 'src' or 'scss' most of the times. So with every new project it becomes increasingly difficult to pick the right folder when I want to open a file. Is there any way to

How to force Chrome (or any other WebKit browser) not to use “default” tag names?

女生的网名这么多〃 提交于 2019-12-12 02:55:42
问题 I was having issues because of Chrome automatically referencing DIV... It works that way in Safari (desktop and mobile), but not in Firefox. See image: See Fiddle (open in Chrome, then in Firefox): http://jsfiddle.net/stefek99/Sqcff/ The question is - how to disable this feature ? I would really like to develop in "strict" mode without any Google quirks, just to make sure my code is cross-browser compliant. 回答1: This is a known 'problem', however I have not been able to find a reliable method

multiple messages are recieved on content page when just one is sent?

独自空忆成欢 提交于 2019-12-12 02:52:51
问题 when i send on message even then four times the alert is triggering ! don't know what is wrong ! I am adding the manifest too. background.js : chrome.runtime.onMessage.addListener( function(request, sender, sendResponse) { if(request.method == "123") { chrome.tabs.query({active: true, currentWindow: true}, function(tabs) { chrome.tabs.sendMessage(tabs[0].id, {method: "xyz"}); }) } }); content.js : chrome.runtime.onMessage.addListener( function(request) { alert(request.method); if (request

Issue with chrome in MVC application of calling Index multiple times

♀尐吖头ヾ 提交于 2019-12-12 02:29:53
问题 I am newbie with MVC applications and building MVC3 applications, I am facing very strange behaviour with chrome, in that it is calling Index() method multiple time (12 times)! I have tried looking in the console window and it shows warnings about images (seen below). There is no problem at all in Firefox and it is working as expected, but chrome is creating the above problem. Please help me to find possible solutions with chrome if you have encountered this problem. Also please help me to

Detect if extension is enabled on Chrome browser

为君一笑 提交于 2019-12-12 01:52:53
问题 I am writing a small plugin for Wordpress and I need to detect whether a chrome extension is "Enabled". At the moment I am able to detect if an extension is "Installed" only by connecting to one of its resources, However, I need to detect if the installation is "Enabled" or "Disabled" Is this possible guys? Thanks for your time. 回答1: You have a few options. Make an extension of your own that declares the management permission and then reports the results of get or [getAll][1] to your plugin,

Access 'Chrome dev-tool mobile emulator' from custom extension

心不动则不痛 提交于 2019-12-12 01:41:09
问题 I am trying to access 'Chrome dev-tool mobile emulator' from custom extension . I am aware that I cant open dev-tool from custom extension. Is there any way to trigger mobile emulator from the custom extension? If yes guidance/tutorials will do great help. What I need - I select a mobile device from my extension and browser will change viewport, user-agent, sensor to emulate selected device. In short I need replica of dev-tool mobile emulator. Any help/link/code/extension link will do great

Is it possible to detect when an inline style property was set?

喜欢而已 提交于 2019-12-12 01:34:15
问题 I have a bug where a certain div is having its style.height property being set to 0px by Javascript but I have no idea what code is doing this unwanted setting. Is there to tell the debugger to halt execution when the inline height property is set or for me to at least have an event fire when this occurs? The problem is occurring in a thorny inner loop and I don't want to have to do a manual "binary search" unless I really have to. (Specially since there is a chance that the culprit code

Javascript only works after opening developer tools in chrome

陌路散爱 提交于 2019-12-12 01:19:27
问题 I have the same problem as in here: Why does JavaScript only work after opening developer tools in IE once? except that mine is with chrome 44. JavaScript code - mainly XHR and setInterval - works perfectly - when the developers tools are open (could be only XHR issue) This is a web app - i.e: a pop up widow, 300px in width, that is stationed next to whatever the user is currently working on. the solution here: AJAX works if chrome dev tools open but not if chrome web tools closed? does not