Impact of Media on Youth

Powerful Essays
Index.jsp
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP and Servlet using AJAX</title>
<script type="text/javascript"> function getXMLObject() //XML OBJECT
{
var xmlHttp = false; try { xmlHttp = new ActiveXObject("Msxml2.XMLHTTP") // For Old Microsoft Browsers } catch (e) { try { xmlHttp = new ActiveXObject("Microsoft.XMLHTTP") // For Microsoft IE 6.0+ } catch (e2) { xmlHttp = false // No Browser accepts the XMLHTTP Object then false } } if (!xmlHttp && typeof XMLHttpRequest != 'undefined') { xmlHttp = new XMLHttpRequest(); //For Mozilla, Opera Browsers } return xmlHttp; // Mandatory Statement returning the ajax object created
}

var xmlhttp = new getXMLObject(); //xmlhttp holds the ajax object

function ajaxFunction() { var getdate = new Date(); //Used to prevent caching during ajax call if(xmlhttp) { xmlhttp.open("GET","gettime?" + getdate.getTime(),true); //gettime will be the servlet name xmlhttp.onreadystatechange = handleServerResponse; xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); xmlhttp.send(null); }
}

function handleServerResponse() { if (xmlhttp.readyState == 4) { if(xmlhttp.status == 200) { document.myForm.time.value=xmlhttp.responseText; //Update the HTML Form element } else { alert("Error during AJAX call. Please try again"); } }
}
</script>
<body>
<form action="" name="myForm">
Server Time:<input type="text" name="time" />
<br />
<input type="button" onClick="javascript:ajaxFunction();" value="Click to

You May Also Find These Documents Helpful

  • Powerful Essays

    impact of media on youth

    • 2857 Words
    • 12 Pages

    Impact of media use on children and youth The influence of the media on the psychosocial development of children is profound. Thus, it is important for physicians to discuss with parents their child’s exposure to media and to provide guidance on age-appropriate use of all media, including television, radio, music, video games and the Internet. The objectives of this statement are to explore the beneficial and harmful effects of media on children’s mental and physical health, and to identify…

    • 2857 Words
    • 12 Pages
    Powerful Essays
  • Good Essays

    impact of media on youth

    • 1299 Words
    • 6 Pages

    TRAINING OF THE TRAINERS FOR EUROPEAN RASING VALUES INDEX WHAT DO WE MEAN BY VALUES?.....................................................................3 VALUES ACCORDING TO SCHWARTZ………………………………………..3 IMPORTANCE OF VALUES IN HUMAN LIFE…………………………………4 WHAT IS VALUES EDUCATION?.........................................................................4 WHT DO WE NEED VALUES EDUCATION……………………………………5 VALUES EDUCATION IN PRESCHOOL………………………………………..5 FACTORS AFFECTING VALUES EDUCATION…………………………………

    • 1299 Words
    • 6 Pages
    Good Essays
  • Good Essays

    Topic Impact of social Media on the behaviour of youth Introduction Nowadays the growth of social media is immense. It has become a part of everyone’s life special the youth. The youth is impacted greatly by the social media. Everyone is using the social media to stay connected and even up to date about their friends and even about the information about the world. Due to this vast change it is of high importance to know that how the behaviour of the youth is impacted by the social media. Social…

    • 2526 Words
    • 8 Pages
    Good Essays
  • Better Essays

    The Media Impact on Youth Violence COM/156 Linda Perez The Media Impact on Youth Violence When we were children, there were only thirteen channels on television, only one house phone, there was no cellular phones and no computer but a typewriter in the house. We played outside, hopscotch, jump rope and stickball. Was not allow to watch primetime Television including the news, we was told it 's was for grown-ups. My, how times change from then to now, everywhere…

    • 1787 Words
    • 8 Pages
    Better Essays
  • Good Essays

    of the dictionaries define media as a conglomerate of different mass communication. Of those media, the most popular ones is Radio,T.V, print journalism and web/internet . Advertising is another popular and very important medium. For purposes of the media, youth will be classified in age groups of 13 and 21. Media, in today's world, have both positive and negative implications. As far as youth is concerned one thing should be kept in mind, that it depends upon the youth to reap the positive/negative…

    • 711 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    extreme weather events, species extinctions, and changes in agricultural yields. Warming and related changes will vary from region to region around the globe, though the nature of these regional variations is uncertain. The main impact of global warming is climatic changes. Impact of global warming Effects on weather Increasing temperature is likely to lead to increasing precipitation but the effects on storms are less clear. Extratropical storms partly depend on the temperature gradient…

    • 1733 Words
    • 7 Pages
    Powerful Essays
  • Better Essays

    turned into global village because of social media and communication. The technology is the bigger aspect that has promoted it more. Now a day’s media has a great influence in our life and that has been increasing day by day. Young generations in this world are surrounded by social media. Social media refers to the means of interactions among people in which they create, share, and exchange information and ideas in virtual communities and networks. Social media grows rapidly and is an indispensable part…

    • 2092 Words
    • 9 Pages
    Better Essays
  • Good Essays

    IMPACT OF MEDIA ON PURCHASE DECISION OF YOUTH INTRODUCTION Youth between 15-30 age group , constitute an important target segment for the different companies. The media has a positive role to play in moulding youth. Media moulds the character of citizens by providing information, education , and entertainment to them. There are different types of media used by the companies to influence the purchase…

    • 1440 Words
    • 6 Pages
    Good Essays
  • Good Essays

    INTERNET ON MODERN YOUTH The content of the current media culture is often blind to a young person’s cultural,economic and educational background. The concept of a media culture has evolvedowing to the increased volume, variety and importance of mediated signs and messagesand the interplay of interlaced meanings. In the world of young people, themedia are saturated by popular culture and penetrate politics, the economy, leisuretime and education. At present, the global media culture is a pedagogic…

    • 1023 Words
    • 5 Pages
    Good Essays
  • Powerful Essays

    including the ways in which this mediates offline consumer/youth culture, can be usefully framed in terms of media literacy, a framework currently of considerable policy relevance given the duty of the communications regulator, OFCOM, to promote media literacy. This paper draws on the qualitative findings obtained thus far to identify the varieties of literacy evidenced by young people, including their considerable fluency in using new forms of media to create a seamless, ‘always on’, peer-oriented environment…

    • 6185 Words
    • 25 Pages
    Powerful Essays