在這裏有一個真正的益智遊戲。我正在使用Atalasoft DotImage來允許用戶向圖像添加一些註釋。當我添加兩個包含具有相同名稱的文本的相同類型的註釋時,我在Atalasoft的壓縮js中得到了javascript權限被拒絕的錯誤。該錯誤是訪問規則的樣式成員:當使用Atalasoft DotImage時,Javascript權限被拒絕錯誤
在調試器(Visual Studio 2010的.NET 4.0)我可以訪問 h._rule 但不 h._rule.style
在JavaScript會是什麼訪問對象的元素時會導致權限被拒絕?
只是想知道是否有其他人遇到過這種情況。我看到有幾個人在使用Atalasoft,我甚至看到有人用Atalasoft做出迴應。是的,我正在和他們交談,但把它扔給人羣並沒有什麼不好。這隻發生在IE8中,而不是FireFox。 謝謝,布賴恩
更新:是的,使用最新版本:9.0.2.43666
通過相同的名稱(見下文評論)我的意思是,我創建默認註釋和它們被命名爲使他們可以用JavaScript後加入。
//創建默認註釋 TextData text = new TextData(); text.Name =「DefaultTextAnnotation」; text.Text =「默認文本註釋:\ n雙擊編輯」; //text.Font = new AnnotationFont(「Arial」,12f); text.Font = new AnnotationFont(_strAnnotationFontName,_fltAnnotationFontSize); text.Font.Bold = true; text.FontBrush = new AnnotationBrush(Color.Black); text.Fill = new AnnotationBrush(Color.Ivory); text.Outline = new AnnotationPen(new AnnotationBrush(Color.White),2); WebAnnotationViewer1.Annotations.DefaultAnnotations.Add(text);
javascript: CreateAnnotation('TextData','DefaultTextAnnotation');
函數CreateAnnotation(type,name)SetAnnotationModified(true); WebAnnotationViewer1.DeselectAll(); var ann = WebAnnotationViewer1.CreateAnnotation(type,name); WebThumbnailViewer1.Update(); }
樓。這聽起來很熟悉。你有什麼同名的意思?你使用的是最新版本嗎? – 2010-11-10 12:59:49
我創建了默認註釋,它們被命名,以便稍後可以使用javascript添加它們。 – BrianK 2010-11-10 13:50:38