Uploadify Crashes Chrome's Flashplayer And Produces 'Ah, snap!' Screen - google-chrome

I'm going to call it The A.S.S. — The Ah, Snap! Screen.
Anyhow, I've got uploadify working well except for Chrome, which shows me The A.S.S. when I click the "Add Files" button. Anyone else run into this problem? I'm at a bit of a loss as to how to fix (or circumvent) it.
Here's the specs:
:: Mac
OSX 10.5.8
Chrome 8.0.552.237
jQuery 1.4.2
Uploadify 2.1.0
:: PC
Windows 7 Starter
Chrome 8.0.552.237
jQuery 1.4.2
Uploadify 2.1.0
Just to be clear, it isn't crashing when uploading a file, it doesn't even get that far. As soon as I click the "Add Files" button I get the ASS.
Thanks for any help.

Try Using
jQuery(function() {
setTimeout(function () {
jQuery('#file_upload').uploadify({
....your content....
});
}, 0);
});
When directly loading the uploadify it will crash...This is a sideway method

This is a known issue being tracked.

Related

window.addEventListener('unload', function () { } not working on Mac Safari. It works fine on Chrome

I'm trying to add bounce reporting for my landing page and have added the following code in Javascript (prefer to use pure Javascript).
window.addEventListener('unload', function () {
this.alert("unloading page");
reportBounce();
});
In reportBounce() I make an AJAX call to let the server know. I don't care about the response and am not showing a popup or anything.
The reportBounce fires up when on Chrome browser on Mac, but it does not fire when on safari on Mac. I am yet to try other browsers and OS combinations.
I've seen several questions, some talk about Back/Forward cache, some about Safari on IOS and using 'pagehide' instead of 'unload' but none that actually worked for Safari on Mac.
I was hoping there be a standard function that does the check for browser
and adds the correct event for this need.
Please advice on how to get this to work. Thanks!

Hide browser in Puppeteer

I need to keep a browser running in the background for a specific issue but i have to hide it so the enduser should not see. I have tried electron, nwjs and carlo and ended up using puppeteer since none of the above was meeting my expectation. I need to run a specific chrome extension. I have completed everything but i can't find out how to hide the chronium. I have tried "--no-startup-window" argument for chromium and window doesn't show up but code get stuck at
await puppeteer.launch(options);
I have read through puppeteer api and look through chronium args but could not figure out. Is there a way to hide chronium but run it in the background?
Thank you for your help in advance.
You probably would like to run Chromium in headless mode. For this you may use command line switch or launch options. More information on Getting Started with Headless Chrome is available at this article.
Starting headless:
chrome --headless
Using puppeteer launch options:
{
"headless": true,
"args": ["--fast-start", "--disable-extensions", "--no-sandbox"],
"ignoreHTTPSErrors": true
}

Ionic transitions getting white page only in ios

Im developing an app in ionic and its working perfectly fine in android, emulators and web (with ionic serve). But when is running in ios devices in transitions between pages suddenly it shows a white view instead the view that it have to display. This doesn't happen all time and i didn't figured out when specifically happen.
I appreciate any help.
it is probably a javascript error. To find it, the best way is:
first connect the phone with your mac (must be a mac) by USB.
Open Safary (no Chrome or Firefox)
In the Safary settings -> Advanced -> enable develop tools
Now on Safary will appear a develop menu on the top, click on it and you will see your phone and the app running, click on it.
In the develop tools, will appear all the console you normally see testing with ionic serve, but in the real device.
Just use the app and when you get a black page check the javascript error on safary develop tool.
I hope it helps, it did helped me a lot after discover it.
Finally I resolve it, it was a problem with transitions of ionic in ios. Adding this line to config in app.js like this
.config(function($stateProvider, $urlRouterProvider, $ionicConfigProvider) {
$ionicConfigProvider.views.swipeBackEnabled(false);
}
Disable all back navigations transitions with swipe.
For what I searched, it can be a lot of things.. What helped me to figure out my case was small commits.
Anyway, I tried to use default param values and it doesn't work for my webview in iOS. If that's your problem too, you can see an alternative way to do default param values here:
Set a default parameter value for a JavaScript function
didn't work:
function(param = defaultValue){}
did work:
function(param){
param = param ? param : defaultValue;
}
Simply use can-swipe-back="false" on your ion-view element.

Webpage made using Polymer terminates on Google Chrome

I have made a webpage using Polymer. The webpage doesn't open on Google Chrome (both Windows and Android). When I try to open the page, Chrome shows "He's Dead, Jim!" message on Windows and "Aw, Snap!" message on Android. I have reset the settings and reinstalled Chrome but the problem still continues. Can anyone tell me how to solve this problem or the reason behind it?
https://www.googledrive.com/host/0B2Zii8voDW6QcGduNnl1cFBReXc/fold/
maybe you can check if there is any error in your page, which stop polymer initialization:
https://www.polymer-project.org/docs/polymer/debugging.html#unregistered-element-bookmarklet
Btw, did you try the official demo page with your browsers? If they work, then it's your code problem.

How to install chrome extension on chromium?

Some chrome extension doesn't work on chromium.
This for example: http://code.google.com/chrome/extensions/samples.html#5d81304a17cf7ac2887484f730fbd2b01e51e166
How can I get it to work on chromium ?
I can successfully load it (Chromium 18.0.1025.151, Ubuntu 11.10).
I only encountered one problem, when I literally dragged the code to nano: Some newlines were truncated, causing code to be commented. Check whether you correctly copy-pasted the code.
When the extension loads, but "nothing happens", check the console for errors. The console for the background page can be opened by following these steps.