google-chrome

Google Chrome Plugin: How to detect URL of selected tab...

I am trying to attempt my first Google Chrome Extension and have a question. My end goal is to be able to select a button which will perform the following: Grab the current URL of the selected tab (Ex: www.google.com) Open a new tab using the URL from step 1 and appending a query string to the end (Ex: www.google.com?filter=0) Curre...

Is there any script debugging tool for Internet Explorer and Google Chrome?

I have tools like firebug and web developer to debug the code with firefox browser is any similar tool we can use with google chrome and internet explorer ...

Web Browser-File System Integration

Hi I was reading about this old project by Microsoft in 96 called Windows Nashville. There wasn't much about it, but what interested me was the ability to, say, replace your wallpaper with a dynamic webpage, and explore the Web from your desktop, literally. It wouldn't have been much with IE 3.0, but I think it's a shame they didn't dev...

Why does my contact form render incorrectly on windows browsers?

I have created a contact form on the contact us page of a website I am building. Mac browsers render it properly, so does IE7 AND IE8 on Windows. FF, Chrome and Safari have issues with spacing on the Windows platform. My code is listed below; <form action="" method="post"> <fieldset id="fs1"> <div id="formLeftCol"> ...

Google Chrome Plugin: How to get domain from URL (tab.url)

Using the Google Chrome API tab.url value what is the best method to get just the domain from the entire value? In JavaScript I would use 'window.location.protocol' & 'window.location.hostname'...for example something like this: var domain = window.location.protocol + "//" + window.location.hostname; But that gets the extension dom...

Where's the source code to the native PDF viewer in Google Chrome?

Can't seem to find it in trunk. Is this actually part of the open-source Chromium project? Or is the source to this not actually released? Only mention I could find: http://www.listware.net/201007/chromium-discuss/93274-chromium-discuss-chrome-pdf-viewer-source.html ...

Javascript works in FF and IE .. but Chrome says "cannot call method of null"!

The code that contains the error is: var Slide = new Class({ initialize: function(triggers, panels) { this.triggers = $(triggers).getElements('a[rel=content1-1]'); this.panels = $(panels).getElements('ul[class=rel-content1-1]'); this.active = -1; this.toggle(); }, ... }) This is called from late...

Chrome Extension: DOM traversal

I want to write a Chrome extension that looks at the HTML of the page its on, and if it finds eg <div id="hello"> then it will output, as a HTML list in the popup, 'This page has a friendly div' and if it finds eg <a href="http://bananas.com"&gt;I am married to a banana</a> then it will output 'This guy is weird.' So in other words, sea...

How do I perform a shell execute in a chrome extension?

I'm not finding a way to do this in the chrome.* API or even the experimental. It doesn't run through wscript so ActiveXObject("Shell.Application") isn't allowed. I fear that my only option is to build a dll with NPAPI but I wanted to see if there was a simpler way. ...

Using HTML DOM in google chrome extension?

Can you use Html DOM in google chrome extension to... 1) write/Auto fill in a form? 2) Read values in label? Textboxes? And use them in your program? ...

jQuery XML Parse (with Ajax) Does Not Work in Chrome (but works in IE, FF, Opera, Safari)

Hi, I am using jQuery.ajax to parse some xml from a file. Everything works fine in IE (6,7,8), Firefox, Opera and Safari, but fails with Google Chrome. Here is the code: /* ... */ this.loadXml = function() { $.ajax( { type: "GET", url: "some_file.xml", dataType: ($.browser.msie) ? "text" : "xml", success: function(xml) { ...

Chrome V8 Bug? Function Acting different after being called a 2nd time.

Please take a look at the following JavaScript. I've taken stuff out of it, so you may focus on the essence of the problem. You'll notice that I call the prepPath function twice in a row, passing in the exact same string. In firefox and IE8, this function alerts true each time (as expected). But, in Chromium 5.0.375.127 (55887) Ubuntu 1...

Chrome view-source versus POST

When you ask Chrome to View/Source, it resubmits your URL as a GET, even if it got there in the first place as a post. Is there some way around this for those of us debugging JAX-RS services invoked from forms that can't work with GET? ...

CSS image down-scaling

Hi, I'm putting together a book flip where I flip pages using CSS, JavaScript and HTML. It works very well, except for this one thing. Every image has a block-level parent. The block-level parent's dimensions has the same ratio as the image but it's scaled down to fit inside the window. Every image has a width:100%; and height:100%; de...

google chrome debugger - Problem with adding breakpoints

The script file I see in Google chrome is shown in single line initially. When I double click on that file, it expands to the orignal length and When ever I try to add a brakpoint it is added at the first line. Do you know how to solve this. ...

[NPAPI] NPN_MemAlloc after NPN_MemFree screws the returning data to Google Chrome

Hi, I've finished my NPAPI plug-in and it works great in Google Chrome but there's a strange problem. The problem is that I've coded a method in the plug-in that returns a string to the browser. In order to do so, you have to allocate a memory in the browser and copy the resulting string to it. Something like: bool ScriptablePluginObje...

Chrome and Safari add 'border line' to img with css fixed height and width

I have a small problem with rendering a img tag with an associated with a class. I've recreated the issue with a simple html page. <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Test for image problem</title> </head> <body> <style> .image { float: left; cursor: pointer; height:15px...

Has anybody used Google 'Omaha' (their auto-update engine for Chrome)?

Google have open-sourced the auto update mechanism used in Google Chrome: http://code.google.com/p/omaha/ It seems quite complicated and difficult to configure for anybody who isn't Google. Has anybody used Omaha in a their project? If so, would you recommend it? ...

chrome.extensions.onRequest.addListener won't debug?

I've searched everywhere for a solution to this...even Google's own code example doesn't work. Someone please explain to me how to debug into event listeners or at least how to make Console.Log() work! Looking at Google's example : http://code.google.com/chrome/extensions/messaging.html Here is what I'm testing...on my background.js (r...

Box Shadows in CSS

This is not a question, but just a rant. Or maybe a question... or maybe I just don't know much about box shadows.. In order to use box shadows in CSS3 in different browsers, here what I have to do: -webkit-box-shadow: 0px 0px 10px #676767; -moz-box-shadow: 0px 0px 10px #676767; box-shadow: 0px 0px 10px #676767; Is there anyone else ...