hi all
I have a ribbon image (ribbon image means-around 6 small images in a row with previous Button in the beginning and Next button in the end) .What i want to do when i am clicking on a next button I want to display next 6 images with the running effect.Running effect means user should feel all images are going to front without reload the page(using AJAX) and same thing will happen for Previous (when some one clicking on the previous link i need to show previous 6 images with running effect using AJAX.
I hope everyone understood my situation here.
Please help me
Thanks to all
Smooth pagination using PHP,MYSQL<AJAX
Moderator: General Moderators
Have a look at Prototype
You could use something like
With a div id=images with get data to retrieve the correct images.
You'll have to include the prototype.js file too
//edit, what's the bbcode to display javascript with all its fancy colors?
You could use something like
Code: Select all
<script language="Javascript">
function Request(page)
{
var d = new Date();
var time = d.getTime();
$('inhoud').innerHTML = '<div id=loading>Loading images, please stand by...</div>';
new Ajax.Updater('images',page+'?&time='+time,{asynchronous:true, method: 'get'});
}
</script>You'll have to include the prototype.js file too
//edit, what's the bbcode to display javascript with all its fancy colors?
Thanks
can i use prototype for ajax effects.I am able to do the ajax fuctions without using prototype library.What i am looking for when a user clicks on next button or next link the user should feel all images are going back and gettiing next messages
Is this possible with prototpe?
please help me
Thanks to all
can i use prototype for ajax effects.I am able to do the ajax fuctions without using prototype library.What i am looking for when a user clicks on next button or next link the user should feel all images are going back and gettiing next messages
Is this possible with prototpe?
please help me
Thanks to all
You can build dhmtl effects with prototype.js, sure. If you don't fancy coding your own then script.aculo.us is an effects (and more) library built on top of Prototype.js. Alternatively to that there's JQuery, which is another Ajax library that does include effects by default, though fewer than script.aculo.us.
I've used all three, and built an application with script.aculo.us and Prototype.js. If I was just starting out though I think I'd use JQuery. It's lovely, and very lightweight.
I've used all three, and built an application with script.aculo.us and Prototype.js. If I was just starting out though I think I'd use JQuery. It's lovely, and very lightweight.