自动调用httpservice.send
我有一个应用程序,使用 httpservices 来显示 3 个 xml 文件(从 SQL 表自动生成)中的数据。 第一个 xml 文件很小,包含大约 30 个项目,第二个和第三个文件分别包含大约 200-300 个项目。 第一个数据集加载速度很快,并在创建完成时调用。第二个和第三个是从点击事件调用的,需要相当多的时间来加载。应用程序的用户将花费至少 2-3 分钟从第一个数据集中读取数据,因此有没有办法可以在第一个文件完成加载后立即自动调用第二个和第三个 xml 文件的 httpservice.send能够立即显示第一个数据集并消除数据集视图之间的等待时间。答案不需要具体,只要有一个正确的方向就可以了。
所有答案都非常感谢
马特
I have an application that displays the data from 3 xml files (auto generated from SQL table) using httpservices to get them.
The first xml file is small and contains around 30 items, the second and thrid contain around 200-300 items each.
The first dataset loads quickly and is invoked on creationComplete. The second and third are called from click events and take quite a few seconds to load. A user of the application will take at least 2-3 minutes reading the data from the first dataset so is there a way I can have the httpservice.send for the second and third xml files called automatically, straight after the first file has finished loading to be able to show the first dataset immediateley and get rid of the waiting times between dataset views. An answer doesnt need to be specific, just a point in the right direction would be great.
All answers greatly appreciated
Matt
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
改用 AMF。它比 XML 快得多。
Use AMF instead. It's much faster than XML.
是的,只需在 2 和 3 上运行 httpService.send() 方法作为 1 的结果事件的一部分
yeah, just run the httpService.send() method on 2&3 as part of the result event from 1