Click here to Skip to main content
15,905,971 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
plz help me i am working on jquery i want to scroll the data with in the div vertically but data should be fetch from the database using jquery how could i do it plz reply me

sir this is my code
JavaScript
 function BuildingAdvatise()
 { 
try
 {
 $.getJSON(http://localhost:1062/GalleryDataService1.svc/Imageslides?$orderby=Description;, 
function (data)
 { 
if 
(data != null && data.d != null ; data.d.results.length > 0) { var Genre = data.d.results; $("#galleryadv").remove(); $('#Gallery').append("<div id='galleryadv' class='sHeader' />") for (var i = 0; i < Genre.length; i++) { //$("#galleryadv").append("<div class='Adddiv'>
" + Genre[i].Title + "
<img src='" + Genre[i].ImagePath + "'/><p class='addcontent'>" + Genre[i].Description + "</p></div>"); $("#galleryadv").append("<div class='imge_box'><img src='" + Genre[i].ImagePath + "'/><div class='title'><span>" + Genre[i].Title + "</span><div class='content'>" + Genre[i].Description + "</div>"); //$("#galleryadv").append('<div class="rightimg"><img src="' + Genre[i].ImagePath + '"/><div class="title_text">
' + Genre[i].Title + '
</div><p div class="righta_content">' + Genre[i].Description + '</p></div>'); } setTimeout(BuildingAdvatise, 5000); } } ); } catch (ee) { alert("teestset"); } } 



this is my code in that we are getting data from db (Genre[i].Description) once get the data from it we should scroll that data check out the code sir thank for help
Posted
Updated 12-May-12 21:55pm
v3
Comments
Sandeep Mewara 10-May-12 11:22am    
Not clear. How is scrolling a div with data connected to data population from DB? Can you elaborate more please?
ZurdoDev 10-May-12 15:55pm    
This is a couple of questions. What have you done so far?
Sunasara Imdadhusen 29-May-12 8:38am    
Not clear!! is there any error? if yes then do let us know.

1 solution

Use the Scroll attribute like scroll="scroll".

Thanks
Nikhil
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900