MyPage is a personalized page based on your interests.The page is customized to help you to find content that matters you the most.


I'm not curious

How can I show the data without reloading the page in HTML?

0
Started on: 11 July 13
Participants: 1
I don't wanna to reload the page and I want to show directly the Updating.... notification and I wanna reflect the result. Pls help me!
I don't wanna to reload the page and I want to show directly the Updating.... notification and I wanna reflect the result. Pls help me!

This challenge is listed under Development & Implementations Community

Initiator

Senor
Senor
  Follow

I am an Information Technology Student.

More posts by: Senor Echo

Please to reply this post
Important:
  • We hope the conversations that take place on MyTechLogy.com will be constructive and thought-provoking.
  • To ensure the quality of the discussion, our moderators may review/edit the comments for clarity and relevance.
  • Comments that are promotional, mean-spirited, or off-topic may be deleted per the moderators' judgment.

2 Suggestions

  1. 16 July 13
    0

    instead of ajax_info.txt , use any other file like ajax_info.php or ajax_info.asp

  2. 16 July 13
    0

    Using ajax you can load the dynamic data from database using any language like PHP or Java

    Try the below script

    <!DOCTYPE html> <html> <head> <script> function loadXMLDoc() { var xmlhttp; if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("myDiv").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","ajax_info.txt",true); xmlhttp.send(); } </script> </head> <body> <div id="myDiv"><h2>Let AJAX change this text</h2></div> <button type="button" onclick="loadXMLDoc()">Change Content</button> </body> </html>

Awards & Accolades for MyTechLogy
Winner of
REDHERRING
Top 100 Asia
Finalist at SiTF Awards 2014 under the category Best Social & Community Product
Finalist at HR Vendor of the Year 2015 Awards under the category Best Learning Management System
Finalist at HR Vendor of the Year 2015 Awards under the category Best Talent Management Software
Hidden Image Url

Back to Top