Example can be found, for instance, in Boris Weisfeiler's paper "Abstract homomorphisms of big subgroups of algebraic groups", pages 149-150, see
His example of a discontinuous representation $\rho$ of $SO(n, {\mathbb R})$ to a semidirect product $H$ of $SO(n, {\mathbb R})$ with the abelian group ${\mathbb R}^N$ (the Lie algebra of $SO(n)$), works for $SL(2, {\mathbb R})$ as well. Actually, Weisfeiler's example is even more dramatic: The image of the compact group $SO(n)$ under $\rho$ is dense in the noncompact Lie group $H$. Weisfeiler's paper also lists many positive results on rigidity of abstract homomorphisms of Lie groups.