简体   繁体   English

在Ajax动态加载的html页面上进行YQL查询

[英]YQL query on an ajax dynamically loaded html page

I want to scrape a page using YQL but the page is loaded via ajax using json files and the returned data is the html file with out any data. 我想使用YQL抓取页面,但是该页面是使用json文件通过ajax加载的,返回的数据是没有任何数据的html文件。 It there a way to make sure the page is fully loaded before returning the data via YQL? 有没有办法在通过YQL返回数据之前确保页面已完全加载? Thanks in advance! 提前致谢! Ryan 瑞安

As far as I know, jquery ajax success function will return the fully loaded response. 据我所知,jQuery ajax成功函数将返回完全加载的响应。 I use it quite often and I have never had it return a partial response from an ajax request where I would be required to wait for more data. 我经常使用它,而我从未让它从ajax请求返回部分响应的情况下,要求我等待更多数据。

Have you used the Firebug NET tab to verify what is being sent and received back in your ajax requests? 您是否已使用Firebug NET选项卡来验证ajax请求中发送和接收的内容? If not, thats a good place to start to see whats going on. 如果没有,那是一个开始看看发生了什么的好地方。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM