Skip to main content

Posts

XML : AJAX Tutorial For Beginners

Why Study AJAX? If you want to learn : • Update a web page without reloading the page • Request data from a server - after the page has loaded • Receive data from a server - after the page has loaded • Send data to a server - in the background What is AJAX? AJAX stands for Asynchronous JavaScript And XML. AJAX is not a programming Language. Ajax just uses a combination of : A browser built-in XMLHttpRequest object (to request data from a web server) JavaScript and HTML DOM (to display or use the data) This is how AJAX works:- <!DOCTYPE html> <html> <head> <script> function tryAjax() { var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { document.getElementById("content").innerHTML = this...

Cpp Question : Calculating Price of Eggs

Diary Farm sells organic brown eggs to local customers. They charge Rs 22.50 for a dozen for eggs, or rs 2.10 for individual effs that are not part of a dozen. Write a C++ Program a user for the number of eggs in the order and the displays the amount owned with a full explanation. For Example, typical output might be " You ordered 27 eggs. that's 2 dozens at rs 2.50 per dozen and 3 loose eggs at rs 2.10 each for a total of rs 51.30". The program must iterate until zero is entered for the number of eggs. Code: #include<iostream> using namespace std; int main(void) { int n; float price=0; int r=0,q; char ch; do { cout<<"\nEnter Numbe of eggs OR zero (0) to exit :"; cin>>n; if(n<0) { cout<<"Incorect Value"; } else if(n==0) { exit(0); } else { q=n/12; price+=q*22.50; r=n%12; ...

Rich Dad Poor Dad Book Summary

Why Read "Rich Dad Poor Dad"? Learn how money works. Learn financial literacy. Learn other corporates mistakes. Learn to get out from Rat race. Learn to start not just planning. Learn the Difference between "Asset" and "liability". Learn how you make money work hard for you Rich Dad Poor Dad Lessons: Lesson 1: The Rich Don’t Work for Money Lesson 2: Why Teach Financial Literacy? Lesson 3: Mind Your Own Business Lesson 4: The History of Taxes and The Power of Corporations Lesson 5: The Rich Invent Money Lesson 6: Work to Learn—Don’t Work for Money Lesson 7: Overcoming Obstacles Lesson 8: Getting Started The Book in Few lines: Rich Dad Poor Dad is about Robert Kiyosaki and his two Dads His Real Father (Poor Dad) The Father of his Best Friend (Rich...

XML Basics For Beginners in Short

Why Study XML? It is important to have a good understanding of XML. What is XML? Xml stands for extensible markup language. Xml designed to store and transport data. XML doesn’t do anything. It is just information wrapped in tags. Difference between XML and HTML: XML was designed to carry data – with focus on what data is and HTML was designed to display data with focus on how data looks. XML tags are not predefined like HTML tags are: XML language has no predefined tags. With XML, the author must define both the tags and the document structure. XML Simplifies Things like:- Data Sharing:- Exchanging data between incompatible systems is a time-consuming task for web developers. Large amounts of data must be converted, and incompatible data is often lost. XM...