Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:631984
More Search Options
RSS Available
Matching Posts
Re: How to handle the XmlHttp.responseText property of the XMLHttpRequest object
"Why would it matter anyways? If the page is closing nothing else is going to display or happen on the page anyways." I agree with you, however, it appears that my child window may sometimes shut down prior to receiving the server response message. This code should ALWAYS wait for the server response prior to shutting down the child window. if(XmlHttp.status == 200) { var ob=XmlHttp.responseText; self.close(); } In my test environment, it ALWAYS works fine (i.e. calls back to the server
Posted to
Client Side Web Development
(Forum)
by
robertmazzo
on 6/22/2009
How to handle the XmlHttp.responseText property of the XMLHttpRequest object
I'm using the XMLHttpRequest object in a child window called "Submit Orders" (which the web user launches from his main order window). Once the user is finished he clicks on the button "Unlock and return" , which in turn calls javscript function callserver() below. As you can see, I simply want to callback to the page_load() event of orders.aspx ; this simply unlocks the orders and sends a Response.Write() back to the client. The problem occurs at times where the child window
Posted to
Client Side Web Development
(Forum)
by
robertmazzo
on 6/16/2009
Re: How to handle the XmlHttp.responseText property of the XMLHttpRequest object
Sorry about the explanation. It's a bit hard to make this clear and concise. The main point of my whole discussion really is to make sure that this script gets hit before my page closes : if(XmlHttp.status == 200) { var ob=XmlHttp.responseText; self.close(); } I wonder if this onbeforeload event on my child window is causing the window to close prematurely : window.onbeforeunload = confirmExit; function confirmExit() { if (needToConfirm) { return "Please use RETURN button on submit page
Posted to
Client Side Web Development
(Forum)
by
robertmazzo
on 6/16/2009
Re: XMLHttpRequest call to server-side code
Would anyone recommend I add a Return after Response.End(); so my page_load() event doesn't continue executing code ? Thanks, Bob
Posted to
Client Side Web Development
(Forum)
by
robertmazzo
on 4/16/2009
XMLHttpRequest call to server-side code
For the most part, I am successfully using the XMLHttpRequest object via javascript to make a server-side call. My server-side call works fine in the page_load() event, but the Response.Write() is causing some whacky problems on the browser side (specifically at the client location, but not in my dev and test environments). The browser error is: Error: "Sys.WebForms.PageRequestManagerParseErrorException: The message received from the server could not be parsed. Common causes for this error are
Posted to
Client Side Web Development
(Forum)
by
robertmazzo
on 4/16/2009
Re: support for XMLHttpRequest object in asp.net 3.5
Hi Martin, In terms of your above answer re: "the browser 'swallows' the request as you call self.close()", my initial problem was that I forgot to add a Response.Write() statement in the server-side page_load() event of my aspx. Therefore the handleresponse event was choking. In any case, I took your suggestion to add self.close() in the HandleReponse function. I did that because the response.write() from the server was occasionally getting written to the parent window (not good
Posted to
Client Side Web Development
(Forum)
by
robertmazzo
on 4/16/2009
support for XMLHttpRequest object in asp.net 3.5
I am trying to test the use of the XMLHttpRequest object in asp.net 3.5, but to no avail. For starters, I am trying to his the page_load() event of Orders.aspx.cs (see requestURL var in callserver() below). When in debug mode, I can trace thru the script but I never hit the server-side code. do I have it wrong here ? Please see code below... Thanks in advance, Bob ------------- Here's what I have so far: BUTTON AND SCRIPT ON ASPX PAGE: <asp: Button ID="btnCloseTop" OnClientClick
Posted to
Client Side Web Development
(Forum)
by
robertmazzo
on 4/9/2009
Re: asp:Button doesn't always postback to server
Hi...in this case I do not want to stop postback. I want to make sure it always posts back. I needed to do some unlocking on the server side...thanks - Bob
Posted to
Data Presentation Controls
(Forum)
by
robertmazzo
on 4/8/2009
Re: asp:Button doesn't always postback to server
I don't see how it could return False. Here's the js script : function OnAbortSubmit () { releaseDirtyFlag(); var hidClient = document.getElementById(hidClientAliasID); var hidUser_Id = document.getElementById(hidUser_IdAliasID); var lcClient = hidClient.value; // pass to aspx form var lcUser_Id = hidUser_Id.value; var hidRefresh = opener.document.getElementById("ctl00_ContentPlaceHolder1_hidRefreshImg"); // HARD CODING WORKS ! if (hidRefresh != null){ hidRefresh.click(); // Cause
Posted to
Data Presentation Controls
(Forum)
by
robertmazzo
on 4/8/2009
asp:Button doesn't always postback to server
Can someone please take a look at my asp:Button below to see if there's any reason why it wouldn't post back 100% of the time ? At first I realized that my potential problem was UseSubmitBehavior="false" , so I changed it to "true" as you'll see below : < asp:Button ID="btnCloseTop" OnClientClick ="javascript:OnAbortSubmit();" Text="Unlock and Return to Orders" runat="server" OnClick="btnClose_Click" UseSubmitBehavior
Posted to
Data Presentation Controls
(Forum)
by
robertmazzo
on 4/8/2009
Page 1 of 32 (314 items) 1
2
3
4
5
Next >
...
Last »
WindowsClient:
Debugging Crash Dumps with Visual Studio 2010
WindowsClient:
Debugging Crash Dumps with Visual Studio 2010
Channel 9:
Channel 9 Live at PDC09 Kurt DelBene
Channel 9:
Channel 9 Live at PDC09 Mike Anguilo
Channel 9:
Channel 9 Live at PDC09: Dean Hachamovitch
Channel 9:
Channel 9 Live at PDC09: Gary Flake
Channel 9:
Channel 9 Live at PDC09: Mark Russinovich and Patrick Dussud
Channel 9:
Ping 40: Black screen claims- retracted, Windows 7, Bing Maps, Office 2010
WindowsClient:
WPF Touch Basics
WindowsClient:
WPF Touch Basics
TechNet Edge:
AlignIT IT Manager Podcast #32: Agile Application Lifecycle Management
Channel 9:
Bharat Shah: Microsoft Online Services Overview
WindowsClient:
Holland America adds Surface to several ships in it’s new Mix lounge
ASP.NET:
RIA Services Link Listing #1
Channel 9:
Reactive Extensions API in depth: Merge
TechNet Edge:
Forefront Protection for Exchange customer story
WindowsClient:
Windows Client Developer Roundup for 12/7/2009
WindowsClient:
Introducing the new Bing Maps beta
ASP.NET:
My Presentations in Europe (December 2009)
Channel 9:
Channel 9 Live at PDC09: Dr Jeff Norris, NASA
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online