Web Browser component is IE7 not IE8? How to change this?

It appears you need to fiddle with the registry as per this article: – http://blogs.msdn.com/ie/archive/2009/03/10/more-ie8-extensibility-improvements.aspx To run a WebBrowser control in IE8 Standards Mode, use the following new value into the registry: [(HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE)\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION] “MyApplication.exe” = dword 8000 (Hex: 0x1F40) To run in IE7 Standards Mode, use the following registry value: [(HKEY_CURRENT_USER or … Read more

Javascript JSON Date parse in IE7/IE8 returns NaN

In older browsers, you can write a function that will parse the string for you. This one creates a Date.fromISO method- if the browser can natively get the correct date from an ISO string, the native method is used. Some browsers got it partly right, but returned the wrong timezone, so just checking for NaN … Read more

How do I disable the save password bubble in chrome using Javascript?

I found there is no “supported” way to do it. What I did was copy the password content to a hidden field and remove the password inputs BEFORE submit. Since there aren’t any passwords fields on the page when the submit occurs, the browser never asks to save it. Here’s my javascript code (using jquery): … Read more

IE8 embedded PDF iframe

It’s downloaded probably because there is not Adobe Reader plug-in installed. In this case, IE (it doesn’t matter which version) doesn’t know how to render it, and it’ll simply download the file (Chrome, for example, has its own embedded PDF renderer). If you want to try to detect PDF support you could: !!navigator.mimeTypes[“application/pdf”]?.enabledPlugin (now deprecated, … Read more

How to force IE to reload javascript?

Add a string at the end of your URL to break the cache. I usually do (with PHP): <script src=”https://stackoverflow.com/my/js/file.js?<?=time()?>”></script> So that it reloads every time while I’m working on it, and then take it off when it goes into production. In reality I abstract this out a little more but the idea remains the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)