Hallo Forum, kann jemand was mit dieser Fehlermeldung in knallrot anfangen. Ich bekomm einfach diese Site nicht erstellt und veröffentlicht.
ich mach 2 Fehlerblöcke hier da das forum sagt: is zu lang
Fehler (10.7.1.0) - Skript-Fehler:
---------------
GUI-Abstraktions-Dienste wurden nicht zugewiesen.
---------------
Zeile 117, Spalte 1.
---------------
Quelltext:
001: option explicit
002:
003: ExecuteScript
004:
(...Versteckte Zeilen...)
012:
013:
014:
015: public sub ExecuteScript()
016: Context.Write "<!--{ZP-INLINE-EDITING-START}" & vbCrLf
017: Context.Write "" & vbTab & "<div class=""inline-editing"" ondblclick=""location.href='app:InlineEditing?Cmd=EditPageItem&ID="
018:
019: Context.Write Context.Scope.CurrentArticle.ID
020:
021: Context.Write "'"">" & vbCrLf
022: Context.Write "" & vbTab & "" & vbTab & "<div class=""inline-editing-menu-dummy""></div>" & vbTab & "" & vbCrLf
023: Context.Write "" & vbTab & "" & vbTab & "<div class=""inline-editing-menu"">" & vbCrLf
024: Context.Write "" & vbTab & "" & vbTab & "" & vbTab & "<a class=""inline-editing-edit"" href=""app:InlineEditing?Cmd=EditPageItem&ID="
025:
026: Context.Write Context.Scope.CurrentArticle.ID
027:
028: Context.Write """ title=""Bearbeiten"">Bearbeiten</a>" & vbCrLf
029: Context.Write "" & vbTab & "" & vbTab & "" & vbTab & "<a class=""inline-editing-new"" href=""app:InlineEditing?Cmd=AddPageItem&AreaName="
030:
031: Context.Write Context.Scope.CurrentGrid.AreaName
032:
033: Context.Write "&ID="
034:
035: Context.Write Context.Scope.CurrentArticle.ID
036:
037: Context.Write """ title=""Neuer Artikel einfügen"">Neuer Artikel einfügen</a>" & vbCrLf
038: Context.Write "" & vbTab & "" & vbTab & "" & vbTab & "<a class=""inline-editing-delete"" href=""app:InlineEditing?Cmd=DeletePageItem&ID="
039:
040: Context.Write Context.Scope.CurrentArticle.ID
041:
042: Context.Write """ title=""Löschen"">Löschen</a>" & vbCrLf
043: Context.Write "" & vbTab & "" & vbTab & "</div> " & vbCrLf
044: Context.Write "{ZP-INLINE-EDITING-END}-->"
045:
046:
047: dim article
048: set article = Context.Scope.CurrentPageItem
049: dim items
050: set items = Context.Scope.CurrentPage.ScriptingGetPageItems( Context.Scope.Library.VersioningVersion )
051:
052: dim hassame
053: hassame = false
054:
055: dim i
056: for i=0 to items.Count-1
057: dim item
058: set item = items(i)
059:
060: if item.IsActive and (item.StyleName = "Bilderalbum" or item.StyleName = "Einzelnes Bild") then
061: if item.ID = article.ID and not hassame then
062:
063:
064: Context.Write "" & vbCrLf
065: Context.Write "" & vbCrLf
066: Context.Write ""
067:
068: if IsNothing(Context.Scope.CurrentTemplate.TemplateProject.TextTemplateManager.GetTextTemplate("ThickboxMod")) then
069:
070: Context.Write "" & vbCrLf
071: Context.Write "<script type=""text/javascript"" src=""../_media/../media/Scripting/ThickBox/jquery.js""></script>" & vbCrLf
072: Context.Write "<script type=""text/javascript"" src=""../_media/../media/Scripting/ThickBox/thickbox_de.js""></script>" & vbCrLf
073: Context.Write ""
074:
075: else
076:
077: Context.Write "" & vbCrLf
078: Context.Write "<script type=""text/javascript"" src=""../_media/../media/Scripting/ThickBox/thickbox_mod_de.js""></script>" & vbCrLf
079: Context.Write ""
080:
081: end if
082:
083: Context.Write "" & vbCrLf
084: Context.Write "" & vbCrLf
085: Context.Write "<script type=""text/javascript"">" & vbCrLf
086: Context.Write "document.getElementsByTagName(""body"")[0].style.height = ""100%"";" & vbCrLf
087: Context.Write "document.getElementsByTagName(""html"")[0].style.height = ""100%"";" & vbCrLf
088: Context.Write "document.getElementsByTagName(""body"")[0].style.minHeight = ""100%"";" & vbCrLf
089: Context.Write "document.getElementsByTagName(""html"")[0].style.minHeight = ""100%"";" & vbCrLf
090: Context.Write "</script>" & vbCrLf
091: Context.Write ""
092:
093: end if
094: hassame = true
095: end if
096: next
097:
098:
099: Context.Write "" & vbCrLf
100: Context.Write "<a name=""a1057""></a>" & vbCrLf
101: Context.Write ""
102:
103:
104: dim albumID : albumID = Context.Scope.CurrentArticle.Values.GetValue("Album")
105: dim thumbnailWidth : thumbnailWidth = Context.Scope.CurrentArticle.Values.GetValue("Breite der Vorschaubilder")
106: dim thumbnailHeight : thumbnailHeight = CInt((thumbnailWidth*3)/4)
107: dim imagesPerRow : imagesPerRow = Context.Scope.CurrentArticle.Values.GetValue("Anzahl Vorschaubilder pro Zeile")
108: dim assetCategory : set assetCategory = Context.Scope.CurrentWebProject.GetAssetCategoryByID( albumID )
109: dim images : set images = assetCategory.Images
110: dim rowIndex : dim colIndex : dim index
111: dim rowCount : rowCount = images.Count \ imagesPerRow
112: if images.Count mod imagesPerRow > 0 then
113: rowCount = rowCount + 1
114: end if
115:
116: Context.Scope.Library.Log images.Count & " images..."
117: Context.Scope.Library.CheckAsyncStopProcessing
118:
119: ' Must use a prefix to allow multiple instances of the JavaScript on the page.
120: dim prefix
121: prefix = "prefix_1057_"
122:
123:
124: Context.Write "" & vbCrLf
125: Context.Write "<a name="""
126:
127: Context.Write prefix
128:
129: Context.Write "thumbnails""></a>" & vbCrLf
130: Context.Write "<div class=""articlearea"">" & vbCrLf
131: Context.Write ""
132:
133: if Context.Scope.CurrentArticle.Name <> "" then
134:
135: Context.Write "<h1>"
136:
137: Context.Write Context.Scope.CurrentArticle.Name
138:
139: Context.Write "</h1>"
140:
141: end if
142:
143: Context.Write "" & vbCrLf
144: Context.Write "<script type=""text/javascript"">" & vbCrLf
145: Context.Write "var "
146:
147: Context.Write prefix
148:
149: Context.Write "currentIndex = 0;" & vbCrLf
150: Context.Write "" & vbCrLf
151: Context.Write "var "
152:
153: Context.Write prefix
154:
155: Context.Write "g = new Array();" & vbCrLf
156: Context.Write "var "
157:
158: Context.Write prefix
159:
160: Context.Write "t = new Array();" & vbCrLf
161: Context.Write "" & vbCrLf
162: Context.Write ""
163:
164:
165: for index=0 to images.Count-1
166:
167: dim image
168: set image = images.Item(index)
169:
170: Context.Scope.Library.CheckAsyncStopProcessing
171:
172:
173: Context.Write "" & vbCrLf
174: Context.Write " "
175:
176: Context.Write prefix
177:
178: Context.Write "g["
179:
180: Context.Write index
181:
182: Context.Write "] = """
183:
184: Context.Write image.VirtualPathRelative
185:
186: Context.Write """; " & vbCrLf
187: Context.Write " "
188:
189: Context.Write prefix
190:
191: Context.Write "t["
192:
193: Context.Write index
194:
195: Context.Write "] = """
196:
197: Context.Write image.Name
198:
199: Context.Write """;" & vbCrLf
200: Context.Write ""
201: