[ Prev ]
2021-05-05

-- May 5 In-Class Exercise
<!doctype html><html>
<head>
    <title> may 5th exercise </title>
</head>
<body> 
 
  <h1> my page <h1 /> 
 
  <script>
    function findTotalResults(obj)
    {
      alert(obj.totalResults);
    }
  </script> 
 
  <script src="https://www.yioop.com/s/news?f=json&callback=findTotalResults"></script> 
 
</body>
</html> 
 
<pre> <!doctype html><html> <head> <title> may 5th exercise </title> </head> <body> <h1> my page <h1 /> <script> function findTotalResults(obj) { alert(obj.totalResults); } </script> <script src="https://www.yioop.com/s/news?f=json&callback=findTotalResults"></script> </body> </html> </pre>

-- May 5 In-Class Exercise
May5 JSONP Exercise

Requesting total results from Yioop:

Hello world! This is HTML5 Boilerplate.

function findTotalResults(obj){ alert(obj.totalResults); }
<nowiki><!doctype html> <html class="no-js" lang=""> <head> <meta charset="utf-8"> <title>May5 JSONP Exercise</title> </head> <body> <h1>Requesting total results from Yioop:</h1> <!-- Add your site or application content here --> <p>Hello world! This is HTML5 Boilerplate.</p> <script src="js/vendor/modernizr-3.11.2.min.js"></script> <script src="js/plugins.js"></script> <script src="js/main.js"></script> <script> function findTotalResults(obj){ alert(obj.totalResults); } </script> <script src="https://www.yioop.com/s/news?f=json&callback=findTotalResults" /></script> </body> </html> </nowiki>

-- May 5 In-Class Exercise
In-class exercise for 05/05/21

Emily Chan

Exercise for 05/05/21

function findTotalResults(obj) { alert(obj.totalResults); }
(Edited: 2021-05-05)
<nowiki><!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>In-class exercise for 05/05/21</title> </head> <body> <p>Emily Chan</p> <p>Exercise for 05/05/21</p> <script> function findTotalResults(obj) { alert(obj.totalResults); } </script> <script src="https://www.yioop.com/s/news?f=json&callback=findTotalResults"> </script> </body> </html> </nowiki>

-- May 5 In-Class Exercise
  <!DOCTYPE html>
  <html>
  <head>
    <meta charset="utf-8">
    <title>Ajay Salh 5/05</title>
  </head>
  <body>
    <script>
        function findTotalResults(object)
        {
            alert(object.totalResults);
        }
    </script>
    <script src="https://www.yioop.com/s/news?f=json&callback=findTotalResults"></script>
 </body>
 </html>
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Ajay Salh 5/05</title> </head> <body> <script> function findTotalResults(object) { alert(object.totalResults); } </script> <script src="https://www.yioop.com/s/news?f=json&callback=findTotalResults"></script> </body> </html>

-- May 5 In-Class Exercise
 <!DOCTYPE html>
 <html>
 <body>
 <title>In Class Exercise</title>
 <script>
 function findTotalResults(data)
 {
     alert(data.value); 
 }
 <script>
 <script src="https://www.yioop.com/s/news?f=json&callback=findTotalResults" />
 </body>
 </html>
<!DOCTYPE html> <html> <body> <title>In Class Exercise</title> <script> function findTotalResults(data) { alert(data.value); } <script> <script src="https://www.yioop.com/s/news?f=json&callback=findTotalResults" /> </body> </html>

-- May 5 In-Class Exercise
<!DOCTYPE html> <head><title> in class may 5</title> </head>
<body>
    <p>click for for total results</p>
    <input type = "button" onclick="findTotalResults()" value = "Display">
    <script>
        function findTotalResults(obj)
    {
        alert(obj.totalResults);
    }
    </script>
    <script src="https://www.yioop.com/s/news?f=json&callback=findTotalResults" />
</body> </html>
<!DOCTYPE html> <head><title> in class may 5</title> </head> <body> <p>click for for total results</p> <input type = "button" onclick="findTotalResults()" value = "Display"> <script> function findTotalResults(obj) { alert(obj.totalResults); } </script> <script src="https://www.yioop.com/s/news?f=json&callback=findTotalResults" /> </body> </html>

-- May 5 In-Class Exercise
<!DOCTYPE html> <html lang="en">
  <head>
    <title>In-class Exercise</title>
    <meta charset="UTF-8"/>
  </head>
  <body>
    <script>
        function findTotalResults(result) {
            alert(result.totalResults);
        }
    </script>
    
    <script src="https://www.yioop.com/s/news?f=json&callback=findTotalResults"></script>
 </body>
 </html>
<!DOCTYPE html> <html lang="en"> <head> <title>In-class Exercise</title> <meta charset="UTF-8"/> </head> <body> <script> function findTotalResults(result) { alert(result.totalResults); } </script> <script src="https://www.yioop.com/s/news?f=json&callback=findTotalResults"></script> </body> </html>

-- May 5 In-Class Exercise
<!doctype HTML>
 <html lang='en-US'>
 <head>
    <meta charset="utf-8"/>
    <title>In Class Excercise</title>
 </head>
 <body>
 <script>
    function findTotalResults(results) {
      alert(results.totalResults);
    }
 </script>
 <script src="https://www.yioop.com/s/news?f=json&callback=findTotalResults"> </script>
 </body>
 </html>
<!doctype HTML> <html lang='en-US'> <head> <meta charset="utf-8"/> <title>In Class Excercise</title> </head> <body> <script> function findTotalResults(results) { alert(results.totalResults); } </script> <script src="https://www.yioop.com/s/news?f=json&callback=findTotalResults"> </script> </body> </html>

-- May 5 In-Class Exercise
Exercise 5/5 function findTotalResults(results) { alert(results.totalResults); }
<nowiki><!doctype HTML> <html lang='en-US'> <head> <meta charset="utf-8"/> <title>Exercise 5/5</title> </head> <body> <script> function findTotalResults(results) { alert(results.totalResults); } </script> <script src="https://www.yioop.com/s/news?f=json&callback=findTotalResults"> </script> </body> </html></nowiki>

-- May 5 In-Class Exercise
<!DOCTYPE html> <html lang="en">
 <head>
    <title>exercise</title>
    <meta charset="UTF-8"/>
  </head>
  <body>
    <script>
        function findTotalResults(result) {
            alert(result.totalResults);
        }
    </script>   
    <script src="https://www.yioop.com/s/news?f=json&callback=findTotalResults"></script>
 </body>
 </html>
<!DOCTYPE html> <html lang="en"> <head> <title>exercise</title> <meta charset="UTF-8"/> </head> <body> <script> function findTotalResults(result) { alert(result.totalResults); } </script> <script src="https://www.yioop.com/s/news?f=json&callback=findTotalResults"></script> </body> </html>
[ Next ]
X