[ Prev ]
2022-11-21

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

-- Nov 16 In-Class Exercise Thread
<!DOCTYPE html>
 <html lang="en-US">
    <head>
        <title>11/16 In-class exercise</title>
        <meta charset="utf-8" />
    </head>
    <body>
        <script>
            const findTotalResults = (obj) => {
                alert(obj.totalResults);
            };
        </script>
        <script src="https://www.yioop.com/s/news?f=json&callback=findTotalResults"> </script>
    </body>
 </html>
<!DOCTYPE html> <html lang="en-US"> <head> <title>11/16 In-class exercise</title> <meta charset="utf-8" /> </head> <body> <script> const findTotalResults = (obj) => { alert(obj.totalResults); }; </script> <script src="https://www.yioop.com/s/news?f=json&callback=findTotalResults"> </script> </body> </html>

-- Nov 16 In-Class Exercise Thread
<!DOCTYPE html> <html lang="en-US">
    <head>
        <title>In Class Exercise</title>
        <meta charset="utf-8"/>
    </head>
    <body>
        <script>
            function findTotalResults(obj)
            {
                alert(obj.totalResults);
            }
        </script>
        <script src="https://www.yioop.com/s/news?f=json&callback=findTotalResults"></script>
    </body>
</html>
(Edited: 2022-11-21)
<!DOCTYPE html> <html lang="en-US"> <head> <title>In Class Exercise</title> <meta charset="utf-8"/> </head> <body> <script> function findTotalResults(obj) { alert(obj.totalResults); } </script> <script src="https://www.yioop.com/s/news?f=json&callback=findTotalResults"></script> </body> </html>

-- Nov 16 In-Class Exercise Thread
JSONP function findTotalResults(obj) { alert(obj.totalResults); }
<nowiki><!doctype html> <html> <head> <title> JSONP </title> <script> function findTotalResults(obj) { alert(obj.totalResults); } </script> <script src="https://www.yioop.com/s/news?f=json&callback=findTotalResults" ></script> </head> <body> </body> </html></nowiki>

-- Nov 16 In-Class Exercise Thread
<!DOCTYPE html> <html lang="en"> <head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>11-16 In Class</title>
</head> <body>
    <script>
        function findTotalResults(obj) {
            alert(obj.totalResults);
        }
    </script>
    <script src="https://www.yioop.com/s/news?f=json&callback=findTotalResults"> </script>
</body> </html>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>11-16 In Class</title> </head> <body> <script> function findTotalResults(obj) { alert(obj.totalResults); } </script> <script src="https://www.yioop.com/s/news?f=json&callback=findTotalResults"> </script> </body> </html>

-- Nov 16 In-Class Exercise Thread
<!DOCTYPE html> <html lang="en"> <head>
    <meta charset="UTF-8">
    <title>Yioop News Service</title>
</head> <body>
    <script > 
    function findTotalResults(json) {
        alert(json.totalResults);
    }
    </script>
    <script src="https://www.yioop.com/s/news?f=json&callback=findTotalResults"></script>
</body> </html>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Yioop News Service</title> </head> <body> <script > function findTotalResults(json) { alert(json.totalResults); } </script> <script src="https://www.yioop.com/s/news?f=json&callback=findTotalResults"></script> </body> </html>
2022-11-27

-- Nov 16 In-Class Exercise Thread
 <!DOCTYPE html> <html lang="en-US">
    <head>
        <title>November 16</title>
        <meta charset="utf-8"/>
    </head>
    <body>
        <script>
            function findTotalResults(obj)
            {
                alert(obj.totalResults);
            }
        </script>
        <script src="https://www.yioop.com/s/news?f=json&callback=findTotalResults"></script>
    </body>
 </html>
<!DOCTYPE html> <html lang="en-US"> <head> <title>November 16</title> <meta charset="utf-8"/> </head> <body> <script> function findTotalResults(obj) { alert(obj.totalResults); } </script> <script src="https://www.yioop.com/s/news?f=json&callback=findTotalResults"></script> </body> </html>
X