Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Image-Gallery-
Creating an image gallery using ajax and php
Created an example for internship
5 changes: 5 additions & 0 deletions html/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,9 @@
<script src="js/jquery-lightbox.0.41.min.js"></script>
<link rel="stylesheet" href="../css/lightbox.css">
<link rel="stylesheet" href="../css/style.css">
<!--

<link rel="stylesheet" href="../css/lightbox.css">
<link rel="stylesheet" href="../css/style.css">
-->
<script src='https://www.google.com/recaptcha/api.js'></script>
17 changes: 14 additions & 3 deletions html/product.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,20 @@ function press(src) {

<?php require 'footer.php' ?>
<script type="text/javascript">
// $(document).on("click",".notavailable",function(){
// alert("We will upload that category soon ");
// });
$().ajax({
url:"",
method:"post",
success:function(data){
//do whatever you want to do
console.log(data);
},
error:function(err){
//Error function
console.log(err);
}

})



$("#content").load("producthome.php");
Expand Down