达到所需的滚动点时,功能未触发

时间:2018-04-09 20:42:33

标签: javascript scroll settimeout

我正在处理一个较大的应用程序的一小部分。我正在尝试在上面的create procedure [dbo].[SP_GetRequestHTTP](@url varchar(2048), @reponseType varchar(10) = 'text') as begin declare @responseTable table ( StatusCode nvarchar(32), StatusText nvarchar(32), ResponseText nvarchar(max), SpErrorMessage varchar(max) ); declare @responseText table(content nvarchar(max)); declare @ret int; declare @status nvarchar(32); declare @statusText nvarchar(32); declare @spErrorMessages nvarchar(4000); declare @token int; -- Open the connection exec @ret = sp_OACreate 'MSXML2.ServerXMLHTTP', @token out; if @ret <> 0 begin insert into @responseTable (spErrorMessage) values ('Unable to open HTTP connection'); select * from @responseTable; return; end -- Send the request exec @ret = sp_OAMethod @token, 'open', null, 'GET', @url, 'false'; exec @ret = sp_OAMethod @token, 'send', null, null; -- Handle the response exec @ret = sp_OAGetProperty @token, 'status', @status out; exec @ret = sp_OAGetProperty @token, 'statusText', @statusText out; if @reponseType = 'binary' begin declare @binaryResult table(content varbinary(max)); insert into @binaryResult exec sp_OAGetProperty @token, 'responseBody'; insert into @responseText select top 1 sys.fn_varbintohexstr(content) from @binaryResult; end else insert into @responseText exec sp_OAGetProperty @token, 'responseText' -- Close the connection exec @ret = sp_OADestroy @token; if @ret <> 0 begin insert into @responseTable (spErrorMessage) values ('Unable to close HTTP connection') select * from @responseTable; return; end insert into @responseTable values (@status, @statusText, (select top 1 * from @responseText), null); select * from @responseTable; return; end 达到某个点时加载div(页面)。虽然该点已成功到达,但之后触发的函数不起作用。

任何帮助将不胜感激。在函数div中,一旦到达位置,函数返回DisplayManager.prototype.trackingPage并启动进程以加载下一个true(页面)。

div

0 个答案:

没有答案