[jQuery] loading into scrollable div?

2007-09-19 Thread Sav
I'm using the load() function to insert external html files into a scrollable div container. The problem is that if you scroll down in the content of the div, then do an action that loads new text into the div, the scroll stays where you were rather than returning to the top of the content. Is t

[jQuery] Basic jQuery and Links?

2007-09-19 Thread Sav
Is it possible to use the "a" href attribute without the browser changing urls?This example alerts the file and then changes the browser to text.html $("a.wrapper").click(function() { alert($(this).attr('href')); $('div#wrapwindow').load('text.html'); }); I'd like to load this into a div