I have an application where I just want to process an event click in
javascript. In that the URL component is blank. If I do this when
clicking an event the browser scrolls upwards.
To fix this I changed the javascript to not add the href attribute when a
URL value is blank:
var link = "";
if (event.URL.length > 0){
link = jQuery('<a href="' + event.URL + '">' + event.Title + '</a>');
}else{
link = jQuery('<a>' + event.Title + '</a>');
}
Original issue reported on code.google.com by drgenejones on 19 Jul 2009 at 2:01
Original issue reported on code.google.com by
drgenejones
on 19 Jul 2009 at 2:01