Jump to content

AJAX JQUERY : url with link not working


vikaspa

Recommended Posts

<html>

<head>

<title>the title</title>

  <script type="text/javascript"

  src="javascript/jquery-1.4.2.js"></script>

  <script type="text/javascript" language="javascript">

  $(document).ready(function() {

      $("#driver").click(function(event){

          $('#stage').load('contactus.php');

      });

  $("#stage").click(function(event){

          $('#stage').load('photogallery.php?cid=36&&subcid=48');

      });

  });

  </script>

</head>

<body>

  <p>Click on the button to load result.html file:</p>

  <div id="stage" style="background-color:blue;">

          STAGE

  </div>

  <input type="button" id="driver" value="Load Data" />

</body>

</html>

 

I tried this ajax

the contactus.php is getting loaded

however the link with parameters

photogallery.php?cid=36&&subcid=48

show blank page

 

please help

 

Link to comment
https://forums.phpfreaks.com/topic/268633-ajax-jquery-url-with-link-not-working/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.