google-chrome

Google Chrome forgetting registration cookie immediately

I'm having trouble with cookies on my site's registration form. When a user creates an account, PHP sets one cookie with their user id, and one cookie with a hash containing their user agent and a few other things. Both of these cookies are set to expire in an hour. This is the code that sets the cookie after creating your account $re...

jquery hover not working in safari and chrome

I'm developing a site and I am implementing a jquery hover effect on some list items. It works perfectly in all browser except safari and chrome (mac and pc). For some reason the hover effect doesnt work on those to browsers. Here is the link link text I thought I would add the code just in case it helps (it also uses the color_librar...

How to detect when a tab is focused or not in Chrome with Javascript?

I need to know if the user is currently viewing a tab or not in Google Chrome. I tried to use the events blur and focus binded to the window, but only the blur seems to be working correctly. window.addEventListener('focus', function() { document.title = 'focused'; }); window.addEventListener('blur', function() { document.title = 'n...

Are all Google Chrome extensions open source by default?

I want to know if i write a Google Chrome extension, will anyone be able to use my code? ...

How do I keep this from pushing down?

http://removed.com/jquery/test.html Playing with jQuery and upon pressing "More" on the top left, it pushes down the "Brown" layer. How can I keep the brown layer steady? It happens in Chrome, but not Firefox. ...

Access Google Chrome's cache

Is it possible to access Google Chrome's cache from within an extension? I'd like to write an extension that loads a cached version of a page when the online one can't be accessed (e.g. Internet connectivity issue). Updated: I know I could write an NPAPI plugin accessible through an extension to accomplish this but I'd rather not suffe...

Floats not staying inside div in webkit browser, but do if cached.

Hiya All, I have a rather strange bug which i can't make sense of that is apearing in webkit based browsers (chrome and safari). When this page http://bluprintliving.mammalworld.com/turnmill-street loads for the first time the content seems to jump out of the container but only at the end of the render. on refresh it stays in and behav...

Chrome Back button page refresh - ASP.net

Hi, I have an ASP.net application (c#). When a user is on a specific page, they click a link on this page that takes them to a child page, displaying the product details. If the user clicks the browser back button, I need the parent page to be refreshed to its initial state. ie all text boxes that had data typed need to be blank, any ...

Why can't I attach the debugger?

I'm using Visual Studio 2008 SP1 and trying to debug a website created in ASP Classic. I have read numerous tutorials, however nothing seems to be working (PEBKAC?). I have enabled server-side debugging in IIS and am attaching the debugger to dllhost.exe. When I open my page in Google Chrome, set breakpoints and set VS to debug, nothing ...

nyroModal Window on flash background

I've got a Flex App running at 100% width and 100% height. The embed code is: <script type="text/javascript"> var fVars = {}; fVars.wmode = "transparent"; //also tried "opaque" swfobject.embedSWF("/swf/app.swf", "app", "100%", "100%", "9.0.0", "expressInstall.swf", fVars); </script> <div class="app"></div> I've also got th...

Jquery Cycle issue or css issue in Chrome/Safari for Mac

Hi i have used the jquery cycle plugin to create multiple simple sliding galleries. In Chrome/Safair on Mac the browser is not loading the images. Here is the link the js i am using is here, although it could be a css issue..? I am struggling to find the real problem. $(document).ready(function() { $('.slides').each(function(...

chrome sets cursor to text while dragging, why?

my application have many drag and drop features. and while dragging i want that cursor changes to some grab.cur. ie and firefox are working fine in this. but in chrome it always changes the cursor to text cursor. I m stuck badly please help. ...

Unfailing Javascript Image Preview

I have the following code that presents the user with a preview of the image they're trying to upload and works really well in FF: var img = document.createElement('img'); img.src = $('#imageUploader').get(0).files[0].getAsDataURL(); The problem is, getAsDataURL() only works in FF. Is there something similar/a workaround for this kind...

Galleria problem Google chrome

I am using galleria for http://minavet.ro , but the script works well with IE8, Opera, and FF but in Chrome the full site goes to the dogs. Thanks for any suggestions ...

Setting background-image with javascript

In chrome, safari, and opera setting the background image to an absolute reference such as: "/images/image.png" changes it to "http://sitepath/images/image.png". It does not do this in firefox. Is there any way to avoid this behavior, or is it written into the browser's javascript engine? Using jquery to set the background-image also d...

Checking if an element is visible in Chrome using Selenium Remote WebDriver

Is there a cross browser solution to check if an element is visible using WebDriver? The solution for IE and firefox is to cast the object to a RenderedRemoteWebElement and then call the property Displayed. I'm using the following methods to return if a element is visible: /// <summary> /// Check if the control is visible. /// </summa...

window.focus() not working in Google Chrome

Hey folks, Just wondering if Google Chrome is going to support window.focus() at some point. When I mean support, I mean have it work. The call to it doesn't fail, it just doesn't do anything. All other major browsers do not have this problem: FireFox, IE6-IE8 and Safari. I have a client-side class for managing browser windows. When I ...

Why is Safari and Chrome not displaying my gif, but a blue question mark?

I am displaying the following html to my browser (firefox works, however chrome and safari are not). What is displayed below in firefox is working as intended, but safari and chrome are displaying a blue question mark with a box around it. <html> <head> <title>test</title> </head> <body> <img src='pixel.php' /> </body> ...

.focus() doesn't work on an input while orher attributes works

I have a classic table / thead / tbody structure, which I add a line at the end of the tbody. The line contains only an input element. The code works in Firefox 3.6 but not in Chrome v5 or IE8. I'm using jQuery 1.4.2. Does not work: $("#" + AJAX_ID).parent().find('tr:last > td:nth-child(2) > input').focus(); Does work: $("#" + AJAX_ID)...

Chrome: Dynamically created <style> tag does not have content?

Hello. I encountered a weird problem when trying to write a cross-browser script. Basically my header looks like this <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"&gt;&lt;/script&gt; </head> Then in the body tag: <p id="hey">Hey</p> <input type="button" value="attachStyle" name="attachSty...