Archive for July 13th, 2010
Great HTML5 Canvas/ Chrome Demo sites
Posted by shawson in HTML5, Javascript on July 13, 2010
Found this today; www.chromeexperiments.com loads of cool canvas experiments- geared towards google chrome but most run well in up to date firefox build.
Update: also worth a look in; www.canvasdemos.com
ASP.net update panel’s and jQuery
Posted by shawson in .net, Javascript, jQuery on July 13, 2010
I had a problem today with buttons in an update panel and jQuery- there are some buttons which get hidden or displayed depending on the user’s OS – mac or pc users basically get shown different instructions- However because these buttons are added by a partial post back of the update panel, the jQuery document.ready had already fired before these buttons existed.
So I experimented adding the code to the form.submit event but in the end found the solution on google; I simply added this;
<script type='text/javascript'>
function pageLoad(sender, args)
{
// your code here..
showHideMacLinks();
}
</script>
This handles the pageLoad event raised by my update panel which is fired on the initial load and on the partial post back. You can filter this to only fire on partial post back by adding “if(args.get_isPartialLoad())”
Found this over on the .net Funda blog