响应表时响应表问题

时间:2016-03-01 14:07:17

标签: javascript jquery css

所以我试图在这里使用它:

http://codepen.io/dudleystorey/pen/Geprd

现在它部分有效。

目前,如果您使用该演示,您可以看到 CREATE TRIGGER [dbo].[ax_Triger] ON [dbo].[extraTable] FOR INSERT, UPDATE, DELETE AS SET NOCOUNT ON; --Capture the Operation (Inserted, Deleted Or Updated) DECLARE @operation int DECLARE @Count AS INT SET @operation = 1 SELECT @Count = COUNT(*) FROM DELETED IF @Count > 0 BEGIN SET @operation = 3 SELECT @Count = COUNT(*) FROM INSERTED IF @Count > 0 SET @operation = 2 END DECLARE tmpUpit CURSOR FOR SELECT i.id FROM inserted i OPEN tmpUpit FETCH NEXT FROM tmpUpit into @ID WHILE @@fetch_status = 0 begin If Not exists (SELECT * FROM mytable where (Operation=3 OR (Operation=1 AND ID=@ID)) AND Status = 0 AND Tablename ='extraTable') begin INSERT INTO mytable ([Field1], [Field2], [ID], [Tablename], [Operation], [Time12], [Status]) VALUES (@Field1, @Field2, @ID, 'extraTable', @operation,GETDATE(),0) DELETE FROM mytable WHERE [Field1]=@Field1 And [Field2]=@Field2 And [ID]=@ID And [Tablename]='extraTable' AND [Operation] = 4 AND [Status] = 0 End FETCH NEXT FROM tmpUpit into @ID End CLOSE tmpUpit DEALLOCATE tmpUpit end 被推到左侧。

对我来说这是一个小问题,因为我有多个可能因此而改变的事情。

目前,我的表由jQuery填充。表格行需要大约2-3秒才能加载。

问题是,如果响应中没有任何内容我将th's跨越6列。当我真的需要忽略它时,JavaScript会尝试在里面添加列标题。

当表格中确实存在信息时,它似乎也无法显示表格标题。

我的控制台出现了错误:

Nothing found

这就是这一行:

Uncaught TypeError: Cannot read property 'rows' of null

现在我必须将表单ID更改为类,因为我已经在其他地方使用了ID。如果这会产生巨大的差异。

谢谢,

萨姆

0 个答案:

没有答案