Showing posts with label google-chrome. Show all posts
Showing posts with label google-chrome. Show all posts

Monday, June 11, 2012

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.

Friday, June 8, 2012

Problems with jQuery getJSON using local files in Chrome


I have a very simple test page that uses XHR requests with jQuery's $.getJSON and $.ajax methods. The same page works in some situations and not in others. Specificially, it doesn't work in Chrome on Ubuntu.

Thursday, May 24, 2012

"Unsafe JavaScript attempt to access frame with URL…' error being continuously generated in Chrome webkit inspector


Chrome (or any other webkit browser) throws a ton of these "Unsafe JavaScript attempt to access frame with URL..." when working with the Facebook API for example.

Wednesday, May 23, 2012

Request Monitoring in Chrome


In Firefox, I use Firebug which allows me to view every http request my ajax calls are making. I've switched over my development to Chrome and am liking it so far. My only complaint, however, is that the developer tools don't seem to allow you to view each ajax request. I've had it happen once where the Resources panel showed multiple requests to the same resource, but it's only done it once and never again.

Monday, May 21, 2012

Facebook gives "Unsafe JavaScript attempt to access frame with URL' error in Chrome


My sample Facebook app was working great yesterday in Chrome. The page integrates Silverlight ad Facebook via the JavaScript SDK. I can check basic login status, login to Facebook, get your name and log out.

Sunday, May 20, 2012

Google Plus button code warns: "Unsafe JavaScript attempt to access frame' in Chrome


I am trying to add a Google Plus button to my site, and keep getting JavaScript safety warnings, despite the fact that I am using Google's recommended code, on Chrome.

Updating address bar with new URL without hash or reloading the page


I either dreamt about chrome (dev channel) implementing a way to update the address bar via javascript (the path, not domain) without reloading the page or they really have done this...

Sunday, May 13, 2012

Why does the Chrome Developer Tools/Console does not show javascript files/error that were loaded dynamically?


I'm loading files using a require function inside my code, which adds a <script/> tag to the body of the page with the relevant attributes.

Wednesday, May 2, 2012

How does the paste image from clipboard functionality work in Gmail and Google Chrome 12+?


I noticed a blog post from Google that mentions the ability to paste images directly from the clipboard into a Gmail message if you're using the latest version of Chrome. I tried this with my version of Chrome (12.0.742.91 beta-m) and it works great using control keys or the context menu.

Tuesday, May 1, 2012

Google webpage thumbnails absolute URI


How can I get a list of either the absolute URI's or base64 encodings for page URL's in Google's search results?

Sunday, April 8, 2012

When Profiling Javascript in Chrome how do I know I"ve handled Memory Leaks?



I've been working on a game in for HTML 5 using the canvas tag, and I've build up quite a code base to cover my requirements. I also want to make sure I'm covering up all my memory leaks.





I have doubts I'm doing it correctly because the feedback I'm getting from Chrome's task manager and profiling tools seem to suggest my cleanup is having no effect in the end.





Here's an image so you can see what I mean:





enter image description here





So as you can see, once I do my cleanup memory usage just freezes and doesn't drop. Is this a memory leak?





When I ran my webpage in the Profiler and checked the heap before and after cleanup it does appear to remove all the references to my objects (and they disappear) but my usage only drops by only a few kilobytes leaving about 1.3mb of arrays, strings, and other objects behind. Is it impossible to catch all this or is there something majorly wrong?





Thanks.



Source: Tips4all

Friday, February 17, 2012

Google Chome "Application Shortcut&rdquo; Custom Javascript


Introduction

Google chrome has a feature that allows you to create shortcuts to web pages and make them appear like traditional desktop applications.

Tuesday, February 14, 2012

About the BLOB datatype in MySQL


I have stored an image in MySQL using the BLOB datatype. I am able to retrieve image through JSP but when I use Chrome or Firefox browser I am unable to view the image. It is displaying in an encrypted format. Can anyone please help me?