or
| editor.showExternalDialog("NewFileDialog.html", null, 300, 175, |
| newButtonPressCallbackFunction, null, "New File", true, |
| Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Move, |
| false, false); |
Message : Erreur d'exécution inconnue
Ligne : 147
Caractère : 14
Code : 0
URI : http://soliserv02/chart_test_export/editor2.aspx
how i fix that?
my code where ia have the error :
| <script type="text/javascript"> |
| //<![CDATA[ |
| Telerik.Web.UI.Editor.CommandList["InsertSpecialLink"] = function(commandName, editor, args) { |
| var elem = editor.getSelectedElement(); //returns the selected element. |
| if (elem.tagName == "A") { |
| editor.selectElement(elem); |
| argument = elem; |
| } |
| else { |
| var content = editor.getSelectionHtml(); |
| var link = editor.get_document().createElement("A"); |
| // the error of selection |
| link.innerHTML = content; |
| argument = link; |
| } |
| var myCallbackFunction = function(sender, args) { |
| editor.pasteHtml(String.format("<a href={0} target='{1}' class='{2}'>{3}</a> ", args.href, args.target, args.className, args.name)) |
| } |
| editor.showExternalDialog( |
| 'InsertLink.aspx', |
| argument, |
| 270, |
| 300, |
| myCallbackFunction, |
| null, |
| 'Insert Link', |
| true, |
| Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Move, |
| false, |
| true); |
| }; |
| //]]> |
| </script> |


| <asp:Content ID="cntNews" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> |
| <table style="height:100%; width:100%" cellpadding="0" cellspacing="0" border="0"> |
| <tr> |
| <td style="background-image:url('Images/news2.png'); background-repeat:no-repeat; height:100%"> |
| <table cellpadding="0" cellspacing="0" border="0" style="height:100%; width:100%"> |
| <tr> |
| <td style="height:80%"> |
| <table cellpadding="0" cellspacing="0" border="1" style="width:100%; height:100%"> |
| <tr> |
| <td> |
| |
| </td> |
| <td style="height:300px; width:250px; text-align:left; vertical-align:top;"> |
| <telerik:RadRotator ID="rrNews" runat="server" DataSourceID="sdsNews" |
| Height="300px" ItemHeight="300" Width="250px" ItemWidth="250" |
| ScrollDirection="Right" RotatorType="FromCode"> |
| <ItemTemplate> |
| <div style="position:relative; top:0px; left:0px;"> |
| <%# DataBinder.Eval(Container.DataItem, "Text")%> |
| </div> |
| </ItemTemplate> |
| </telerik:RadRotator> |
| </td> |
| </tr> |
| </table> |
| </td> |
| </tr> |
| <tr> |
| <td class="MenuBarContainer"> |
|   |
| </td> |
| </tr> |
| <tr> |
| <td style="height:15%"> |
| |
| </td> |
| </tr> |
| </table> |
| </td> |
| </tr> |
| </table> |
| </asp:Content> |
