forked from qwerty/tupali
mejoras en la api
This commit is contained in:
parent
c0a88bf2ea
commit
b91c558618
@ -7,7 +7,11 @@
|
||||
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css?" >
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
var count = 1;
|
||||
|
||||
loadArticle(1);
|
||||
loadArticle(2);
|
||||
loadArticle(3);
|
||||
var count = 4;
|
||||
$("div").scroll(function () {
|
||||
var offset = $('#scroll-content div').length;
|
||||
var $this = $(this);
|
||||
@ -51,7 +55,16 @@
|
||||
|
||||
}
|
||||
|
||||
function loadArticle(pageNumber){
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
function loadArticle(pageNumber){
|
||||
|
||||
var newDiv = document.createElement("div");
|
||||
newDiv.setAttribute("class", "container");
|
||||
@ -77,40 +90,11 @@
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class='container' style="overflow-y: scroll; overflow-x: hidden; height: 400px; border: 1px solid red;">
|
||||
<p>This is the div content</p>
|
||||
<p>This is the div content</p>
|
||||
<p>This is the div content</p>
|
||||
<p>This is the div content</p>
|
||||
<p>This is the div content</p>
|
||||
<p>This is the div content</p> <p>This is the div content</p>
|
||||
<p>This is the div content</p>
|
||||
<p>This is the div content</p>
|
||||
<p>This is the div content</p>
|
||||
<p>This is the div content</p>
|
||||
<p>This is the div content</p> <p>This is the div content</p>
|
||||
<p>This is the div content</p>
|
||||
<p>This is the div content</p>
|
||||
<p>This is the div content</p>
|
||||
<p>This is the div content</p>
|
||||
<p>This is the div content</p> <p>This is the div content</p>
|
||||
<p>This is the div content</p>
|
||||
<p>This is the div content</p>
|
||||
<p>This is the div content</p>
|
||||
<p>This is the div content</p>
|
||||
<p>This is the div content</p>
|
||||
|
||||
<div id="wrapper">
|
||||
<div id="scroll-content">
|
||||
<div id='posts'></div>
|
||||
|
@ -31,7 +31,7 @@ if(!isset($_REQUEST['formato'])) {
|
||||
header('Content-Type: application/json');
|
||||
echo json($datos);
|
||||
}else{
|
||||
echo "".consultar_contenido_formulario("$datos[id]","$datos[registros]","$datos[pagina]","$datos[formato]",'',"li");
|
||||
echo "$datos[pagina] ".consultar_contenido_formulario("$datos[id]","$datos[registros]","$datos[pagina]","$datos[formato]",'',"li");
|
||||
}
|
||||
//echo "hola /// $_REQUEST[id] // " ;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user