Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Mar 21st, 2006, 6:43 PM   #11
Cerulean
Professional Programmer
 
Cerulean's Avatar
 
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4 Cerulean is on a distinguished road
Quote:
It can also return text (XMLObj.responseText). One needs to specify XMLObj.setRequestHeader ("Content-Type", "application/x-www-form-urlencoded");
I don't believe so - i've never had to explicitly state that when using responseText under any browser i've tested with (Firefox 1.0+, IE 5.0+, Opera 8.0+, Konqueror 3.3+).
Cerulean is offline   Reply With Quote
Old Mar 21st, 2006, 7:11 PM   #12
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4 Dameon is on a distinguished road
In agreement with Cerulean on responseText. The Content-type header can be set as listed to mimic HTML form submission if needed, perhaps to interoperate with scripts originally designed to work with regular forms (in the event that they depend on the header for some reason).
But DaWei is correct;IE requires different instantiation, in some or most versions at least.
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270
Dameon is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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 On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:04 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC