that one is easy
new
Ajax.Request('http://www.blinklist.com/?Action=Link/nupage.php&XQuery=programming&Page='+PAGE+'&Type=Most',
{'onLoading':function() { $("ONPage").innerHTML = '<img
src="http://www.blinklist.com/Theme/Icon/Progress.gif" alt="Progress"
style="color:blue;padding-left:10px;padding-right:10px">';$("ONPagetoo").innerHTML
= '<img src="http://www.blinklist.com/Theme/Icon/Progress.gif"
alt="Progress" style="padding-left:10px;padding-right:10px">';}
/*** the scroll effect trigger *****/
,'onSuccess':function(req){
new Effect.ScrollTo('ScrollTop');
if(Async != 'async')
expandcontent('sc1', $('tab1'));
$("ONPage").innerHTML = '<input name="ONField" id="Topnumber"
type="text" title="Edit number to jump to page"
style="font-size:17px;font-weight:bold;width:40px;border:0px;text-align:right;;background-color:transparent"
size="3" maxlength="3" value="'+PAGE+'" onKeyUp="OnlyNumber(this);
document.ONFormtoo.ONFieldtoo.value = this.value;" name="ONField"
onchange="Pagination(\'-\',0)">';
$("ONPagetoo").innerHTML = '<input title="Edit number to jump to
page" type="text"
style="font-size:17px;font-weight:bold;color:blue;width:40px;border:0px;text-align:right;"
size="3" maxlength="3" value="'+PAGE+'" onkeyup="OnlyNumber(this);
document.ONForm.ONField.value = this.value;" name="ONFieldtoo"
id="Bottomnumber" onchange="Pagination(\'-\',0)">';
$('sc1').innerHTML = req.responseText; }
});
On Nov 22, 2007 7:48 PM, Mircea <[EMAIL PROTECTED]> wrote:
>
> Go here: http://www.blinklist.com/tag/programming/
> Scroll down to the bottom and then hit Next page...you will see that
> after the new page loads (using Ajax) it will automatically scroll
> back to top.
>
> I'm using Prototype and I want to know how to do that...
>
> Thanks.
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---