Hi i am trying to load the following jquery on buttonclick in the code behind, however nothing seems to be happening;
StringBuilder sb = new StringBuilder();
sb.Append("$(document).ready(function () {");
sb.Append("$.gritter.add({");
sb.Append("title: 'This is a regular notice!',");
sb.Append("text: 'This will fade out after a certain amount of time. Vivamus eget tincidunt velit. Cum sociis natoque penatibus et <a href='#' style='color:#ccc'>magnis dis parturient</a> montes, nascetur ridiculus mus.',");
sb.Append("image: 'http://a0.twimg.com/profile_images/59268975/jquery_avatar_bigger.png',");
sb.Append("sticky: false,");
sb.Append("time: ''");
sb.Append("});");
sb.Append("});");
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), Guid.NewGuid().ToString(), sb.ToString(), true);
Can anyone see what i am doing wrong?