AJAX with JQuery

来源:互联网 发布:c语言if条件语句 编辑:程序博客网 时间:2024/05/18 03:50
</div>
<div class="content" style="margin-bottom: 5px;">
 <strong>1.&nbsp; Add the results of an AJAX call in an HTML element:</strong><ul>
  <li>GET:</li>
 </ul>
 <blockquote>
  <p><a href="http://www.studentguru.gr/blogs/solidus/image_2FB484C3.png">
  <img title="image" alt="image" src="http://www.studentguru.gr/blogs/solidus/image_thumb_4AECDDC4.png" height="83" border="0" width="323"></a>
  </p>
  <p>We enter the url of the page to call.</p>
 </blockquote>
 <ul>
  <li>POST:</li>
 </ul>
 <blockquote>
  <p><a href="http://www.studentguru.gr/blogs/solidus/image_25EF1D4B.png">
  <img title="image" alt="image" src="http://www.studentguru.gr/blogs/solidus/image_thumb_61428309.png" height="84" border="0" width="320"></a>
  </p>
  <p>We enter the url of the page to call and the parameters of the POST
  call (here, the parameter of the POST call is named “id”).</p>
 </blockquote>
 <p><strong>2.&nbsp; Make an AJAX call and do “something” when the result is
 received:</strong></p>
 <ul>
  <li>GET:</li>
 </ul>
 <blockquote>
  <p><a href="http://www.studentguru.gr/blogs/solidus/image_6A321548.png">
  <img title="image" alt="image" src="http://www.studentguru.gr/blogs/solidus/image_thumb_738DDA7C.png" height="162" border="0" width="318"></a>
  </p>
  <p>We enter the url of the page to call and the function to be called
  when the result is received.</p>
 </blockquote>
 <ul>
  <li>POST:</li>
 </ul>
 <blockquote>
  <p><a href="http://www.studentguru.gr/blogs/solidus/image_55432386.png">
  <img title="image" alt="image" src="http://www.studentguru.gr/blogs/solidus/image_thumb_49AD6647.png" height="183" border="0" width="319"></a>
  </p>
  <p>We enter the url of the page to call, the parameters of the POST call
  and the function to be called when the result is received.</p>
 </blockquote>
 <div style="clear: both;">
&nbsp;</div>
</div>
<span class="acknowledgement">
0 0