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. Problem in ajax

Problem in ajax

Scheduled Pinned Locked Moved ASP.NET
javascriptsysadminhelp
3 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.
  • A Offline
    A Offline
    abulhassan_shock
    wrote on last edited by
    #1

    i am using the below code to initialize the xmlhttprequest try { obj = new XmlHttpRequest(); } catch(e) { try { obj = new ActiveXObject("Microsoft.XMLHTTP"); } catch(e1) { obj = new ActiveXObject("Msxml2.XMLHTTP"); } } it works fine in my system. but when accessed from network, the ajax features doesnt work. I have placed the code for ajax and some validation scripts in the .js file. The validation scripts works fine, but not the ajax scripts. Please give me solution...

    Regards, Abul.

    G 1 Reply Last reply
    0
    • A abulhassan_shock

      i am using the below code to initialize the xmlhttprequest try { obj = new XmlHttpRequest(); } catch(e) { try { obj = new ActiveXObject("Microsoft.XMLHTTP"); } catch(e1) { obj = new ActiveXObject("Msxml2.XMLHTTP"); } } it works fine in my system. but when accessed from network, the ajax features doesnt work. I have placed the code for ajax and some validation scripts in the .js file. The validation scripts works fine, but not the ajax scripts. Please give me solution...

      Regards, Abul.

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      Standard question #1: What do you mean by "not working"? Standard question #2: What error message do you get?

      --- b { font-weight: normal; }

      A 1 Reply Last reply
      0
      • G Guffa

        Standard question #1: What do you mean by "not working"? Standard question #2: What error message do you get?

        --- b { font-weight: normal; }

        A Offline
        A Offline
        abulhassan_shock
        wrote on last edited by
        #3

        for qstn #1: the ajax task is to check records in the db whether the name i entered in the textbox exists or not. it displays the message whether it exists or not. when accessed from network, during the event(i.e., on key press) an alert message box displays as "The page is accessing information that is not under its control. This poses a security risk. Do you want to continue ? " for qstn #2: if i give "yes" to the alert box, there's no response nor any error message. if i give no, still there is no response and it gives a javascript error as "Permission denied". This error is displayed at the bottom of the window and not as a textbox. am i clear ?

        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