I'm new in ajax

i've success to insert data to my database using ajax in chrome..
but when i open my mozilla, and try again I cant get my script work ??
what happen?
please tell me how the way to fix it ..

Have you checked your developer console for possible errors? Usually it shows information about what's going wrong - if something is going wrong.

no error..
just cant input.
it happen after i combine 2 different script ajax ..
or may be it cause of a double ajax call??

In your Javascript console, do you get a confirmation of your AJAX request being executed? If not, apparently something isn't working right. Could you post the lines of your script that we're talking about here?

//contact
$("#submitcontact").click(function() {

var statuscontact = $("#statuscontact").val();
var id_pesan = $("#id_pesan").val();
    var dataString = 'statuscontact='+ statuscontact + '&id_pesan=' + id_pesan ;

    if(statuscontact=='' || id_pesan=='')
     {
    alert('Please Give Valide Details');
     }
    else
    {
    $("#flashcontact").show();
    $("#flashcontact").fadeIn(200).html('<img src="ajax-loader.gif" align="absmiddle">&nbsp;<span class="loading">Loading ...</span>');
    $.ajax({
    type: "POST",
    url: "account/modul/aksiajax.php?modul=contact&act=inputcontact",
    data: dataString,
    cache: false,
    success: function(html){

  $("div.update").append(html);
  $("div.update li:last").fadeIn("slow");
  document.getElementById('id_pesan').value='';
    $("#id_pesan").focus();

  $("#flashcontact").hide();
  }
 });
}
return false;
    });

In your Javascript console, do you get a confirmation of your AJAX request being executed?

no im not..

now my problem already solved after i change position of my extensi .js to my index page (internal).
and erase unimportant script.

but now when i try this to IE, it not work

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.