This option will reset the home page of this site. Restoring any closed widgets or categories.

Reset

Load Another Webpage Content Using Simple Jquery

Guys here we are gonna see how we can load another webpage content using jquery, very simple to use.

Code:

1. HTML Page

Here is the code of “test.html” file

<head>

<title>Content Showing Script</title>

<script type=”text/javascript” src=”jquery-1.2.6.js”></script>

<script type=”text/javascript”>

function content()

{

$.ajax({

url : “getpage.php”,

success : function (data) {

$(”#content”).html(data);

}

});

}

</script>

</head>

<body>

Get The Content<br><input type=”button” value=”Get Data” onClick=”

content();”><br><textarea id=”content” rows=”10″ cols=”50″></textarea>

2.  Edit the GETPAGE.PHP page and add this script

<?php

echo “This is a test Page<br>”;

echo “From Mistonline.in <br>”;

</body>

</html>

Hope this tutorial helped you a lot.Thanks

VN:F [1.5.7_846]
Rating: 0.0/10 (0 votes cast)
VN:F [1.5.7_846]
Rating: 0 (from 0 votes)

Related posts:

  1. Jquery Basics, How to use jquery?
  2. Simple PHP mail Script
  3. Send Email to Multiple Persons using php
  4. Simple Visitor Counter Using php
  5. Adding a draggable div along with the cursor using simple javascript
  6. Change webpage background color using javascript
  7. Simple Ajax with PHP click tracker

Leave a Reply

Comments (required)

Spam Protected