Preview

Impact of Media on Youth

Powerful Essays
Open Document
Open Document
2030 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Impact of Media on Youth
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

  • Satisfactory Essays

    Basta

    • 1044 Words
    • 5 Pages

    Try this code http://www.w3schools.com JavaScript Programming for Absolute Beginners sirmark Try this code http://www.w3schools.com JavaScript Programming for Absolute Beginners sirmark JavaScript Introduction lar scripting language on the internet, and works http://www.w3schools.com JavaScript Programming for Absolute Beginners sirmark Internet Explorer JavaScript Introduction http://www.w3schools.com JavaScript Programming for Absolute Beginners sirmark Google Chrome JavaScript Introduction http://www.w3schools.com JavaScript Programming for Absolute Beginners sirmark Mozilla Firefox JavaScript Introduction http://www.w3schools.com JavaScript Programming for Absolute Beginners sirmark Opera JavaScript Introduction http://www.w3schools.com JavaScript Programming for Absolute Beginners sirmark Safari JavaScript Introduction http://www.w3schools.com JavaScript Programming for Absolute Beginners sirmark What is JavaScript? avaScript was designed to add interactivity to HTML pag avaScript is a scripting language scripting language is a lightweight programming langua http://www.w3schools.com JavaScript Programming for Absolute Beginners sirmark What is JavaScript? embedded directly into HTML pages preted language (means that scripts execute without pr vaScript without purchasing a license http://www.w3schools.com JavaScript Programming for Absolute Beginners sirmark What is JavaScript?…

    • 1044 Words
    • 5 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Lego Jones Case Study

    • 451 Words
    • 2 Pages

    var size = t.length; for (i = 0; i < size; i++) { t[i].style.background = "blue"; } } function updateCountryCode(object) //function to update international telephone No { if (object.value =="default") { document.form1.code.value =""; } if (object.value == "France") { document.form1.code.value ="++924"; } if (object.value == "Ireland") { document.form1.code.value ="++353"; } if (object.value == "England") { document.form1.code.value ="++666"; } if (object.value == "USA") { document.form1.code.value ="++1"; } if (object.value == "Germany") { document.form1.code.value ="++656"; } } function updatedaysrental(object) //function to update period of car rental { if (object.value ==…

    • 451 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    // == UserScript== // @name Cookie Clicker Cheats // @namespace http://userscripts.org/users/zackton // @description Enable/Disable different cheats/hacks for Cookie Clicker // @include http://orteil.dashnet.org/cookieclicker/ // @include orteil.dashnet.org/cookieclicker/ // @updateURL http://userscripts.org/scripts/source/176985.meta.js // @require http://userscripts.org/scripts/source/187400.user.js // @require http://userscripts.org/scripts/source/276064.user.js // @icon http://images2.wikia.nocookie.net/__cb20130827014914/cookieclicker/images/5/5a/PerfectCookie.png //…

    • 643 Words
    • 18 Pages
    Powerful Essays
  • Satisfactory Essays

    this source explains to us, how social networking sites have a big impact on teenage girls, and they can often be the cause of anorexia as they lead to sites such as ‘thinspiration’ and ‘proanna’ which are websites specialised in showing teenage girls how to achieve unnaturally skinny bodies.…

    • 448 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    The impact of the media on youthful kids is particularly striking. Youthful kids regularly figure out the proper behavior and carry on from what they see at home, from the grown-ups and more established associates they interact with, and from what they see on TV. Youthful youngsters intuitively mimic activities and model the conduct they watch, be that as it may they don't have the insightfulness or development to figure out if the activity is fitting or great. Research demonstrates that the normal American kid spends around 27 hours for every week staring at the TV (Minow and LaMay, 1995, p. 32). The American Psychological Association assesses that before the normal American youngster completes eighth grade, he or she will see 8,000 killings…

    • 308 Words
    • 2 Pages
    Good Essays
  • Powerful Essays

    Javascript Course Notes

    • 9708 Words
    • 39 Pages

    * Client-side JavaScript extends the core language by supplying objects to control a browser (Navigator or another web browser) and its Document Object Model (DOM). For example, client-side extensions allow an application to place elements on an HTML form and respond to user events such as mouse clicks, form input, and page navigation.…

    • 9708 Words
    • 39 Pages
    Powerful Essays
  • Good Essays

    We’ve all heard the expression, “Well if your friends jumped off a bridge, would you jump, too?” from our parents, or other adult figure-type person. In today’s society, adolescents seem to be taking this phrase to a new level. As the media continues to abuse the popularity of the too-thin actors and actresses, exploit famous persons’ suicides, and portray ‘problems’ in general as being ‘cool’ with TV shows focused on rehab circles featuring those popular people our culture knows and loves, more and more young people are finding reasons to copycat these problematic ‘role models’, resulting in a crisis within the youth. The depression, low self esteem, eating disorder, and suicide rate disaster within the youth can all be traced back to the media, which tends to glamorize such problems, so that they appeal to adolescents as being the next ‘in’ thing.…

    • 600 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Media Effecting Children

    • 324 Words
    • 2 Pages

    1. How does this article relate to the media article you selected for the first assignment ?…

    • 324 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    mmnmmm

    • 2432 Words
    • 10 Pages

    type of HTML you are using as well as what language the characters are in. The type of DTD that I would…

    • 2432 Words
    • 10 Pages
    Good Essays
  • Powerful Essays

    Tumblr Floral Theme

    • 2212 Words
    • 9 Pages

    <!-- FLORAL THEME - Base code BY BONJOURRPARIS.TUMBLR.COM - NOT TO BE COPIED NOR DISTRIBUTED. --> <script type="text/javascript" src="http://codysherman.com/tools/infinite-scrolling/code"></script> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTMLL 1.0 Transitional//EN" "http://www.w3.org/TR/xhtmll/DTD/xhtmll-transitional.dtd> <html> <head> <link rel="shortcut icon" href="{favicon}"> <link rel="alternate type="application/rss+xml" href="{RSS}"> {block:Description} <meta name="description" content="{MetaDescription}" /> {/block:Description} <meta name="color:Background" content="#f8f8f8"> <meta name="color:Text" content="#7d7d7d"> <meta name="color:Link" content="#e27999"> <meta name="color:Link Hover" content="#a8a6a6"> <meta name="color:Decorations" content="#de4072"> <meta name="image:Your" content="http://static.tumblr.com/ykhxonh/uqOm9ty58/tumblr_m66a89mu0x1r0gq4mo1_500.jpg"> <meta name="if:Enable Image Opacity" content="1"> <meta name="if:Glitter Cursor" content="1"> <style type="text/css"> #fade { /*--Transparent background layer--*/ display: none; /*--hidden by default--*/ background: #000; position: fixed; left: 0; top: 0; width: 100%; height: 100%; opacity: .80; z-index: 9999; } .popup_block{ display: none; /*--hidden by default--*/ background: #fcfbf8; padding: 10px; border: 5px solid…

    • 2212 Words
    • 9 Pages
    Powerful Essays
  • Good Essays

    Sex and the secular lifestyle, seems to be the biggest selling industry on the marked, next to electronics; however has its fair share of effects on the adolescents of today. The media identifies or portrays the act of sexuality as the norm. The average television show often shows young girls being flirtatious, performing sexual acts, and disrespecting their parents. The media often display young men as sexual predators, acting like horn dogs, pressuring the girls for sex. Homosexuality is now more prevalent in the media, as other aspects of sexuality are.…

    • 566 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    package lab4.t1; import java.net. *; import java.io. *; public class Lab4T1 public static void main(String[] args) throws Exception { { URL aURL = new URL("http://example.com:80/docs/books/tutorial" + "/index.html?name=networking#DOWNLOADING"); System.out.println("protocol = " + aURL.getProtocol()); System.out.println("authority = " + aURL.getAuthority()); System.out.println("host = " + aURL.getHost()); System.out.println("port = " + aURL.getPort()); System.out.println("path = " + aURL.getPath()); System.out.println("query = "…

    • 310 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Impact of Media

    • 3010 Words
    • 13 Pages

    Hundreds of research studies over the past forty years have clearly shown that there is a strong relationship…

    • 3010 Words
    • 13 Pages
    Good Essays
  • Powerful Essays

    From: <Saved by WebKit> Subject: abapapercriticalthinkingandethics (1).docx Date: Sat, 10 Apr 2015 06:49:21 -0000 MIME-Version: 1.0 Content-Type: multipart/related; type="text/html"; boundary="----=_NextPart_000_696A_3FDC499A.01126E13" ------=_NextPart_000_696A_3FDC499A.01126E13 Content-Type: text/html Content-Transfer-Encoding: quoted-printable Content-Location: chrome-extension://bpmcpldpdmajfigpchkicefoigmkfalc/views/app.html <html><head><meta charset=3D"windows-1252"> <title>abapapercriticalthinkingandethics (1).docx</title> <style type=3D"text/css"> #sandbox { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; display: none; } </style> <link rel=3D"stylesheet" type=3D"text/css" href=3D"chrome-extension://bpm= cpldpdmajfigpchkicefoigmkfalc/scripts/lib/qowt/assets/common.css"> <link rel=3D"stylesheet" type=3D"text/css" href=3D"chrome-extension://bpm= cpldpdmajfigpchkicefoigmkfalc/css/application.css"> =20 =20 <link type=3D"image/x-icon" rel=3D"shortcut icon" href=3D"chrome-extension:= //bpmcpldpdmajfigpchkicefoigmkfalc/img/doc.ico"></head> <body> <iframe id=3D"sandbox" name=3D"sandbox" allowfullscreen=3D"true" sandbox=3D= "allow-scripts allow-same-origin allow-popups" src=3D"chrome-extension://bp= mcpldpdmajfigpchkicefoigmkfalc/views/qowt.html" style=3D"display: block;"><= /iframe> <div id=3D"pluginContainer"><embed name=3D"nacl_module" id=3D"qonacl" width= =3D"0" height=3D"0" src=3D"chrome-extension://bpmcpldpdmajfigpchkicefoigmkf= alc/plugin/word.nmf" type=3D"application/x-nacl"></div><div class=3D"editor= progress-spinner-container fader" style=3D"display: none; opacity: 0;"><em= bed class=3D"editor progress-spinner" src=3D"chrome-extension://bpmcpldpdma= jfigpchkicefoigmkfalc/img/progressSpinner.svg"><div class=3D"editor progres= s-spinner-label">Loading</div></div><iframe name=3D"oauth2relay677248439" i=…

    • 12439 Words
    • 50 Pages
    Powerful Essays
  • Powerful Essays

    Xbrl

    • 2222 Words
    • 9 Pages

    Program the Web Browse the Web Web Services Text Files Web Pages Innovation FTP, E-Mail, Gopher…

    • 2222 Words
    • 9 Pages
    Powerful Essays