Recent Articles
SharePoint Quick Surveys 1.0.5 and catching up…
It’s been a while since I’ve posted on this blog. There’s been a lot going on around here so I’ve not really had the time to devote to it. There have been loads of comments posted. Many of the queries I’ve answered by email but I thought it might be useful to answer the most frequently asked questions here.
15Feb2009 | darren | 0 comments | ContinuedMinor updates to the ASP.Net file upload module
I’ve had a few requests for updates to the file upload module. These were mainly to fix some javascript issues. In all, the updates have brought the module up to version 2.0.3, which I have now made available for download
The changes are:
- BUG FIX: when uploads are cancelled or prevented on client side due to being too large the page is refreshed via script as this seems to be the only way to cancel the upload. Previously this was done using
location.reload. However, this method resulted in a warning message on the browser and possible re-submission of the form content. I have changed the script to usedocument.location = document.locationto refresh the page- this does not repost the contents or produce a warning. - BUG FIX: I have now updated the script so that the presence of at least one file to upload is verified before the progress bar is displayed. This prevents the bar being displayed when their are no uploads and allows other postbacks on the form.
Hope this helps and thanks again to those who continue to use the module and provide feedback.
18Sep2008 | darren | 23 comments | ContinuedSharePoint Quick Surveys 1.0.3 - regionalisation
Version 1.0.3 of the SharePoint Quick Surveys web part is now available in the downloads section. The full source code and setup kits are provided as separate downloads.
There are a few changes in this release, most noteable of which is that the web part has now been translated into a number of European languages including:
- English
- Dutch
- French
- German
- Spanish
- Norwegian
- Russian
javascript proxy for the SharePoint User Profile web service
I’ve updated the javascript API for the SharePoint web services to version 1.0.1. This now includes support for the User Profile web service (/_vti_bin/UserProfileService.asmx) allowing user profiles to be retrieved and updated.
The extra proxy is located in the SPAPI_UserProfile.js file.
6Sep2008 | darren | 3 comments | ContinuedASP.Net File Upload/Download Module v2.0.1
A minor update to the file upload module (v2.0.1) has been placed in the downloads area of the site. The following changes are included:
- BUG FIX: the file name was not always displayed in the progress bar when multiple IFileProcessor implementations were used on the same page.
- FEATURE: the attribute
ajaxcallis added to upload buttons and set tonone. This allows the control to work correctly with majic ajax- thanks Franklin.
The update should be a straight replacement. No public interfaces have changed. Setup kits and source have been provided in downloads.
3Sep2008 | darren | 14 comments | ContinuedASP.Net File Upload/Download Module Version 2 (stable)
After 3 beta releases and many comments and emails from users it’s time to release the first stable version of the ASP.Net file upload module. This release contains a number of bug fixes and feature enhancements based on requests I have received.
I have now tested the module on the following browsers:
- Internet Explorer 6/7
- Safari 3.1.2 on OSX
- Firefox 3.0.1 on OSX
- Firefox 3.0.1 on Windows
- Opera 9.5.1 on Windows
- Opera 9.5.1 on OSX
Opera/Mac opacity on file inputs
I think this might be the shortest post I’ve ever written. More a note to myself and anyone else working with Opera 9.5 on the Mac.
One of the features of the ASP.Net file upload module is that it allows styling of file inputs using a method found on www.quirksmode.org. This works great on any browser that supports opacity- including IE 6/7, Firefox Windows/Mac, and Opera (supposedly). However it always refused to work correctly on Opera 9.5 on OSX Leopard. I’ve just spent hours trying to fix this. No matter what I tried when I set the opacity of an input type="file" element to 0 it refused to take effect. Until I also added border: none to the CSS class, then it worked fine. Sigh.
WSS 3.0: getting the current user login name via javascript
This is just a quick post in response to a question I’ve had about how to get the current user’s login details in WSS 3.0. The answer is really in two parts. Firstly, you can get the ID of the current user from the _spUserId variable which is declared by the welcome control on any page.
Next you can use the Lists.asmx web service to get the user’s login name from the hidden User Information List.
ASP.Net File Upload/Download Module Version 2 (beta 3)
I know it’s not been very long since the previous beta of the file upload module, but since I’ve now finished browser testing and fixed a few issues I thought it would be best to make a new release. So, beta 3 is now available in the downloads section. This version also includes the ability to configure the upload controller properties via the web.config file. This is the last new feature that will be put into version 2 of the module.
I’ve tested the module on the following browsers:
- Internet Explorer 6/7
- Safari 3.1.2 on OSX
- Firefox 3.0.1 on OSX
- Firefox 3.0.1 on Windows
ASP.Net File Upload/Download Module Version 2 (beta 2)
I’ve now uploaded beta 2 of the file upload module to the downloads section of the site. A special thanks goes to Dean Brettle who is the author of Neat Upload for his help with this version. In particular the encryption logic for storing the settings of upload controls in form fields is taken from Neat Upload (although the actual implementation is different and handled by the form parser).
5Aug2008 | darren | 22 comments | Continued