I have problem with my ASP.NET MVC app when use Mozilla Firefox. I'm use JQuery and this code is not functional. In Google Chrome and IE 8 everything is fine. How solve this. If necessary I will post parts of my JQuerycode
In Site master page I include scripts, something like this:
<script type="text/javascript" src="../../Scripts/jquery-1.3.2.js"></script>
<script src="../../Scripts/jquery-1.3.2.js" type="text/javascript"></script>
<script type="text/javascript" src="../../Scripts/ui.core.js"></script>
<script type="text/javascript" src="../../Scripts/ui.selectable.js"></script>
<script type="text/javascript" src="../../Scripts/ui/ui.accordion.js"></script>
<script type="text/javascript" src="../../Scripts/MicrosoftAjax.debug.js"></script>
<script type="text/javascript" src="../../Scripts/MicrosoftMvcAjax.debug.js"></script>
<script type="text/javascript" src="../../Scripts/jquery.dataTables.js"></script>
<script type="text/javascript" src="../../Scripts/ui/ui.datepicker.js"></script>
<script type="text/javascript" src="../../Scripts/jquery.bstablecrosshair.js"></script>
<script src="../../Scripts/jquery.jqGrid.min.js" type="text/javascript"></script>
<script src="../../Scripts/jqModal.js" type="text/javascript"></script>
<script src="../../Scripts/jqDnR.js" type="text/javascript"></script>
Most important part of code who is not work on Firefox:
<script type="text/javascript">
$(document).ready(function() {
$('input:radio').click(function() {
var num = "";
var location = "";
var loc = $("input:checked").val();
var lenght = loc.lenght;
var tmp = loc.substring(0, 2);
if (tmp == "SA") {
num = loc.substring(2, lenght);
location = "SA";
}
if (tmp == "ST") {
num = loc.substring(2, lenght);
location = "STH";
}
if (tmp == "SH") {
num = loc.substring(2, lenght);
location = "SASTH";
}
if (tmp == "NE") {
num = loc.substring(2, lenght);
location = "NEW";
}
var article_number = $("input[id=" + num + "]").val();
//alert(article_number +" "+ num);
$.post("/ImportXML/DevAccEditTempTable", { location: location, article_number: article_number, loc: num }, function(data) {
if (data.error == "Error") {
alert("Error: quantity is too large! ");
window.location.href = "/" + data.redirect;
}
else {
window.location.href = "/" + data.redirect;
}
}, "json");
});
});
</script>