Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. probs in create xmlhttp in mozilla

probs in create xmlhttp in mozilla

Scheduled Pinned Locked Moved ASP.NET
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Member 3879881
    wrote on last edited by
    #1

    Hi guys really i got tired in this..., i am using create xmlhttp concept in my project..., its working fine in ie...,but not in mozilla..., in mozilla if i give the alert statement for my request object..., its working fine...,if i remove the alert its not working..., really not getting whats the probs..., function CreateXmlHttp1() { var browserName=navigator.appName; if (browserName=="Microsoft Internet Explorer") { if(window.ActiveXObject) { try { senNif = new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) { try { senNif = new ActiveXObject("Microsoft.XMLHTTP"); } catch(oc) { senNif = null; } } } } else { if (window.XMLHttpRequest) { senNif = new XMLHttpRequest(); } } } function SetNewDiscussion(txtcomment,txtname,txtemail) { var tf=checkTextArea(txtcomment, "2000"); if(tf == false) { alert("Please Enter only 2000 characters"); return false; } if(txtcomment=="") { alert("Enter Your Comment"); document.getElementById("txtDiscComment").focus(); return false; } else if(txtname=="") { alert("Enter Your Name"); document.getElementById("txtDiscName").focus(); return false; } else { var bloghidsrno=document.getElementById("<%=hidblogsrno.ClientID %>").value; var tdDiscnewresult=document.getElementById('tdDiscnewresult'); var Url; Url="BlogsDiscussionInsert.aspx"; var params = "blogsrno="+bloghidsrno+"&txtcomment="+txtcomment+"&txtname="+txtname+"&txtemail="+txtemail+"×tamp="+new Date().getTime(); CreateXmlHttp1(); var type="RP"; if(senNif) { senNif.open("POST", Url, true);

    M 1 Reply Last reply
    0
    • M Member 3879881

      Hi guys really i got tired in this..., i am using create xmlhttp concept in my project..., its working fine in ie...,but not in mozilla..., in mozilla if i give the alert statement for my request object..., its working fine...,if i remove the alert its not working..., really not getting whats the probs..., function CreateXmlHttp1() { var browserName=navigator.appName; if (browserName=="Microsoft Internet Explorer") { if(window.ActiveXObject) { try { senNif = new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) { try { senNif = new ActiveXObject("Microsoft.XMLHTTP"); } catch(oc) { senNif = null; } } } } else { if (window.XMLHttpRequest) { senNif = new XMLHttpRequest(); } } } function SetNewDiscussion(txtcomment,txtname,txtemail) { var tf=checkTextArea(txtcomment, "2000"); if(tf == false) { alert("Please Enter only 2000 characters"); return false; } if(txtcomment=="") { alert("Enter Your Comment"); document.getElementById("txtDiscComment").focus(); return false; } else if(txtname=="") { alert("Enter Your Name"); document.getElementById("txtDiscName").focus(); return false; } else { var bloghidsrno=document.getElementById("<%=hidblogsrno.ClientID %>").value; var tdDiscnewresult=document.getElementById('tdDiscnewresult'); var Url; Url="BlogsDiscussionInsert.aspx"; var params = "blogsrno="+bloghidsrno+"&txtcomment="+txtcomment+"&txtname="+txtname+"&txtemail="+txtemail+"×tamp="+new Date().getTime(); CreateXmlHttp1(); var type="RP"; if(senNif) { senNif.open("POST", Url, true);

      M Offline
      M Offline
      Murugesan G
      wrote on last edited by
      #2

      Dude! I don't find anything wrong but u were reloading your page imdtly sending request. can u comment it and have a try //window.location.reload();

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups