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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Microsoft JScript runtime error: Object required

Microsoft JScript runtime error: Object required

Scheduled Pinned Locked Moved ASP.NET
help
2 Posts 2 Posters 1 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.
  • H Offline
    H Offline
    Haider M Rizvi
    wrote on last edited by
    #1

    I am getting "Microsoft JScript runtime error: Object required" on "CallServerMethod". display() function is called on onblur event of TextBox.

    function display() {
    var context = new Object();
    CallServerMethod(document.getElementById("ctlLogin").value, context);
    }

    V 1 Reply Last reply
    0
    • H Haider M Rizvi

      I am getting "Microsoft JScript runtime error: Object required" on "CallServerMethod". display() function is called on onblur event of TextBox.

      function display() {
      var context = new Object();
      CallServerMethod(document.getElementById("ctlLogin").value, context);
      }

      V Offline
      V Offline
      Vengatachalapathy Palanivel
      wrote on last edited by
      #2

      The problem is due to the accessing an object before its fully loaded. For jQuery, try using $(document).ready(function(){--- jQuery functions go here ----}); Please let me know, if you still face the problem.

      Regards, Vengat P

      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