google-chrome

Chrome: Disable same origin policy

Is there a way to disable the same origin policy on Google's Chrome browser? This is strictly for development, not production, use. ...

script doesn't work as chrome plugin

I have a simple JavaScript script: <style> body { min-width:357px; overflow-x:hidden; } img { margin:5px; border:2px solid black; vertical-align:middle; width:75px; height:75px; } </style> <script> function dynamicTag() { var request = "http://localhost:8000/iStatus/add/12345;dfsdfsd;dsfsdfsd;1"; var head = ...

jQuery/iframe not working in Chrome

I have created a facebook fan page here: http://www.facebook.com/apps/application.php?id=120196931351044&amp;v=app_120196931351044 It incorporates iframes to call certain pages/image galleries which use jquery. Everything works fine in all browsers except for Chrome. Nothing shows up in Chrome from the iframes, just empty white backgro...

Google Chrome gives "missing plug-in" for Flash even with Flash installed

I'm having issues with Google Chrome (5.0.375.70) and an expandable Flash ad: http://www2.okblitz.com/adtest.html When "Click to Expand" is clicked on the closed ad, Chrome displays a "Missing Plug-in" error. The expanded ad creative itself loads fine as can be seen when it opens expanded by default. The script itself is using jQuery ...

Implementing a WebSockets server: WebKit sends invalid UTF-8 Strings... sometimes

I'm trying to implement a WebSockets server in C and so far, everything seems to be fine. I tested my implementation on Mac OS X 10.6.4 using Safari Version 5.0 (6533.16) and Google Chrome 5.0.375.70. As they both use WebKit, they unsurprisingly both yield the same results: Handshake works and sending UTF-8 string from and to my server w...

Prototypes cumulativeOffset().top Google Chrome bug

For example if I go to a page $('element').cumulativeOffset().top returns 400 if I refresh this page it retrns 100 for the same element, only in chrome. Any idea how to solve this? ...

Examples of -webkit-appearance settings

Does anyone know of a website or blog that demonstrates - with functioning examples - all the various -webkit-appearance CSS settings? The trial and error approach is getting old. Bonus points if there's further explanation of various of these -webkit styles ...

Google Chrome extension - create and remove a tab automatically

I am creating an extension that will launch an external script based on highlighted text. So, far, the script works, except I am having issues closing the newly created window. In my background.html, I have the following: <script> function executeScript(selection) { var queryText = 'script:' + selectedText; chrome.tabs.create({url...

Post/Redirect/Get in Webkit causes a full page reload

It seems that in Webkit-based browsers (Chrome and Safari) when a Post/Redirect/Get is performed on the server, the entire page (html + images + css, etc.) is redownloaded. It appears the same as if you reloaded the page. There's been a question (and somewhat of a solution) posted in the Google Chrome Help: http://www.google.com/support...

Chrome, javascript Date and toLocaleString()

Why doesn't Chrome specify AM or PM when displaying a date by using date.toLocaleString() ? The string I get is Fri Jun 25 2010 11:21:09 GMT+1000. While IE returns almost the same string but with AM after the time. Is there any method on the Date object I can call to check whether it's AM or PM and, more importantly, check whether user'...

Changing background with jQuery getting stuck or can't update img's src attribute

I've spent a few hours now trying to figure this one. I've got a store display that cycles through properties and I've knocked up a simple gallery sort of script. For the last week it has worked beautifully. I went in today to tinker some unrelated JavaScript (but on the same page) and now there is an issue. To make the images fade to...

Extract and modify module content using module chrome in Joomla

I need to extract menu items using module chrome from mainmenu module output: <ul class="menu"> <li id="current" class="parent active item1"><a href=""><span>Menu item1</span></a> <ul> <li class="item1"><a href=""><span>Menu Item</span></a></li> <li class="item2"><a href=""><span>Menu Item</span></a></li> <li class="item3"><a href=""><s...

Speed Tracer AND profiles in Chrome?

Has anybody been able to get Speed Tracer and profiles working in Chrome? To use Speed Tracer I have to install "development channel" Chrome, which reinstalls the stable version. And the dev. version seems to ignore --enable-udd-profiles, i.e. Ctrl+M does nothing. I'm fighting the latency and I was hoping Speed Tracer would help me und...

align left and right with float: works in FF/IE but not in Chrome?

I'm using this .align-left { float: left; width: 49%; } .align-right { float: right; width: 49%; text-align: right; /* depends on element width */ } With this html: <span class="align-left">this shows to the left<span><span class="align-right">this to the right<span> And it works fine in IE/FF but not in Chrome...

jquery: Windows Google Chrome does not trigger event in iframe

So, I'm working on a WYSIWYG editor with an already setup Grammar, etc. I've been tasked to add copy and paste functionality for cross program. The code I have works in Google Chrome on Ubuntu, Firefox in Ubuntu and Windows, but not in Chrome on windows. I've tracked down the problem to something basic. When the paste command is sent (t...

Google Chrome form element reset not working

I am trying to clear the values contained within a form using an HTML input type reset. It seems fine and resets the values in Safari and Firefox, just not in Chrome (Mac OSX). Does anyone know a way around this without writing javascript to do it? (I have done it this way before but want to avoid it) <form ... > <input type="text" ....

Chrome Userscripts

I'm having a problem with a Userscript in chrome. I have been using a version of this extension in Greasemonkey for a long time now, but I can't figure out how to parse through a NodeList in Chrome. Here is the code as it is in Greasemonkey (please note that the code on the site is really bad, so that accounts for a lot of my code: fo...

height 100% in chrome

I'm having problems with a sidediv that wont get the height to 100% in chrome. It works just fine in FF. Im using html, body { padding: 0px; width: 100%; height: 100%; } #div { min-height: 100%; } Why is that ? ...

Is it possible to determine a tab's opener within a Google Chrome extension?

I am looking for a way to determine a given tab's opener (parent tab) within a Google Chrome extension. I've looked at the documention for Tab but there doesn't really seem to be anything that would yield this information. http://code.google.com/chrome/extensions/tabs.html I've tried injecting this content script into pages (thinking I...

What features does Firebug have that Chrome's Developer Tools does not have?

I'm a novice web developer, and I've had Firebug recommended for debugging several times. So far, however, I've just been using Chrome's built-in "Developer Tools". It seems to do everything that Firebug does, and is cleaner and more organized as a bonus. As I get more advanced in my debugging, are there features that Firebug has that I...