Month: April 2014

  • Refresh a Page with JavaScript

    Hey everyone, Just a quick post on how to force a page refresh with JavaScript (no jQuery required): location.reload(); Note that the reload function accepts a boolean parameter that can be used for force a server refresh. Alternatively, it just defaults to the cache. Checkout this Stackoverflow post for more info: http://stackoverflow.com/a/5404869/522859

  • Detecting FileSize – jQuery

    Hey everyone, Just a quick post on how to detect a file’s size with jQuery. I’m currently using a version of this for basic client side validation: Upload image: $(document).ready(function(){ $(‘#image-file’).bind(‘change’, function() { var fileSize = this.files && this.files.length > 0 && this.files[0].size ? this.files[0].size / 1024 / 1024 : 0; if(fileSize > 0){ $(‘body’).append(”…

  • Request for ConfigurationPermission failed while attempting to access configuration section ‘paypal’ – PayPal & GoDaddy

    Hey everyone, I ran into the following error today while working with PayPal on a GoDaddy hosted server: Request for ConfigurationPermission failed while attempting to access configuration section ‘paypal’. To allow all callers to access the data for this section, set section attribute ‘requirePermission’ equal ‘false’ in the configuration file where this section is declared.…

  • My Selling Tools Option Missing – PayPal

    Hey everyone, For some reason the “My Selling Tools” option is now missing on my production account. Unfortunately the only way to get around this that I’ve come across is to access the required features directly. For example: API Access: https://www.paypal.com/cgi-bin/customerprofileweb?cmd=_profile-api-access If you’ve got any other links that might be useful please let me know…

Create a website or blog at WordPress.com