Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: parsererror with XmlHtpp-post-request



HTTPRequest has two types of returns

1. responseText
2. responseXML

(this is a good starter page for this:
http://developer.apple.com/internet/webcontent/xmlhttpreq.html)

responseText returns the raw text, this allows you to return simple
one word responses like true or false. Or it allows you to return
formatted HTML that you can use in the innerHTML tag of your content
area.

responseXML actually returns an XML object.

I use responseText to populate the landing page of my widget, which is
just a simple html mark up. It allows me to put anything in there,
without defining it in the widget before hand.



On 8/28/06, Stephan Huebner <email@hidden> wrote:
Hi Johnny,

On 28.08.2006, at 21:40, Johnny Storm wrote:

> Did you confirm that the form works through a traditional POST?

Nope, it did not upto now. But I just built a small form that sent
the data by post-request and interestingly, all I get back is a
message that one of the parameters is wrong. The returned message is
plain text only so this might be the reason why I get back an error-
message within the widget as it expects something else like an xml-
document, maybe?

Greetings,

Stephan
--
Gentleman: A man who is able to describe a womans' body without using
his hands -- Anonymous



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Dashboard-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/dashboard-dev/email@hidden

This email sent to email@hidden
References: 
 >parsererror with XmlHtpp-post-request (From: Stephan Huebner <email@hidden>)
 >Re: parsererror with XmlHtpp-post-request (From: Russ White <email@hidden>)
 >Re: parsererror with XmlHtpp-post-request (From: Stephan Huebner <email@hidden>)
 >Re: parsererror with XmlHtpp-post-request (From: Todd Ditchendorf <email@hidden>)
 >Re: parsererror with XmlHtpp-post-request (From: Stephan Huebner <email@hidden>)
 >Re: parsererror with XmlHtpp-post-request (From: Todd Ditchendorf <email@hidden>)
 >Re: parsererror with XmlHtpp-post-request (From: Stephan Huebner <email@hidden>)
 >Re: parsererror with XmlHtpp-post-request (From: Stephan Huebner <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.