<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Ajax reloads my page' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Ajax reloads my page' posted on the 'AJAX' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 18 May 2013 19:47:34 -0700</pubDate>
    <lastBuildDate>Sat, 18 May 2013 19:47:34 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Ajax reloads my page</title>
      <link>http://www.programmersheaven.com/mb/ajax/427180/427180/ajax-reloads-my-page/</link>
      <description>Hy everybody,&lt;br /&gt;
I'm making a website with html, javascript, jquery, and ajax techniques.&lt;br /&gt;
But when i'm sending an ajax request the page reloads!&lt;br /&gt;
Does anyone know why that is?&lt;br /&gt;
this is my ajax code:&lt;br /&gt;
&lt;pre class="sourcecode"&gt;$(document).ready(function(){
$("form").submit(function(){
	$.ajax({
		type:"POST",
		url:"ajax.php",
		data:"a="+$("#a").val()+"&amp;amp;distance="+$("#b").val()
+"&amp;amp;c="+$("#c").val(),
		success: function(r){$("#result_wrapper").html(r)},
		error: function(){alert("error")}
	})
});
});&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Tempestas Ludi.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ajax/427180/427180/ajax-reloads-my-page/</guid>
      <pubDate>Thu, 02 Feb 2012 09:09:06 -0700</pubDate>
      <category>AJAX</category>
    </item>
  </channel>
</rss>