Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XML
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 9th, 2006, 05:46 PM
Registered User
 
Join Date: Sep 2004
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default XMLHTTP and Mozilla

Hello


I have created a script that does async postback to server and then simply uses an alert box to show results. It works both in IE and Mozilla when posting to a different page than the current one. In IE it works to send data to the current page and read response, but in Mozilla it seems to call the page multiple times... Using the sync version of XMLHTTP send, it works ok in Mozilla as well, but the async version does this, so i don't get any response (it seems as if it doesn't even wait for the result to come). This being an asp.net application, i tried debugging and it seems as if the readyState is set to 4 before the server part is done, and the immediately the page is called again (after the request is already marked as finished on client side).

Anyone has any idea what might cause this?

Thank you in advance.

Reply With Quote
  #2 (permalink)  
Old March 10th, 2006, 06:22 AM
Registered User
 
Join Date: Sep 2004
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

After trying a few more times, it seems that in Mozilla every XMLHTTP postback to the same page (both with sync and async calls) causes the entire page to reload. This explains why the page doesn't wait for the server execution to end.

Does anyone have any idea as to why Mozilla is doing that? and how to avoid it?

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mozilla/IE 7 differences Adam H-W CSS Cascading Style Sheets 2 July 9th, 2007 04:16 AM
xmlhttprequest - mozilla alexena XML 0 August 23rd, 2006 07:16 AM
pasteHTML() for mozilla ? Farooq Javascript 0 December 21st, 2005 07:39 AM
Mozilla don't support rickytang CSS Cascading Style Sheets 1 September 18th, 2004 03:23 AM



All times are GMT -4. The time now is 02:48 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.