Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsXMLXMLError detection and reporting addition?Error detection and reporting addition?
Previous
 
Next
New Post
4/17/2007 5:36 PM
 

Hi Stefan and the XML team,

just ran into another issue that might make a good feature enhancement in the next release.

I would like a way to detect and respond to (by writing out custom strings to the browser) errors when trying to find the xml source.

right now, if the xml source is slow and the request times out, or if the xml is badly formed or whatever other problem exists, I simply get a blank page. I'm glad it doesn't just give back strange  messages, but I used to be able to detect that in my old primitive xml reads in .asp, and give the user some idea that something had gone wrong. On timeout I can ask them to refresh the page, etc.

It would be good if this was part of the admin interface: error codes to detect and response to output.

thanks for all your work on this module,

Tom Van Wynen

======= a sample of the detection script I use in .asp:

 

'Wait for up to 3 seconds if we've not gotten the data yet"this page is having difficulties loading ..."

Else

If (xml.readyState <> 4) Or (xml.Status <> 200) Then

'Abort the XMLHttp request

xml.Abort

text =

"Problem communicating with remote server..."

Else

text = xml.ResponseText

End If

End If

Response.write(text)

If xml.readyState <> 4 then

xml.waitForResponse 3

End If

'Did an error occur? If so, use a default value for our data

If Err.Number <> 0 then

text =

 
New Post
5/25/2007 11:58 AM
 
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsXMLXMLError detection and reporting addition?Error detection and reporting addition?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out