[jQuery] Ajax Failing in Firefox 3.0.10
I have the following code (actually, this is stripped down for clarity
though the functionality is the same):
<a id="delete_item_2">delete</a>
<script type="text/javascript">
$("#delete_item_2").click(function(e){
alert("before post");
$.post("/items/delete/2/");
alert("after post");
});
</script>
This works in IE and Safari but bombs in Firefox (though both alerts
are triggered). However, it works OK in Firefox to just enter the post
url in the browser (i.e., www.example.com/items/delete/2/).
Further, this works locally on my dev server but not on my production
host; I am running under Apache with jQuery 1.3.2.
Just on the off chance that someone else has noticed this, I am
running under Django on a Webfaction shared host.
Any thoughts?
- Tim