使用JavaScript跨域iframe自动高度

时间:2016-03-29 04:56:29

标签: javascript css

当我在iframe中使用跨域编写此函数时,我获得了'permission denine document'。此功能在同一个域中运行良好。

CREATE TRIGGER [dbo].[trgAfterInsert] ON [dbo].[CHECKINOUT]
AFTER  INSERT 
AS
    -- grab all the rows from the "Inserted" pseudo table
    -- and insert into the "checkin_time" column, if the value
    -- of the HOUR is less than 12
    INSERT INTO Att_process (USERID, checkin_time)
        SELECT  
            i.USERID, i.CHECKTIME
        FROM  
            Inserted i
        WHERE
            DATEPART(HOUR, i.CHECKTIME) < 12

    -- grab all other rows (HOUR is greater than or equal to 12)
    -- and insert into the "checkout_time" column
    INSERT INTO Att_process (USERID, checkout_time)
        SELECT  
            i.USERID, i.CHECKTIME
        FROM  
            Inserted i
        WHERE
            DATEPART(HOUR, i.CHECKTIME) >= 12

0 个答案:

没有答案