0

Synchronous XMLHttpRequest calls not blocking on slow internet connections

Hello,

I'm facing a problem while trying to fetch data using synchronous XMLHttpRequest calls (SJAX, not AJAX) on slow networks. The calls are supposed to block till a response is obtained. However, the Konfabulator is not behaving like a browser. On a slightly slow internet connection (or when using a proxy), the Konfabulator reports the following error and displays a blank screen.

CODE
WE 00:00:56:694: [T:3364] !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WE 00:00:56:694: [T:3364] ERROR!ERROR!ERROR!ERROR!ERROR!
WE 00:00:56:694: [T:3364] !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WE 00:00:56:694: [T:3364] TypeError: data has no properties (MainView.js: Line 74)


On a reasonably fast internet connection, the same piece of code works fine.

Any help in resolving this issue would be greatly appreciated!

TIA

by
2 Replies
  • Synch calls are not allowed if you are planning on releasing your widget to the gallery. It will not be accepted during QA.
    0
  • Thanks for responding Steve. Yes, I do plan to release the widget to the widget gallery.

    The reason I used sync calls was that I got same error while using async calls.

    What are my options?
    0

Recent Posts

in Getting Started / Beginners - Yahoo! TV Widgets