Recent Posts

This Post Has Been Viewed 99 Times.

Load Another Webpage Content Using Simple Jquery

Posted by admin | Posted in Jquery | Posted on 16-01-2010

0

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)
Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • De.lirio.us
  • Xerpi

Related posts:

  1. Jquery Basics, How to use jquery?
  2. Getting Remote Webpage Info Using PHP
  3. Simple PHP mail Script
  4. Simple Code To Set And Retrieve Cookie Using PHP
  5. Simple file upload script using php
  6. Simple Ajax with PHP click tracker
  7. Learn CSS Basics Very Simple Tutorial

Write a comment

Spam Protected