Advertisement
Guest User

Untitled

a guest
Jul 14th, 2012
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.        var myProjects = {
  2.     projects: null,
  3.     getProjects: function() {
  4.         jQuery.ajax({ type: "POST", dataType: "JSON",
  5.             url: "<?=base_url()?>index.php/home/projectsSlider",
  6.             json: {returned: true}, success: function(data) {
  7.                 if (data.returned === true) {
  8.                     myProjects.projects = data.projects;
  9.                 }
  10.             }
  11.         });
  12.     }, placeProjects: function() {
  13.         if (myProjects.projects == null) myProjects.getProjects();
  14.         $.each(myProjects.projects, function(i,e){                     
  15.             $("#content").fadeOut(150, function() {
  16.                 $(this).replaceWith(projectsSlider(e.projectId, e.projectName, de.startDate, e.finishedDate, e.projectDesc, e.createdFor, e.contributors, e.screenshotURI, e.websiteURL), function() {
  17.                     $(this).fadeIn(150);
  18.                 });
  19.             });
  20.         }
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement