w6b practical web.pdf
Document Details
Uploaded by Deleted User
Tags
Full Transcript
Name : Nidhi Pravin Patil Roll No:1957 Class:FYCS(B) Practical No.6 Aim : a. Create a xml file and display its data on web page b. Create JSON file and display it (A) Code : Everyday Italian Giada De laurentiis...
Name : Nidhi Pravin Patil Roll No:1957 Class:FYCS(B) Practical No.6 Aim : a. Create a xml file and display its data on web page b. Create JSON file and display it (A) Code : Everyday Italian Giada De laurentiis 2005 30.00 Harry Potter J K. Rowling 2005 29.99 XQuery Kick Start James McGovern Per Bothner Kurt Cagle James Linn Vaidyanathan Nagarajan 2003 49.99 Name : Nidhi Pravin Patil Roll No:1957 Class:FYCS(B) Learning XML Erick T. Ray 2003 39.95 Output : Name : Nidhi Pravin Patil Roll No:1957 Class:FYCS(B) Name : Nidhi Pravin Patil Roll No:1957 Class:FYCS(B) Name : Nidhi Pravin Patil Roll No:1957 Class:FYCS(B) (B) Code : JSON example Nidhi Pravin Patil. var object1={"language":"java","author":"herbert schild"}; document.write("JSON with javascript example") document.write(""); document.write(" language:"+object1.language+""); document.write("author:"+object1.author+""); var object2={"language":"Python","author":"abc"}; document.write(" language:"+object2.language+""); document.write("author:"+object2.author+""); var object3={"language":"Maths","author":"xyz"}; document.write(" language:"+object3.language+""); document.write("author:"+object3.author+""); Output : Name : Nidhi Pravin Patil Roll No:1957 Class:FYCS(B) Code : Creation Of Array Object in javascript using JSON document.writeln(" JSON array object "); var books={"Pascal":[ {"Name":"Pascal made simple","price":700}, {"Name":" Guide to Pascal","price":400}], "Scala":[ {"Name":"Scala for the impatient","price":1000}, {"Name":"Scala in depth","price":1300}] } var i=0 document.writeln(""); Name : Nidhi Pravin Patil Roll No:1957 Class:FYCS(B) for(i=0;i