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. java scipt for ajax in asp.net

java scipt for ajax in asp.net

Scheduled Pinned Locked Moved ASP.NET
csharpjavaasp-netsysadmintools
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.
  • V Offline
    V Offline
    vikas shukla
    wrote on last edited by
    #1

    hi sir, please help me sir please send me the java script for accessing the record from server like ajax.i mean i want to replace my ajax with java script. sir please send me the java scipt for ajax in asp.net for textbox control.

    A 1 Reply Last reply
    0
    • V vikas shukla

      hi sir, please help me sir please send me the java script for accessing the record from server like ajax.i mean i want to replace my ajax with java script. sir please send me the java scipt for ajax in asp.net for textbox control.

      A Offline
      A Offline
      Abolfazl Sheikhloo
      wrote on last edited by
      #2

      var getXmlHttpObject = function () { try { return new XMLHttpRequest(); } catch(e1) { try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch(e2) { try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch(e3) { return false; } } } } var xmlHttp = getXmlHttpObject(); xmlHttp.open('GET', 'getDetails.aspx', true); xmlHttp.onreadystatechange = readyStateChange; xmlHttp.send(null); var readyStateChange = function () { if(typeof xmlHttp == 'undefined' || !xmlHttp) return; if(xmlHttp.readyState == 4 || xmlHttp.readyState == 'complete') { var result = xmlHttp.responseText; var status = xmlHttp.status; if (status != 200 && status != 304) { if(status != 0) alert('Http Error : ' + status); } else callBack(result); } } function callBack(html) { // Do Anything }

      We Can Do Anything, If We Want It
      Easy Web Services in .net 2 - The Code Project - C# WebServices

      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