Hi. I'm a new user of the FTB and an ASP.NET newbie and for reasons of security I have written my own WebGallery.aspx to use .NET WebRequest methods as I only have ftp write access to the web server. So far this is working just fine when called by my FTB "Insert Image From Gallery" button on the first aspx page. Now I'm stuck as to how to get the image I've picked (say a linkbutton click event handler to find the image clicked) to be inserted into the first webpage's FTB edit area. I see that IF I was on the same aspx page then I could simply use the FTB_API function to insert html with the image src. However, my gallery is a different aspx and has no knowledge of the original page containing the FTB. Am I missing a trick here as to how they communicate ?
Here is the first aspx page code extract. My images are in ~/Uploads
<FTB:FreeTextBox id="FreeTextBoxMark1" EnableHtmlMode="true" FormatHtmlTagsToXhtml="true"
JavaScriptLocation="ExternalFile" SupportFolder="~/scripts"
ToolbarLayout="paragraphmenu,fontsizesmenu;bold,italic,underline,
bulletedlist,numberedlist, ParagraphMenu, FontFacesMenu, FontSizesMenu, FontForeColorsMenu|;
FontForeColorPicker, FontBackColorsMenu; FontBackColorPicker, Bold, Italic, Underline;|
Strikethrough, Superscript, Subscript, InsertImageFromGallery, CreateLink, Unlink,
RemoveFormat, JustifyLeft, JustifyRight, JustifyCenter, JustifyFull, BulletedList,
NumberedList, Indent, Outdent, Cut, Copy;| Paste, Delete, Undo, Redo, Print, Save,
ieSpellCheck, StyleMenu, SymbolsMenu, InsertHtmlMenu, InsertRule, InsertDate,
InsertTime, WordClean, InsertImage; InsertTable, EditTable, InsertTableRowBefore,
InsertTableRowAfter, DeleteTableRow, InsertTableColumnBefore, InsertTableColumnAfter,
DeleteTableColumn, InsertForm, InsertForm;| InsertTextBox, InsertTextArea,
InsertRadioButton, InsertCheckBox, InsertDropDownList, InsertButton, InsertDiv,
InsertImageFromGallery, Preview, SelectAll, EditStyle"
runat="Server" Width="600px"
ImageGalleryUrl="WebGallery.aspx?rif=~/Uploads/&cif=~/Uploads/" >
</FTB:FreeTextBox>
Anyone ?
- Mark.