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. problem with XMLHttpRequest

problem with XMLHttpRequest

Scheduled Pinned Locked Moved Web Development
helpjavascriptquestion
1 Posts 1 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.
  • T Offline
    T Offline
    tranglt
    wrote on last edited by
    #1

    I have some code: -------Javascript ------------ ... function SavePosition(source) { // Call AJAX request to save //var url = "Home.aspx?order=" + getPositionOrder(); url = "Home.aspx?order=0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12" var objXmlHttp = createXMLHTTP(); objXmlHttp.open("GET", url, true); if(objXmlHttp == null) { alert("Browser does not support HTTP request!"); return; } ShowWarning(source, waitingHTML); objXmlHttp.onreadystatechange = function() { if (objXmlHttp.readyState == 4) { if(objXmlHttp.status == 200) { setTimeout("complete()", 2000); } else { alert("Error while trying to save."); } } } objXmlHttp.send(null); } ... ---- Home.aspx.cs --- ... private void Page_Load(object sender, System.EventArgs e) { // Put user code to initialize the page here if (Request["order"] != null) { SavePositionOrder(Request["order"].ToString()); } } OK, I have a button on file Home.aspx. I click the button first, my web is done. But when I click the second the home.aspx seems not load because page_load function don't execute. Thanks Live 2 Code Code 2 Get Money Money 2 Love Love to Live

    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