Skip to content

Commit

Permalink
AJAX-concepts are added
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayajahamad committed Oct 22, 2023
1 parent 16335c0 commit 671db73
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Javascript/08-AJAX/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5501
}
4 changes: 4 additions & 0 deletions Javascript/08-AJAX/assets/js/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
function sum(a,b){
document.write(`<h3>sum = ${a+b}</h3>`);
}
// sum(10,20);
3 changes: 3 additions & 0 deletions Javascript/08-AJAX/assets/js/user.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name":"meanhive"
}
20 changes: 20 additions & 0 deletions Javascript/08-AJAX/callback.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<script>
function parent(path,callBack){
}
parent("path",sum(100,300));


function sum(a,b){
document.write(a+b);
}
</script>
</body>
</html>

0 comments on commit 671db73

Please sign in to comment.