Hello!
I would like to know if it's possible to set text in dialog before the dialog appear.
Actualy I'm using
Code: JavaScript
eo_GetObject('DialogToolTip').setContentUrl('ToolTip.aspx?Info=' + pLabel);
to display a custom message, but this is a little bit slow.
I'm using ajax to query our database, so I already know the text I want to show. What I need is a way to show this text in the dialog.
Maybe I can use ClientSideOnInitDialog property, but I don't understand how to use it.
Here's the code I tried so far:
Code: HTML/ASPX
<eo:Dialog runat="server" ClientSideOnInitDialog="SetTest" AnchorElementID="divPositionMouse" id="DialogToolTip" BorderStyle="Solid"
AllowResize="False" ControlSkinID="None" Width="300px" BorderWidth="1px" Height="200px"
BorderColor="#335C88" RestoreButtonUrl="00070103" ShadowDepth="3"
HeaderHtml="Info" ResizeImageUrl="00020014" ShowEffect-Type="Fade" CloseEffect-Type="Fade"
ContentUrl="http://www.google.com">
<HeaderStyleActive CssText="padding-right: 4px; padding-left: 4px; font-size: 11px; background-image: url(00070104); padding-bottom: 3px; padding-top: 3px; font-family: tahoma"></HeaderStyleActive>
<ContentStyleActive CssText="border-top: #335c88 1px solid; background-color: #e5f1fd"></ContentStyleActive>
</eo:Dialog>
Code: JavaScript
eo_GetObject('DialogToolTip').show(false,'Info','Message I want to display');
function SetText(dialog, arg)
{
}
Thanks for the help!